cURL
curl --request POST \ --url https://api.sandbox.zafapay.com/v1/payments/{id}/capture \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "amount": 17.62 } '
{ "id": "tx_abc123", "status": "completed", "amount": 17.62 }
Capture an authorized payment
Bearer authentication using access token
Transaction ID
"tx_abc123"
Capture amount (supports up to 2 decimal places; full amount if omitted)
17.62
Capture successful
Status
"completed"
Captured amount