The refund operation is idempotent if a unique
If using the Deferred Payment Flow, please be aware that only captured funds can be refunded.
Do not create refunds after 120 days from the date of purchase.
Returns a Refund object in response. All request parameters will be echoed in the response. In addition, the response includes the following:
The unique, permanent, Afterpay-generated Refund ID.
The UTC timestamp of when the refund was completed, in ISO 8601 format.
In addition to the PUT/POST Errors applicable to all POST endpoints, the following errors are specific to Create Refund:
HTTP Status Code
The currency of the refund does not match the currency of the order (and the Merchant account).
The refund exceeds the time limit of 120 days