Skip to main content

Transaction Batching

POST Void Payment Transaction

The POST Void Payment Transaction method allows merchants to cancel an authorized payment transaction that is part of a payment batch before it enters the settlement process. This API is designed to handle cases where a transaction needs to be voided due to reasons like duplicate charges or errors in the transaction details (e.g., incorrect amount). This method accepts the unique payment transaction ID and the reason for cancellation. The response indicates whether the void request was successful and includes the updated transaction status. 

Note: Only payment transactions that are part of a payment batch can be voided.

API Endpoint
https://api.uat.anddone.com/secure/cancellations
API Data Details
URI secure/cancellations
Method POST
Authorization API Key Authorization
Authorization
x-api-key API key {env_merchantAccessKey}
Request Headers
x-app-key Merchant ID or App Key {env_merchantId}
x-version API version (e.g., 2.1)
Origin URL or IP address provided to AndDone as an allowed origin.
Content-Type application/json

Request Parameters

Field Name Data Type Mandatory Field Length Description

Body Request Example (JSON)

    
    

Response Parameters

Body Response Example (JSON)