question

hagriel avatar image
hagriel asked

Request an access token

I have a problem with Request an access token. Error: "The request has an invalid grant parameter : code" but code is correct

I send request:

POST /auth/o2/token HTTP/1.1
Host: api.amazon.com
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cachegrant_type=authorization_code&code=ANjZJGkoPCFHymSfYYii&client_id=amzn1.application-oa2-client.20d11.......&client_secret=2d34.......&redirect_uri=https%3A%2F%2Fwww.getpostman.com%2Foauth2%2Fcallback

Response:

{
    "error_description": "The request has an invalid grant parameter : code",
"error": "invalid_grant" 
}
login with amazondash replenishment servicetroubleshooting
10 |5000

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
10 |5000

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

hagriel avatar image
hagriel answered

I got this error in case if customer has not confirmed (by Amazon) payment method.

I didn't expect this type of error in this case

1 comment
10 |5000

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

Hi hagriel,

Thank you for sharing your experience. Thanks!

0 Likes 0 ·