This endpoint performs a full or partial refund. The refund operation is idempotent if a unique requestId and merchantReference are provided.
If using the Deferred Payment Flow, be aware that only captured funds can be refunded. Do not create refunds after 120 days from the date of purchase.
Connection Timeouts
Basic authentication of the form Basic <base64(username:password)>.
Unique ID required for safe retries. Max length 64 (varchar).
The merchant’s internal refund id/reference. This must be included along with the requestId to utilise idempotency. Max length 85 (varchar).
A unique reference for the individual refund event. Max length 128 (varchar).
The merchant’s internal refund id/reference. This must be included along with the requestId to utilise idempotency. Max length 85 (varchar).
The unique, permanent, Afterpay-generated Refund ID.
A unique reference for the individual refund event. Max length 128 (varchar).
Unique ID required for safe retries. Max length 64 (varchar).
Returns a Refund object in response. All request parameters are echoed in the response. In addition, the response includes the following: