Void
The Void API enables organizations to cancel pending transactions with Matbia before they are processed for batching within a 24-hour time frame. It requires the unique reference ID received during the original transaction and returns a standardized response confirming the request's success. If a transaction is already batched, the Refund API should be used instead.
Endpoint#
v1/Matbia/VoidPaymentHttp Request Method#
POST
Request Header#
See Authorization
Request Body#
note
* Indicates required field.
| Name | Type | Description |
|---|---|---|
| referenceId* | string | 'referenceId' received from the Charge API's response |
Response#
| error | "" - See list of possible errors. |
| status | "Success" |
| referenceId | “XXXXXXXX” |
Example#
cURL:
curl -X POST ^ "https://sandbox.api.matbia.org/v1/Matbia/VoidPayment" ^ -H "accept: application/json" ^ -H "Authorization: DA8874A1-9393-4D59-8A79-5E436F2538A0" ^ -H "Content-Type: application/json-patch+json" ^ -d "{\"referenceId\": \"KTMV0GSX\"}"
Payload:
{ "referenceId": "KTMV0GSX" }Response:
{ "error": "", "status": "Success", "referenceId": null, "cardHolderName": null }