Troubleshoot Analytics Errors

📘

Buy with Prime API is now available for early access

Sign up for early access to the Buy with Prime API using the 'Sign Up' button below. The API may change as Amazon receives feedback and iterates on it.

This topic describes errors that you can encounter when you Get Analytics Reports.

Errors starting report tasks

The following errors can occur when you call the startReportTask mutation.

Error TypeError CodeDescriptionSuggested Action
AccessDeniedErrorN/AYou don't have sufficient access to perform this action.Ensure that your access token has permission to access this information, and retry the call. For details, see Authenticate to the Buy with Prime API.
InternalServerErrorN/AUnexpected error during request processing.None. This is a server-side error.
ThrottlingErrorN/AYou made too many requests to the API. You can have up to five startReportTask requests in STARTED or RUNNING state at any time.Send the request again using exponential backoff.
ValidationErrorInvalidDateFormatInvalid date format.Provide a valid date range. Dates must be in ISO 8601 UTC format.
ValidationErrorInvalidDateRangeInvalid date range.Provide a valid date range.
ValidationErrorInvalidReportTypeThe specified report type is not one of the allowed types.Specify a report of an allowed type. For details, see Get Analytics Reports.

Errors getting report status

The following errors can occur when you call the reportTask query.

Error TypeError CodeDescriptionSuggested Action
AccessDeniedErrorN/AYou don't have sufficient access to perform this action.Ensure that your access token has permission to access this information, and retry the call. For details, see Authenticate to the Buy with Prime API.
InternalServerErrorN/AUnexpected error during request processing.None. This is a server-side error.
ResourceNotFoundErrorN/AYou queried an invalid or expired taskId.Call startReportTask to create a new report. Reports expire seven days after creation.
ThrottlingErrorN/AYou made too many requests to the API. The maximum TPS is five.Send the request again using exponential backoff.

Errors getting a link to an analytics report

The following errors can occur when you call the reportDownloadLink query.

Error TypeError CodeDescriptionSuggested Action
AccessDeniedErrorN/AYou don't have sufficient access to perform this action.Ensure that your access token has permission to access this information, and retry the call. For details, see Authenticate to the Buy with Prime API.
InternalServerErrorN/AUnexpected error during request processing.None. This is a server-side error.
ResourceNotFoundErrorN/AYou queried an invalid or expired taskId.Call startReportTask to create a new report. Reports expire seven days after creation.
ThrottlingErrorN/AYou made too many requests to the API. The maximum TPS is five.Send the request again using exponential backoff.

Related topics