"description":"The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization.",
"description":"With the getAuthorizationCode operation, you can request a Login With Amazon (LWA) authorization code that will allow you to call a Selling Partner API on behalf of a seller who has already authorized you to call Amazon Marketplace Web Service (Amazon MWS). You specify a developer ID, an MWS auth token, and a seller ID. Taken together, these represent the Amazon MWS authorization that the seller previously granted you. The operation returns an LWA authorization code that can be exchanged for a refresh token and access token representing authorization to call the Selling Partner API on the seller's behalf. By using this API, sellers who have already authorized you for Amazon MWS do not need to re-authorize you for the Selling Partner API.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nFor more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.",
"description":"The seller ID of the seller for whom you are requesting Selling Partner API authorization. This must be the seller ID of the seller who authorized your application on the Marketplace Appstore.",
"required":true,
"type":"string",
"allowEmptyValue":false
},
{
"name":"developerId",
"in":"query",
"description":"Your developer ID. This must be one of the developer ID values that you provided when you registered your application in Developer Central.",
"required":true,
"type":"string",
"allowEmptyValue":false
},
{
"name":"mwsAuthToken",
"in":"query",
"description":"The MWS Auth Token that was generated when the seller authorized your application on the Marketplace Appstore.",
"message":"Authorization code you provided is invalid."
}
]
},
"headers":{
"x-amzn-RequestId":{
"type":"string",
"description":"Unique request reference ID."
}
},
"x-amazon-spds-sandbox-behaviors":[
{
"request":{
"parameters":{
"mwsAuthToken":{
"value":"TEST_CASE_400"
}
}
},
"response":{
"errors":[
{
"code":"InvalidInput",
"message":"Invalid input."
}
]
}
}
]
},
"403":{
"description":"Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.",
"description":"A Login with Amazon (LWA) authorization code that can be exchanged for a refresh token and access token that authorize you to make calls to a Selling Partner API.",
"type":"string"
}
}
},
"ErrorList":{
"type":"array",
"description":"A list of error responses returned when a request is unsuccessful.",
"items":{
"$ref":"#/definitions/Error"
}
},
"Error":{
"description":"Error response returned when the request is unsuccessful.",
"type":"object",
"required":[
"code",
"message"
],
"properties":{
"code":{
"type":"string",
"description":"An error code that identifies the type of error that occurred."
},
"message":{
"type":"string",
"description":"A message that describes the error condition in a human-readable form."
},
"details":{
"type":"string",
"description":"Additional details that can help the caller understand or fix the issue."