Skip to navigation

Reverse Payment By Token

This endpoint performs a reversal of the checkout that is used to initiate the Afterpay payment process. This will cancel the order without the need of an additional call to the void endpoint. In order for a payment to be eligible, the order must be in an Auth-Approved or Captured state and the reversal must be issued within 10 minutes of the authorization. An Auth-Approved payment becomes VOIDED and a Captured one becomes REVERSED. The reversal is asynchronous, so the HTTP 204 confirms only that the request was accepted — poll paymentState for the outcome.

Connection Timeouts

TimeoutTime (Seconds)
Open10
Read70

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Path parameters

tokenstringRequired

The token of the checkout to be reversed (voided).

Headers

User-AgentstringRequired
AcceptstringOptionalDefaults to application/json

Response

The Reversal endpoint indicates a successful response with a 204 status code response. Returns no content in the response.

Errors

402
Payment Required Error
412
Precondition Failed Error