REST API | Visa Platform Connect

REST Example: Processing Multiple Partial Captures

Endpoint:
  • Production:
    POST
    https://api.cybersource.com
    /pts/v2/payments/{id}/captures
  • Test:
    POST
    https://apitest.cybersource.com
    /pts/v2/payments/{id}/captures
id
is the transaction ID returned in the authorization response.
Request
This example includes special fields that are not required by all processors.
{ { "clientReferenceInformation": { "code": "TC50171_3" }, "processingInformation": { "captureOptions": { "captureSequenceNumber": "2", "totalCaptureCount": "3" } }, "orderInformation": { "amountDetails": { "totalAmount": "102.21", "currency": "USD" } } }
Response to a Successful Request
{ "_links": { "void": { "method": "POST", "href": "/pts/v2/captures/6742496815656503003954/voids" }, "self": { "method": "GET", "href": "/pts/v2/captures/6742496815656503003954" } }, "clientReferenceInformation": { "code": "TC50171_3" }, "id": "6742496815656503003954", "orderInformation": { "amountDetails": { "totalAmount": "102.21", "currency": "USD" } }, "reconciliationId": "67332020GD2G1OO1", "status": "PENDING", "submitTimeUtc": "2023-01-20T21:21:21Z" }