Reverse Payment By Token
Authentication
Basic authentication of the form Basic <username:password>.
Path Parameters
Use api-sandbox for AU/NZ, or api.us-sandbox for US.
Basic authentication of the form Basic <username:password>.
Use api-sandbox for AU/NZ, or api.us-sandbox for US.
This endpoint performs a reversal of the checkout that is used to initiate the Afterpay payment process. This will cancel the order asynchronously as soon as it is created without the need of an additional call to the void endpoint. In order for a payment to be eligible, the order must be in a Captured state and must be issued within 10 minutes of the order being created.
If this is called after a timeout is received from
v1/payments/capture, and v1/payments/capture
eventually completes successfully, the order will end up in a REVERSED
state. This is similar to a call to the
v1/payments/refund endpoint except that merchant
fees are not paid to Afterpay and the capture and refund will not show
up in the settlement file.