Refund transaction
Give a full refund for a transaction that has settled and send money back to the account holder. To perform a partial refund, see Partially refund a transaction.
This is the v2 version of the refund endpoint, and returns the unified response format. See Pay In unified response codes reference for more information.
To refund a split-funded transaction, include split instructions in the request body. Omit the body for a standard refund.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Long-lived API token sent in the requestToken header. See API token authentication.
Path parameters
ReferenceId for the transaction (PaymentId).
Request
Optional. To refund a split-funded transaction, provide split instructions. Omit the body for a standard refund.
Amount to refund from original transaction, minus any service fees charged on the original transaction.
The amount provided can’t be greater than the original total amount of the transaction, minus service fees. For example, if a transaction was $90 plus a $10 service fee, you can refund up to $90.
An amount equal to zero will refund the total amount authorized minus any service fee.
Response
Payabli’s unified response code. Starts with A (Approved) or D (Declined) followed by a four-digit code that provides specific details about the transaction result. See Pay In unified response codes reference for more information.
Human-readable reason corresponding to the response code.
Pagination token (equivalent to pageIdentifier in v1 APIs). Returns null when pagination is not applicable.