Skip to main content

Reverse Transaction

POST/v3/payment/reverse

What is this?

Reverse a transaction — used to void a payment before settlement. If a transaction times out, perform a reverse before creating a new transaction to prevent a double charge.

Reverse cancels a transaction — used mainly to prevent double charges when a timeout occurs. Use within ~15 minutes of a transaction.


How to Use

Step 1: Get the Order ID

Locate the orderId from the original transaction response.

Step 2: Make the Request

Send the reverse request with the orderId. Check the code field in the response — if "SUCCESS", the operation completed.


Request Parameters

orderIdStringrequired

Order ID of the transaction to reverse

Example: "180730103903010431152179"

Example Request
JSON
1{
2 "orderId": "180730103903010431152179"
3}

Response Parameters

itemObject

Transaction response object

codeString

"SUCCESS" if the reverse succeeded, otherwise an error code.

error.codeString

Error code if the request failed.

error.messageString

Error message if the request failed.

error.debugString

Debug message (sandbox only).