question

newuser-7b69c67c-0f9d-4442-adb4-f3ff8c5068f1 avatar image
newuser-7b69c67c-0f9d-4442-adb4-f3ff8c5068f1 asked ·

Getting `invalid_scope` while trying to get access_token for Amazon Shipping

I'm actually on my way to use many of the APIs provided by "Amazon Shipping" i.e. :

https://ship.amazon.com/api/v2

To use Amazon Shipping APIs, an access token is required. Now, to get `access_token`, I've to use another API as below :

POST https://api.amazon.com/auth/O2/token
Content-Type: application/json 
{  
    "grant_type": "client_credentials",  
    "client_secret": "(client_secret)",  
    "client_id": "(client_id)",  
    "scope": "ship::production:api"
}

I've passed correct credentials and followed the documentation exactly what it says, but I'm getting an error called `invalid_scope` in response to the above token request as below:

{
    "error": "invalid_scope",
    "error_description": "The request has an invalid parameter : scope"
}

How to resolve the above error, Any help is deeply appreciated!

amazon developer portalamazon web services
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image
Levon@Amazon answered ·

Hi there,

Thanks for posting! Please note that this space is meant for Amazon Appstore developers of Android apps, Alexa Skills, and PC/Mac submissions, as well as Merch by Amazon content creators, to post and discuss questions related to their respective programs. We are unable to assist with questions related to Seller Central, including Marketplace order API integration and RSS feeds questions.

For assistance about API integration for Amazon Seller or Marketplace, please contact the support team at:
https://sellercentral.amazon.com/gp/mws/contactus.html

For assistance about Amazon Associates / affiliate program, please contact the support team at:
https://affiliate-program.amazon.com/contact

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ham avatar image
ham answered ·

I ran into this issue, trying to login to access token API, the step I missed was not attaching the security profile created under the API access. The 2nd step from this article:
API Access | App Submission and Testing (amazon.com)

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.