Troubleshoot Events

📘

Important

The Buy with Prime API is offered as a preview and might change as we receive feedback and iterate on the interfaces. We are sharing this early documentation to help you learn about the Buy with Prime API as we write and iterate on the content.

This topic describes errors that you can encounter when you Subscribe to Events.

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. For details, see Authenticate to the Buy with Prime API.
  • 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.
  • Ensure that your access token isn't invalid or expired. For details, see Authenticate to the Buy with Prime API.</li
  • 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