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 an Auth-Approved or Captured state and must be issued within 10 minutes of the order being created.

Success Response (204)

Returns no content in the response.

📘

A Successful Response from the Reversal Endpoint

The Reversal endpoint indicates a successful response with a 204 status code response.

Connection Timeouts

Timeout

Time (seconds)

Open

10

Read

70

Errors

In addition to the PUT/POST Errors applicable to all PUT endpoints, the following errors are specific to Reverse Payment by Token

HTTP Status Code

errorCode

Description

402 Payment Required

invalid_token

Invalid Token

412 Precondition Failed

precondition_failed

Payment reversal previously processed

412 Precondition Failed

precondition_failed

Payment not eligible for a reversal

412 Precondition Failed

precondition_failed

Order outside reversal window

412 Precondition Failed

precondition_failed

Order in pending reversal, no captures/auth accepted

Language
Authentication
Basic
base64
:
URL
Response
Click Try It! to start a request and see the response here!