OAuth

Setup

In your Selling Partner API application in Seller Central, you'll need to specify a Login URI and one or more regional Redirect URIs for your app. , and

Login URI

The Login URI is the URI from which users will be sent to Amazon's SP API authorization page. By default, the Login URI is the URL of your app plus /oauth/redirect – for example, https://my.spapi.app/oauth/redirect.

Redirect URIs

The Redirect URI(s) are where you are allowed to redirect users after the OAuth process is complete. By default, Redirect URIs consist of the URL of your app plus /oauth/receive/{regionCode}, where {regionCode} is the country code of the region you want to authorize your app for. Here is the complete list of possible redirect URLs:

  • https://my.spapi.app/oauth/receive/NA (North America)

  • https://my.spapi.app/oauth/receive/EU (Europe)

  • https://my.spapi.app/oauth/receive/AU (Australia)

  • https://my.spapi.app/oauth/receive/JP (Japan)

  • https://my.spapi.app/oauth/receive/SG (Singapore)

If you're not planning to support users from any of those regions, you don't need to specify the excluded regions in your SP API application config.

If you want to customize the Login and Redirect URI paths, you can do so in the oauth section of config/spapi.php.

Then, fill in the SPAPI_OAUTH_APP_ID environment variable with the app ID of the SP API application you are using for OAuth.

Once that setup is complete, users can start the OAuth process at https://my.spapi.app/oauth. The built-in OAuth flow has support for authorizing a single seller in multiple regions, and multiple sellers on a single user account.

Last updated