This API is used to issue a refund to an end user, allowing for either a full or partial refund of a previous transaction.

On successful refund a response 5907 is returned (Transaction successfully refunded.), otherwise, the API returns one of the following errors:

Response codeDescription
5900An exception occurred in the API.
5901Mandatory parameters missing.
5902Merchant-ID is invalid.
5903Transaction-ID is invalid.
5904Action-Type is invalid.
5905AuthToken is incorrect.
5906Transaction already refunded.
5907Transaction successfully refunded.
5908Refund rejected.
Language