Create Refund
Authentication
Basic authentication of the form Basic <base64(username:password)>.
Path parameters
Headers
Request
Unique ID required for safe retries. Max length 64 (varchar).
Object containing amount and currency.
Where a Money object is included in an API request, it will be validated according to the specification above. Invalid Money objects will trigger a 422 Unprocessable Entity response. The following is a list of common examples:
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).
Response
Object containing amount and currency.
Where a Money object is included in an API request, it will be validated according to the specification above. Invalid Money objects will trigger a 422 Unprocessable Entity response. The following is a list of common examples:
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).