- Card-Present Authorizations
- Authorization with Contact EMV and Online PIN
- Authorization with Contact EMV and Offline PIN
- Card-Present Mobile Point-of-Sale Payment Processing
- PIN Debit Services
- PIN Debit EBT Purchase with SNAP Account Swiped Track Data and Balance Inquiry
On This Page
REST API | Visa Platform Connect
REST Example: Processing a Void
Endpoint:
- Captures:
- Production:POSThttps://api.cybersource.com/pts/v2/captures/{id}/voids
- Test:POSThttps://apitest.cybersource.com/pts/v2/captures/{id}/voids
- Credits:
- Production:POSThttps://api.cybersource.com/pts/v2/credits/{id}/voids
- Test:POSThttps://apitest.cybersource.com/pts/v2/credits/{id}/voids
IMPORTANT
A POST request for a void requires a body. If you have no fields to
send, use empty braces as shown below. If you have fields to pass, see Example:
Request with Fields, shown below.
Request with No Fields (Empty Braces)
{ }
Request with Fields
{ "clientReferenceInformation": { "code": "test123", "partner": { "thirdPartyCertificationNumber": "testTPCN" } } }
Response to a Successful Request
{ "_links": { "self": { "method": "GET", "href": "/pts/v2/voids/6541933390746728203005" } }, "clientReferenceInformation": { "code": "1654193339056" }, "id": "6541933390746728203005", "orderInformation": { "amountDetails": { "currency": "USD" } }, "status": "VOIDED", "submitTimeUtc": "2022-06-02T18:08:59Z", "voidAmountDetails": { "currency": "usd", "voidAmount": "100.00" } }