Voiding a Capture

This section describes how to void a capture that was submitted but not yet processed by the processor.

Endpoint

Void a Capture
Production:
POST
https://api.cybersource.com
/pts/v2/captures/
{id}
/voids
Test:
POST
https://apitest.cybersource.com
/pts/v2/captures/
{id}
/voids
The
{id}
is the transaction ID returned in the capture response.

REST Example: Voiding a Capture

Light Dark
1234567
{"clientReferenceInformation": { "code": "FE5690997" }, "paymentInformation": { "card": { "expirationYear": "2033" } }}
123456789101112131415161718192021
{"_links": { "self": { "method": "GET", "href": "/pts/v2/voids/7025612536246445304953" } }, "clientReferenceInformation": { "code": "FE5690997" }, "id": "7025612536246445304953", "orderInformation": { "amountDetails": { "currency": "THB" } }, "status": "VOIDED", "submitTimeUtc": "2024-06-02T18:08:59Z", "voidAmountDetails": { "currency": "THB", "voidAmount": "10" }}