Capture an Authorization

This section describes how to process a capture.
Use the capture service to complete a pre-authorization.

Endpoint

Production:
POST
https://api.cybersource.com
/pts/v2/payments/
{id}
/captures
Test:
POST
https://apitest.cybersource.com
/pts/v2/payments/
{id}
/captures
The
{id}
is the transaction ID returned in the authorization response.

REST Example: Capturing a Pre-Authorization

Light Dark
Request
123456789
{"clientReferenceInformation": {         "code": "TCCUP1"     },   "orderInformation": {     "amountDetails": {       "totalAmount": "5",       "currency": "THB"     }   }}
Response to a Successful Request
1234567891011121314151617181920212223
{"_links": {         "void": {             "method": "POST",             "href": "/pts/v2/captures/7012404694986081603137/voids"         },         "self": {             "method": "GET",             "href": "/pts/v2/captures/7012404694986081603137"         }     },     "clientReferenceInformation": {         "code": "TCCUP1"     },     "id": "7012404694986081603137",     "orderInformation": {         "amountDetails": {             "totalAmount": "5.00",             "currency": "THB"         }     },     "reconciliationId": "333306641171",     "status": "PENDING",     "submitTimeUtc": "2023-11-9T06:47:50Z"}