メインコンテンツへスキップ
POST
/
v1
/
payments
/
{id}
/
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": 1000
}'
{
  "success": true,
  "transaction_id": "tx_abc123",
  "status": "completed",
  "amount_captured": 1000
}

Authorizations

Authorization
string
header
required

アクセストークンを使用したBearer認証

Path Parameters

id
string
required

トランザクションID

Example:

"tx_abc123"

Body

application/json
amount
integer

キャプチャ金額(省略時は全額キャプチャ)

Example:

1000

Response

キャプチャ成功

success
boolean

処理成功フラグ

Example:

true

transaction_id
string

トランザクションID

Example:

"tx_abc123"

status
string

ステータス

Example:

"completed"

amount_captured
integer

キャプチャ金額

Example:

1000