Manage Shopper Identity

📘

Important

The Buy with Prime API is offered as a preview and might change as we receive feedback and iterate on the interfaces. We are sharing this early documentation to help you learn about the Buy with Prime API as we write and iterate on the content.

Some Buy with Prime queries and mutations take (or require) a shopper's Amazon identity token. The identity token enables you to customize the Buy with Prime experience to the shopper on your site, such as display information based on whether the shopper is a Prime member, pre-populate a shipping address at checkout, and provide more accurate delivery estimates on product detail pages. To get an identity token, you can use Login with Amazon (LWA) or Amazon Pay.

Both identity approaches (LWA and Amazon Pay) enable shoppers to sign in using their Amazon account credentials, but the approaches differ in terms of checkout flow and which payment options are available to the shopper:

  • LWA: If you integrate with LWA, you own payment processing completely so that your shoppers can use any payment options, such as digital wallets, that your site supports. If you integrate with LWA, you can also Display Buy with Prime Elements on Your Site instead of creating your own UI elements.
  • Amazon Pay: If the only payment option that you want to support is Amazon Pay, you can Use Amazon Pay for Shopper Identity and use an Amazon Pay checkout session token to identify the shopper.

Related topics