FILTER BY TAG

Void a Sale or Capture

Use this information to void a sale or a capture transaction. This section includes REST examples for voiding a sale or capture with and without using a payment card. Transactions processed without the payment card are typically initiated by the merchant's back-office staff.
The
China UnionPay
term for a voided sale is
purchase cancellation
. The term for a voided capture is
pre-authorization completion cancellation
.
For more information about transaction types, see Supported Transaction Types and Integrations. Also see Required EMV Tags.

Void a Sale

Use this endpoint to void a sale transaction.

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 sale response.

Void a Capture

Use this endpoint to void a capture transaction.

Endpoint

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.