Amazon SP-API Authentication User Guide
Amazon is migrating to the new API called Seller Partner API which is something completely different from the current MWS integration we have so we will need additional set of details and tokens.
The whole setup is done in Integration, Integration Credentials and Account Amazon.
In Integration table we will have to create a record for the actual Amazon APP

Then in Integration Credentials we need to set the below

In order to obtain all the client_id, application_id, client_secret, access_key, secret_key and the arn we will need to do the following:
dFirst step is to get the Application details, please note they will be the same for all our sellers and are available in our Dev Amazon Account and AWS Amazon Account. application_id - This is obtained from the seller central in our Dev Account. Once logged in Partner Network > Developer Apps then App ID
client_id - This is obtained from the seller central in our Dev Account. Once logged in Partner Network > Developer Apps then view LWA credentials
client_secret - This is obtained from the seller central in our Dev Account. Once logged in Partner Network > Developer Apps then view LWA credentials
arn - This is available in our AWS account from Access management > Roles
access_key - This is available in our AWS account from Access Management > Users > Security Credentials. Please note to check the secret_key a new credentials are required.
secret_key -This is available in our AWS account from Access Management > Users > Security Credentials. This is displayed only once when the access _key is generated
Once we have these tokens populated we will need to setup in Amazon Account table:
Hemi Field | Value | Comment |
---|---|---|
Client Email: | bogomil@hemi.ai | The email to which the link will be sent |
Oauth Began: | Yes | This will trigger the authentication flow |
Integration App: | Select the correct Integration. | This is the integration table which is created in the previous step |
Merchant ID: | The merchant ID from the seller Amazon account | From the Seller Central go to Settings > Account Info > Your Merchant Token |
This way we will receive a link to the specified email which will lead to Amazon Seller Central. Please note you must be logout from any Amazon Account before. Once you are forwarded you will need to Authorize the application this way we will get the code and generate automatically the access_key and refresh_key. Both are generated automatically from the integration itself.
As we have added all the feeds to be controlled into one cron because of the shared limit we will need to be able to control what actions to be performed for each account. Thus we have to include additional flag in Account Amazon table as:
Label | Type | Default value |
---|---|---|
Update Stock | Checkbox | true |
Update Price | Checkbox | true |
Ship Orders | Checkbox | true |
Upload Invoices | Checkbox | true |
Cancel Orders | Checkbox | true |
Refund Orders | Checkbox | true |
Each of the flags will indicate which feeds we would like to activate for the specific account and we will be able to take control of the flows.