Refund
The Refund API allows organizations to issue refunds for transactions that have been batched. It requires the unique reference ID from the original transaction and provides a standardized response confirming the refund request's success. If the transaction has been made within the last 24 hours, it should be voided using the Void API instead.
#
Endpointv1/Matbia/RefundPayment
#
Http Request MethodPOST
#
Request HeaderSee Authorization
#
Request Bodynote
* Indicates required field.
Name | Type | Description |
---|---|---|
referenceId* | string | 'referenceId' received from the Charge API's response |
#
Responseerror | "" - See list of possible errors. |
status | "Success" |
referenceId | “XXXXXXXX” |
#
ExamplecURL:
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\": \"UX3G7CEA\"}"
Payload:
{ "referenceId": "UX3G7CEA" }
Response:
{ "error": "", "status": "Success", "referenceId": null, "cardHolderName": null }