Menu

REST Example: Processing a Merchant-Initiated Capture Void

Endpoint

  • Production:
    POST
    https://api.cybersource.com
    /pts/v2/captures/
    {id}
    /voids
  • Test:
    POST
    https://apitest.cybersource.com
    /pts/v2/captures/
    {id}
    /voids
IMPORTANT
POST requests for voids require a body. If you have no fields to pass, use empty braces as shown in the example request below.
Request the Void Service
{ }
Response for 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" } }
Back to top