Refund

Provide a full or partial refund on a Sale or Capture

A refund can be issued against a Sale or Authorization transaction that has already settled (batched). This function returns funds to the card holder for equal or less value than the original Sale/Capture transaction.

🚧

Note:

If the original sale or authorization is not settled (batched) and you want to cancel the transaction completely use the Void endpoint.

Parameters

The following parameters are available to process refunds.

parameterdescriptionrequired

mid

the Merchant ID (MID) assigned by {user.company_name} or your merchant service provider (MSP)

Yes

reference_id

A reference id that will be echo'd back in the message response.

No

amount

the total amount to refund

Yes - only if partial amount requested

transaction_id

the unique transaction_id from the original sale or authorization

Yes

metadata

a set of key-value pairs that you can attach to a payment. This can be useful for storing additional information about the payment in a structured format.

No

Response Codes

Language
Click Try It! to start a request and see the response here!