Skip to main content

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.

Endpoint#

v1/Matbia/RefundPayment

Http Request Method#

POST

Request Header#

See Authorization

Request Body#

note
* Indicates required field.
NameTypeDescription
referenceId*string'referenceId' received from the Charge API's response

Response#

error"" (See list of possible errors.)
status"Success"S
referenceId“XXXX”

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\": \"UX3G7CEA\"}"

Payload:

    {        "referenceId": "UX3G7CEA"    }

Response:

    {        "error": "",        "status": "Success",        "referenceId": null,        "cardHolderName": null    }