RefundDetails

Version 2024-11-01

📘

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.

Overview

Details about a refund.

Fields

FieldDescription
aliases ([Alias])

A list of aliases associated with Buy With Prime Refund. This can include unique identifiers for refunds in merchant's store.

createdAt (String)

The Date Time in ISO 8601 format when a refund was created.

id (ID required)

Unique identifier for a refund.

paymentDetails ([PaymentDetails])

Provides details about payments that are disbursed for a refund. Note that there could be multiple payments amongst different payment methods for a refund.

refundFor (RefundFor)

Captures the reason for which this refund is entitled to e.g. refunds against a lineItem, a return etc. E.g. Refund issued for Two OrderLineItems "refundFor": { "orderLineItems": [ { "lineItem": { // lineItem-1 object }, "amount": {"amount": 1} }, { "lineItem": { // lineItem-2 object }, "amount": {"amount": 2} }, ] }

refundRequestReason (String)

Captures the reason for which the refund was requested.

The value is constrained to one of the following

ValueDescription
DELIVERED_NOT_RECEIVEDCustomer claims non-receipt of delivered item
NOT_DELIVEREDItem not delivered to customer
DAMAGED_DEFECTIVE_ITEMItem received damaged or defective
RECEIVED_ITEM_TOO_LATEItem received later than expected
WRONG_ITEM_RECEIVEDCustomer received incorrect item
EXPIRATION_DATE_PROBLEMItem has expiration date issue
ITEM_MISSINGOne or more ordered items missing
LOST_IN_TRANSITItem lost; promised delivery date not passed
CUSTOMER_NOT_SATISFIED_WITH_SERVICECustomer dissatisfied with service
FOOD_SAFETY_ISSUEFood safety concern with item
RETURN_RELATED_ERRORError in return process (e.g., unexpected fees)
RETURN_NO_SCANReturn not scanned; refund date passed
BILLING_ERRORBilling issues (e.g., incorrect charges/tax)
CANCELLED_ORDEROrder cancelled or unfulfillable
DELIVERY_ISSUESProblems with delivery execution
RETURN_DROPPED_OFF_PICKED_UPReturn successfully initiated
RETURN_RECEIVEDReturn received and graded at fulfillment center
OTHERSExceptional cases not covered by other reasons
refundStatusReason (String)

Captures the reason for updating the current state of the refund.

The value is constrained to one of the following

ValueDescription
RETURN_WINDOW_EXPIREDReturn request made after allowed period
RETURN_NOT_AUTHORIZEDReturn denied due to unmet criteria (e.g., missing auth code)
MISSING_ORIGINAL_PACKAGINGProduct not returned in original packaging
USED_OR_DAMAGED_ITEMReturned item shows signs of use or damage
ITEM_NOT_RETURNED_IN_ORIGINAL_CONDITIONItem damaged or altered from original state
MISSING_RECEIPT_OR_PROOF_OF_PURCHASENo receipt or proof of purchase provided by Shopper
FAILURE_TO_PROVIDE_PROOF_OF_PURCHASEFailed to provide evidence of purchase (e.g., order number)
NON_RETURNABLE_ITEMSItem is non-returnable (e.g., perishables, personalized)
NON_REFUNDABLE_SHIPPING_FEESShipping fees are non-refundable
FRAUDULENT_RETURN_ATTEMPTAttempted dishonest manipulation of return process
REFUND_ALREADY_PROCESSEDRefund already issued for this order/item
EXCESSIVE_RETURNSShopper has history of excessive returns
REFUND_VIOLATIONReturn violates platform's refund policy
PARTIALLY_DECLINEDRefund partially declined for some line items
OTHERSDefault code for merchant's other/unspecified reasons
refundTotal (RefundTotal)

Represents the total amount that has been refunded or is in progress. Note that refundable charges can get added while paymentDetails are not in terminal state. Once all the paymentDetails reach terminal state, refundTotal reflects the total amount that was refunded.

state (String)

Indicates the state of the refund.

The value is constrained to one of the following

valuedescription
PENDINGRefund is created and pending.
FAILURERefund has failed.
PARTIALRefund is Partially successful.
SUCCESSRefund is completed successfully.
REJECTEDRefund was rejected.
updatedAt (String)

The Date Time in ISO 8601 format when a refund was last updated.