Skip to main content
The Void and Cancel requests both reverse a transaction, but their use depends critically on the original transaction’s status. Both operations use the same request structure but differ in their RequestType.
Settled TransactionsIf the transaction has already been captured and the settlement batch is closed (e.g., it’s the next day), a Void is not possible. You must use a Refund request instead.

Request

The Void or Cancel request uses the same endpoint as the initial /close-transaction request. The API determines it’s a void or cancel based on the RequestType value within the BasicInfo object. See the example below:
Note that the RequestType is set to the value corresponding to a Void (3) or Cancel (7). The Amount specifies the full amount of the original authorization/sale.

Request Parameters

The following table highlights the critical fields used to define a Void or Cancel request:

Response

A successful validation returns a 200 OK status and a body containing the validated merchant details:

Response Parameters

The table below describes the parameters of the response: