On This Page
Capture
This section describes how to capture an authorized transaction.
Endpoint
Production:
POST
https://api.sa.cybersource.com
/pts/v2/payments/{id}
/capturesTest:
POST
https://apitest.sa.cybersource.com
/pts/v2/payments/{id}
/capturesThe is the transaction ID returned in the authorization
response.
{id}
Required Fields for Capturing an Authorization
- This field value maps from the original authorization, sale, or credit transaction.
REST Example: Capturing an Authorization
Request
This example includes optional fields.
{ "clientReferenceInformation": { "code": "SPG_REQ_02" }, "processingInformation": { "captureOptions": { "captureSequenceNumber": 1, "totalCaptureCount": 5 } }, "orderInformation": { "amountDetails": { "totalAmount": "10", "currency": "SAR" } } }
Response to a Successful Request
{ "orderInformation": { "amountDetails": { "totalAmount": "100.00", "currency": "SAR" } }, "processorInformation": { "paymentAccountReferenceNumber": "ZnUYuZUWBZbZVsNI0CEsKW75QleZ8", "approvalCode": "830SPG", "retrievalReferenceNumber": "424009035277", "responseCode": "00", "settlementDate": "220915" }, "_links": { "self": { "method": "GET", "href": "/v2/payments/7247512943611234567890" }, "refund": { "method": "POST", "href": "/pts/v2/payments/7247512943611234567890/refunds" } }, "clientReferenceInformation": { "code": "TC_SPG_REQUEST_PB-64" }, "consumerAuthenticationInformation": { "token": "7247512943611234567890" }, "reconciliationId": "7247511738451234567890", "status": "PENDING", "id": "7247512943611234567890", "submitTimeUtc": "2024-08-27T09:34:54Z" }