KashierDevelopersKashier Developers

Capture an authorized order

curl -X PUT "https://test-api.kashier.io/v3/payment/capture/string" \  -H "Content-Type: application/json" \  -d '{    "apiOperation": "CAPTURE",    "transaction": {      "amount": 3    }  }'
{  "response": {},  "transactionId": "string",  "messages": {    "en": "string",    "ar": "string"  },  "status": "string"}

Takes the money on an order you previously authorized, fully or partially. Capture before the hold expires — 7 or 30 days depending on your configuration — or the authorization lapses and the funds go back to the customer on their own. To release an authorization deliberately, use void rather than letting it expire.

The same operation as PUT /v3/orders/{orderId} with apiOperation: CAPTURE.

Authorize-and-capture must be switched on for your account — contact your account manager or customer success if a capture is rejected as unsupported.

Send your secret key in the Authorization header.

Authorization

secretKey
Authorization<token>

Your secret key from the Kashier dashboard. Send the raw key value in the Authorization header, without a Bearer prefix.

In: header

Path Parameters

orderId*string

Kashier's order id.

Request Body

application/json

The request body for a capture.

TypeScript Definitions

Use the request body type in TypeScript.

Capture a previously authorized amount, fully or partially. Capture the amount before the authorization expires.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

PUT
/v3/payment/capture/{orderId}