Capture an Authorization
When a transaction is below the threshold for First Ride Risk protection, use the capture
service to capture funds from a declined authorization.
Endpoint
Production:
POST
https://api.cybersource.com
/pts/v2/payments/{id}/capturesTest:
POST
https://apitest.cybersource.com
/pts/v2/payments/{id}/capturesThe
{id}
is the transaction
ID returned in the authorization response.
Example: Capture an Authorization
Request
{ "clientReferenceInformation": { "comments": "TransitDA BAU capture", "transactionId": "14987654321", "partner": { "thirdPartyCertificationNumber": "123456789012" } }, "orderInformation": { "amountDetails": { "totalAmount": "10.00", "currency": "EUR" } } }
Response to a Successful Request
{ "_links": { "void": { "method": "POST", "href": "/pts/v2/captures/6484688186356910704004/voids" }, "self": { "method": "GET", "href": "/pts/v2/captures/6484688186356910704004" } }, "clientReferenceInformation": { "comments": "capture", "code": "testcode1012", "transactionId": "14987654321" }, "id": "6484688186356910704004", "orderInformation": { "amountDetails": { "totalAmount": "10.00", "currency": "EUR" } }, "reconciliationId": "fgssgsgsgsfg", "status": "PENDING", "submitTimeUtc": "2022-03-28T12:00:18Z" }