Troubleshoot Order 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 call the Buy with Prime Order interface and suggests corrective actions that you can take.

Errors creating orders

The following errors can occur when you call the createOrder 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.
ConflictErrorN/AThe current request conflicts with existing order aliases.If you want to create a new order, provide a different order alias. If you are retrying a failed order creation request, this error indicates that the order was created successfully, but failed to communicate the success to you. In this case, use the order query to get the order details. For an example, see Get an order with the specified alias.
InternalServerErrorN/AUnexpected error during request processing.None. This is a server-side error.
ThrottlingErrorN/AUser made too many requests to the Buy with Prime API.Send the request again using exponential backoff.
ValidationErrorAddressMismatchThe specified address doesn't match the address that was saved for the customer.Input the same address that the delivery preview used.
ValidationErrorAliasValueAlreadyExistsThere is already an order with the specified alias.If you want to create a new order, provide a different order alias. If you are retrying a failed order creation request, this error indicates that the order was created successfully, but failed to communicate the success to you. In this case, use the order query to get the order details. For an example, see Get an order with the specified alias.
ValidationErrorInvalidItemIdentifierItem identifiers provided in the input fail catalog service validation.Provide a valid item identifier.
ValidationErrorInvalidRecipientAddressInputRecipient's address input is invalid.Provide a valid shipping address.
ValidationErrorInvalidRecipientContactInputRecipient's contact input is invalid.Provide a valid recipient contact.
ValidationErrorInvalidShopperContactInputShopper's contact input is invalid.Provide a valid shopper contact.
ValidationErrorExpiredIdpTokenThe idPToken in the IdentityTokenInput in the request is expired.Provide a current idPToken.
ValidationErrorInvalidIdpTokenThe idPToken in the IdentityTokenInput in the request is invalid.Provide a valid idPToken.
ValidationErrorItemOutOfStockAn item has zero inventory.Remove the out-of-stock item from the request.
ValidationErrorItemUnavailableWithPrimeThe item isn't enabled for Buy with Prime, or for some other reason isn't fulfillable.Remove the unavailable item from the request.
ValidationErrorMissingItemAttributesItem information is missing or invalid.At a minimum, provide a title, price, and item identifier for Buy with Prime items.
ValidationErrorOrderLinkLimitExceededToo many order links in the request.Decrease the number of order links in the request. There can be at most five order links associated with an order.
ValidationErrorOrderQuantityLimitExceededCart limit reached. Carts can have at most 20 items that are eligible for Buy with Prime.Decrease the number of items or quantity.
ValidationErrorReduceQuantityToProceedThe requested amount for an item is unavailable in inventory.Decrease the quantity requested for the item.
ValidationErrorSelectedQuantityNotAvailableThe requested amount for an item is unavailable in inventory.Decrease the quantity requested for the item.
ValidationErrorShopperIdMismatchUnrecognized address.Input the same address that the delivery preview used.
ValidationErrorShopperNotPrimeThe customer isn't a Prime member.Provide a token for a shopper that has a Prime membership.

Errors updating orders

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

Error TypeError CodeDescriptionSuggested Action
AccessDeniedErrorN/AYou don't have sufficient access to perform this action.Ensure that you're using the correct order ID, and retry the call.
ConflictExceptionN/AThe order is already in the process of being updated.Retry the request.
InternalServerErrorN/AUnexpected error during request processing.None. This is a server-side error.
ThrottlingErrorN/AUser made too many requests to the Buy with Prime API.Send the request again using exponential backoff.
ValidationErrorAliasValueAlreadyExistsThere's already an order with the specified alias.If you want to update an existing order, provide a different order alias.
ValidationErrorDuplicateRefundIdYou provided the same refund ID multiple times in the RefundInput.Don't update a given refund more than once in a single API call.
ValidationErrorExecutionAlreadyStartedThe order can't be started because it already completed.The executionState is STARTED, the deliveryInformation indicates that the delivery of the order is IN_TRANSIT, and you called the updateOrder mutation to set the state to STARTED. Investigate the order execution flow in your system and avoid updating the executionState in such cases.
ValidationError
ExecutionCannotBeStartedDueToCancellation
The order can't be started because the order is cancelled or in the process of cancellation.The executionState is STARTED, the deliveryInformation indicates that the delivery of the order is CANCELLED, and you called the updateOrder mutation to set the state to STARTED. Investigate the order execution flow in your system and avoid updating the executionState in such cases.
ValidationErrorInvalidRefundIdThe provided Buy with Prime refund ID doesn't match any refund IDs for the specified order.Provide a valid Buy with Prime refund ID. To find the refund IDs associated with an order, call the order query. For details, see Query a Buy with Prime Order.
ValidationErrorMissingRefundIdNo Buy with Prime refund ID is present in the RefundInput.Provide a valid Buy with Prime refund ID.
ValidationErrorOrderLinkLimitExceededToo many order links in the request.Decrease the number of order links in the request. There can be at most five order links associated with an order.

Errors getting orders

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

Error TypeError CodeDescriptionSuggested Action
AccessDeniedErrorN/AYou don't have sufficient access to perform this action.Ensure that you're using the correct order ID, and retry the call.
InternalServerErrorN/AUnexpected error during request processing.None. This is a server-side error.
ThrottlingErrorN/AUser made too many requests to the Buy with Prime API.Send the request again using exponential backoff.

Related topics