Troubleshooting
Product Advertising API 5.0 provides specific and descriptive errors to help you troubleshoot problems with your requests.
The response might contain Error
as attribute in the JSON response. This attribute list downs all the errors occurred during processing of the request.
For example, for the following request containing invalid ItemIds
in a GetItems request:
{
"ItemIds": ["dummy","B001AWBYRAA"],
"ItemIdType": "ASIN",
"Marketplace": "www.amazon.com",
"PartnerTag": "xyz-20",
"PartnerType": "Associates"
}
We can see the list of errors in the response as:
{
"Errors": [
{
"__type": "com.amazon.paapi#ErrorData",
"Code": "InvalidParameterValue",
"Message": "The ItemId dummy provided in the request is invalid."
},
{
"__type": "com.amazon.paapi#ErrorData",
"Code": "InvalidParameterValue",
"Message": "The ItemId B001AWBYRAA provided in the request is invalid."
}
]
}
In the sample response, notice that the error consists of an error code that identifies the error, and an error message that describes the error.
When requested ItemIds are invalid or inaccessible via the Product Advertising API, they'll show up under the Errors container in the GetItemsResponse. As a result, the order of ItemIds in the response can change. Hence, it is recommended to fetch the requested item's information by checking the ASIN value for the item.
For a detailed list of error codes and message, see Error Codes and Messages section.