Self authorization
When you create a private application for your own organization you can self authorize it to access your account information. Before doing this you must register as a developer and register your application. You can self authorize your application in draft status; there is no reason to publish a private application.
Note. If you are creating a public application to be authorized by selling partners, go to Authorizing Selling Partner API applications.
The self authorization procedure varies depending on if you have a seller application or a vendor application.
# To self-authorize your application (seller application)
Sign into Seller Central using the credentials that you used to register as a developer.
In the Partner Network menu, click Develop Apps.
The Developer Central page appears.
For the application that you want to authorize, click the arrow next to Edit App, and then click Authorize.
The Authorize application page appears.
Note. If your selling partner account is merged with accounts in other regions, you will see an Authorize app button for each of your merged accounts.
Click Authorize app for each selling partner account that you want your application to access. The Marketplaces column indicates the marketplaces in which an account is active.
A Login with Amazon (LWA) refresh token appears with every Authorize app button that you click.
Note. If you click an Authorize app button multiple times, a new refresh token is generated each time. Generating a new refresh token does not invalidate previous refresh tokens.
Save a refresh token for each selling partner account that you authorized your application to access. Later you can exchange these refresh tokens for access tokens. When you call a Selling Partner API to access a selling partner account, include the access token that corresponds to that account.
To authorize your application to access a different selling partner account, click sign in to that account at the bottom of the page.
A Seller Central sign-in page appears.
Sign in using the credentials for the selling partner account that you want your application to access.
The Authorize application page appears.
Click Authorize app to get a refresh token.
# To self-authorize your application (vendor application)
Sign into Vendor Central using the credentials that you used to register as a developer.
In the Integration menu, click API Integration.
The Developer Central page appears.
For the application that you want to authorize, click the arrow next to the Edit App button, and then click Authorize.
The Authorize application page appears.
Click Generate refresh token.
Your Login with Amazon (LWA) refresh token appears. If you click Generate refresh token again a new refresh token is generated. Generating a new refresh token does not invalidate previous refresh tokens.
Note. If your selling account is merged with accounts from other regions, you will receive a separate refresh token for each region. Your application is now authorized to access your selling account(s).
An LWA refresh token is a long-lived token that you exchange for an LWA access token. An access token obtained through this token exchange must be included with calls to all Selling Partner API operations except restricted operations and grantless operations, which use somewhat different authorization models. After an access token is issued it is valid for one hour. The same access token can be used for multiple API calls, until it expires.
To exchange a refresh token for an access token using a generated SDK, see Connecting to the Selling Partner API using a generated Java SDK. To manually exchange a refresh token for an access token, see Connecting to the Selling Partner API.