Troubleshoot Events

📘

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 Event interface and suggests corrective actions that you can take.

Errors creating subscriptions

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

Error TypeError CodeDescriptionSuggested Action
AccessDeniedErrorN/AYou don't have sufficient access to perform this action.
  • Ensure that your API credentials have the permission scopes necessary to call event subscription operations and to access the resource type (such as ORDER_READ scope, which is required to subscribe to order-related events). For details, see Authenticate to the Buy with Prime API.
  • Ensure that your access token isn't invalid or expired.
  • Ensure that the eventType in the request is a valid event type, and doesn't contain white spaces.
ValidationErrorDestinationNameAlreadyExistsThe provided Amazon Partner Event Source name already exists.The partner event source name must be globally unique. Use a different partnerEventSource name in the call to the createEventSubscription .
ValidationErrorSubscriptionAlreadyExistsYou attempted to create a subscription with the same event types and the same destination as an existing subscription.Make another request to the createEventSubscription mutation and exclude the event types that you provided in the failed request.

Errors deleting subscriptions

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

Error TypeError CodeDescriptionSuggested Action
AccessDeniedErrorN/AYou don't have sufficient access to perform this action.
  • Ensure that your API credentials have the permission scopes necessary to call event subscription operations. For details, see Authenticate to the Buy with Prime API.
  • Ensure that your access token isn't invalid or expired.
  • Ensure that the subscriptionId that you provided is valid and is for a subscription that you created.

Errors getting a subscription

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

Error TypeError CodeDescriptionSuggested Action
AccessDeniedErrorN/AYou don't have sufficient access to perform this action.

Errors listing subscriptions

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

Error TypeError CodeDescriptionSuggested Action
AccessDeniedErrorN/AYou don't have sufficient access to perform this action.

Related topics