vellTRDocs
API ReferencePaymentsCapture Preauthorization

Capture Preauthorization

POST/v1/payments/{id}/captureRecommended

Capture a preauthorized payment (full amount only — partial/multi-capture is Phase 2). Idempotent against an already-captured row.

Authentication

Signature Pattern

HMAC-SHA256(secretKey, "{timestamp}\nPOST\n/v1/payments/{id}/capture\n{sha256(body)}")
HeaderValueDescription
X-Api-Keypk_live_a1b2c3d4e5f6g7h8Merchant public API key
X-Signature{hmac_sha256_hex}Hex HMAC-SHA256 request signature (see below)
X-Timestamp2026-04-13T10:00:00ZISO 8601 UTC request time, validated within ±5 min

Request Example

JSONRequest Body
{}

Response Parameters

FieldTypeExample
idstring"pay_1a2b3c4d5e6f"
statusstring"captured"
amountinteger15000
currencystring"TRY"
commissioninteger449
netAmountinteger14551
refundableAmountinteger15000
completedAtstring"2026-04-13T10:05:00Z"

Response Example

JSONResponse
{
  "id": "pay_1a2b3c4d5e6f",
  "status": "captured",
  "amount": 15000,
  "currency": "TRY",
  "commission": 449,
  "netAmount": 14551,
  "refundableAmount": 15000,
  "completedAt": "2026-04-13T10:05:00Z"
}

Status Codes

200Success
201Created
400Bad Request
401Unauthorized
404Not Found
429Rate Limited
Try itMock
POSThttps://api.pay.sandbox.kvell.group