Skip to main content
POST
/
v1
/
payments
/
{id}
/
capture
Capture
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
}

Authorizations

Authorization
string
header
required

Bearer authentication using access token

Path Parameters

id
string
required

Transaction ID

Example:

"tx_abc123"

Body

application/json
amount
number

Capture amount (supports up to 2 decimal places; full amount if omitted)

Example:

17.62

Response

Capture successful

id
string

Transaction ID

Example:

"tx_abc123"

status
string

Status

Example:

"completed"

amount
number

Captured amount

Example:

17.62