Refund Interface

📘

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.

A Buy with Prime refund is a process by which a customer is reimbursed for an item that they ordered, which is then returned or cancelled.

From an implementation perspective, there are two types of refunds:

  • Refunds requested through Buy with Prime: For example, a customer might go to the online returns center or to the Buy with Prime shopper order details page, where they request to cancel the order. In this case, a Buy with Prime REFUND_REQUESTED event notifies you to issue a refund.
  • External refunds: For example, the refund might be initiated by your order management system, your merchant admin portal, and so on. The associated Buy with Prime order initially has no record of these refunds. Therefore, after you issue the refund to the customer, you call the Buy with Prime API to add the external refund to the Buy with Prime order.

You handle Buy with Prime refunds by using the Refund interface and the Order interface of the Buy with Prime API. For details, see Steps to Process Refunds.

This topic outlines terminology and Buy with Prime API operations that you use to manage Buy with Prime refunds.

Terminology

The following sections describe terminology related to refunds.

Refund

A Buy with Prime refund is a process by which a customer is reimbursed for an item that they ordered, which is then returned or cancelled.

A refund for Buy with Prime items in an order is requested in the following cases:

  • After placing an order, a customer goes to the Buy with Prime shopper order details page, where they request to cancel the order.
  • After receiving the order, a customer requests a return for the Buy with Prime items in the order.
  • You use the Buy with Prime merchant console to request an order cancellation or a return on behalf of a customer.
  • After a customer creates an order, the order or an item in the order is cancelled because an item becomes unfulfillable or encounters delivery exceptions such as package undelivered, lost, and so on.
  • A customer reaches out to a Buy with Prime customer service agent, who initiates a refund.

If you subscribe to Buy with Prime events, you're notified of refunds by the REFUND_REQUESTED event. You then initiate the refund and update Buy with Prime with the latest details. For the process, see Steps to Process Refunds.

You currently can't do the following operations with Buy with Prime refunds:

  • Directly generate a Buy with Prime refund request.
  • Update the items associated with a refund requested through Buy with Prime.
  • Manually generate a refund from the Buy with Prime merchant console. However, you can return or cancel an order from the merchant console. These actions automatically generate a refund request for the order.

Refund alias

You can associate each refund with one or more identifiers called aliases, which are in the refunds.details.aliases field of the order. If you use aliases for a refund, it is crucial to ensure that the aliases that you provide for the refund are unique and aren't already associated with other refunds in the order.

Each alias has an aliasId and an aliasType. We strongly recommend that you provide a unique aliasId that you can use when you call the updateOrder mutation to add or update refund details.

You can add and update refund aliases related to the order by calling the updateOrder mutation in the following way:

  • Updating an alias: Aliases of the same type overwrite each other. Therefore, to update an alias, call the updateOrder mutation and provide an aliasType that is already present for the refund. The existing aliasId with that aliasType will be overwritten with the aliasId that you provide in the updateOrder request. For example, consider an order with a refund aliasType of EXTERNAL-REFUND-ID and an aliasId of external-refund-id-1. If you call the updateOrder mutation and specify an aliasType of EXTERNAL-REFUND-ID and an aliasId of external-refund-id-2, the aliasId for the EXTERNAL-REFUND-ID is overwritten with the new value, external-refund-id-2.
  • Adding aliases: To add an alias, call the updateOrder mutation and provide an alias with a new aliasType.

📘

Note

You can't delete existing aliases.

Refund state

The state of the refund. As you process refunds with your order management system, you call the updateOrder mutation to update the refund state for the Buy with Prime order. The following table shows the allowable refund state values that you can set on your next call to updateOrder given the current refund state. For details about processing refunds, see Steps to Process Refunds.

Current refund stateAllowable states you can use when you update a Buy with Prime refund
PENDINGPENDING, PARTIAL, FAILURE, SUCCESS
FAILUREPARTIAL, FAILURE, SUCCESS
PARTIALPARTIAL, SUCCESS
SUCCESSSUCCESS
Return

A Buy with Prime return is an action that a customer takes to return previously-delivered items that they purchased in a Buy with Prime order.

For details, see Return interface.

Reversal

Reversal is a term that the Buy with Prime API uses to encompass the concepts of returns, refunds, and cancellations.

API operations

The Buy with Prime Refund interface and Order interface support the following mutations, queries, and events related to the Buy with Prime refund lifecycle.

Mutations

NameDescription
updateOrderUpdates an existing Buy with Prime order. As you process refunds, you use this mutation to update the Buy with Prime order with the latest refund details, such as the refund state, the amount you refunded the customer, and so on. For details, see Steps to Process Refunds and Update Refund Details.

Queries

NameDescription
reversalOffersProvides a reversal offer for a given Buy with Prime product. For examples, see Get Reversal Offers.
orderGets a Buy with Prime order, in which you can see the refunds associated with an order. With this information, you know the amount of refund requested and for which items to issue a refund. For details, see Steps to Process Refunds and Get Refund Details.

Events

EventWhen Event is Published
REFUND_REQUESTEDRepresents a request to issue a refund for one or more Buy with Prime items. You react to this event by issuing a refund and then updating the Buy with Prime order with the latest refund information. For details, see Steps to Process Refunds.

Related topics