API
Payments

Capture a Payment

1min
To capture an authorized transaction on a credit card, you only need to provide the payment’s unique ID. Also, capture action provide a way to capture part of the amount and the rest of the amount will be refunded to the customer’s card.
POST
Request
Path Params
id
required
String
The unique ID of the payment
Body Parameters
amount
required
String
Amount intended to be capture by this request. A positive integer represents how much to capture in the smallest currency unit (e.g., 100 Halala to charge 1.00 SAR or 100 to charge ¥100, a zero-decimal currency). The minimum amount is 1 SAR or equivalent in charge currency.
Curl
Responses
200
400


Returns

payment object if the capture operation succeeded with captured and captured_at attributes updated.

In case of any failure, return an error object.

An error example is capturing a payment with a status other than authorized (i.e. capturing a payment with the status 'captured' or 'paid').