Create Refund

Sometimes, things don’t go right, and a payment is in error. If the conditions are met, you can request a refund.

Endpoint

{{baseurl}}/refund

This is a POST request and takes a number of parameters:

FieldData TypeDescription
referenceStringRequired. Unique identifier associated with the transaction in question.
amountNumberThe total amount of money involved in the transaction.
noteStringOptional note you can add.

This is what your request should look like:

{
  "reference": "string",
  "amount": 0,
  "note": "string"
}