Captures with Level II Data

This section shows you how to capture an authorized transaction with Level II data. These required fields and example are specific to
Visa Platform Connect
.
For required fields, optional fields, and examples specific to your processor see the Level II and Level III Processing developer guides.

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.

Required Fields for Capturing a Payment with Level II Data

Use these required fields to capture a payment that includes Level II data.
Required if the sum of all
orderInformation.lineItems[].taxDetails[].amount
values =
0
.
Required for purchase/procurement cards only.
Required if the sum of all
orderInformation.lineItems.taxAmount
values =
0
.

Optional Fields for Capturing a Payment with Level II Data

You can use these optional fields to include additional information when capturing a payment with Level II data.

REST Example: Capturing a Payment with Level II Data

Request
        
{ "clientReferenceInformation": { "code": "TC50171_3" }, "orderInformation": { "amountDetails": { "totalAmount": "102.21", "currency": "USD" } } }
Response to a Successful Request
        
{ "_links": { "void": { "method": "POST", "href": "/pts/v2/captures/6807039415896954303954/voids" }, "self": { "method": "GET", "href": "/pts/v2/captures/6807039415896954303954" } }, "clientReferenceInformation": { "code": "TC50171_3" }, "id": "6807039415896954303954", "orderInformation": { "amountDetails": { "totalAmount": "102.21", "currency": "USD" } }, "reconciliationId": "6807035882136830803954", "status": "PENDING", "submitTimeUtc": "2023-04-05T14:12:21Z" }