REST API | Visa Platform Connect

REST Example: Reverse a PIN Debit EBT Purchase

Endpoint

Production:
POST
https://api.cybersource.com
/pts/v2/payments/
{id}
/voids
Test:
POST
https://apitest.cybersource.com
/pts/v2/payments/
{id}
/voids
The
{id}
is the transaction ID returned in the purchase response.
Request
{ "clientReferenceInformation": { "code": "ABC1234", "partner": { "thirdPartyCertificationNumber": "PTP1234" } }, "paymentInformation": { "paymentType": { "name": "CARD", "subTypeName": "DEBIT" }, "card": { "useAs": "", "sourceAccountType": "UA" } }, "orderInformation": { "amountDetails": { "totalAmount": "101.00", "currency": "USD" } } }
Response to a Successful Request
{ "_links": { "self": { "method": "GET", "href": "/pts/v2/payments/6898911623526032004953" } }, "clientReferenceInformation": { "code": "ABC1234" }, "id": "6898911623526032004953", "orderInformation": { "amountDetails": { "currency": "usd" } }, "processorInformation": { "retrievalReferenceNumber": "123456188670", "responseCode": "00" }, "reconciliationId": "6898907727276183604951", "status": "REVERSED", "submitTimeUtc": "2023-07-20T22:12:42Z", "voidAmountDetails": { "currency": "usd", "voidAmount": "101.00" } }