View a markdown version of this page

Getting Amazon Business API credentials - AWS Marketplace

Getting Amazon Business API credentials

The connector uses an Amazon Business API application registered for your business. The application authorizes access through Login with Amazon (LWA). To authorize the application, your Amazon Business administrator must administer all legal entities under that Amazon Business account.

To get the API credentials
  1. Sign in to the Solution Provider Portal, find your app, and choose View under LWA credentials. For instructions, see View your app information and credentials on the Amazon Business API documentation website.

  2. Copy the LWA client ID and the matching client secret. Keep them private.

  3. Start the authorization with the app's registered application ID and exact redirect URI. For instructions, see Authorize your Amazon Business API apps on the Amazon Business API documentation website. The application ID used for consent is different from the LWA client ID.

  4. Have your Amazon Business administrator sign in to the intended business and choose Allow.

  5. Have your API application administrator complete the authorization code exchange in Amazon's instructions and securely store the returned refresh token. For more information, see Refresh tokens on the Login with Amazon documentation website.

You enter the following values in the connector.

Value Source

LWA client ID

The client identifier from your API application's LWA credentials

LWA client secret

The matching secret from the same application

Refresh token

The token returned after your business authorizes that application

Use matching credentials

All three values must belong to the same application and business authorization. AWS Marketplace Storefront gets access tokens for you, so enter the refresh token in the connector, not an access token. Never include credentials in screenshots or support messages.

The connector test verifies API access. For instructions, see Configuring the Amazon Business connector.