API
Payments
Refund Payment
1min
To refund a payment, you only need to provide the payment’s unique ID.
POST
Request
Path Params
id
required
String
Body Parameters
amount
required
Integer
Amount intended to be refunded by this request. A positive integer represents how much to refund in the smallest currency unit (e.g., 100 Halala to refund 1.00 SAR or 100 to refund ¥100, a zero-decimal currency). The minimum amount is 1 SAR or equivalent in charge currency.
A payment object if the refund operation succeeded with refunded and refunded_at attributes updated.
In case of any failure, return an error object.
An error example is a repeatable refund (i.e. refunding a payment with status: 'refunded').
Updated 27 May 2024
Did this page help you?