Void

Cancels a transaction that has not yet settled (same-day, before batch close), releasing the hold before it hits the customer's statement. Once settled, use Refund instead.

Request

No body required — the transaction_id goes in the path.

curl -X POST '{gtw_url}/locations/{location_id}/transactions/{transaction_id}/void' \
  -H 'Authorization: Bearer {access_token}' \
  -H 'Content-Type: application/json'

Response — 200 OK

{ "transaction_id": "F5C911EF-0A4C-3124-A9F6-D05099D6021D" }

Error — 400 Bad Request

{ "error": { "code": 19100, "name": "cybersource_40",
             "message": "Cannot VOID a reversed transaction", "details": [] } }

If a transaction has already settled or reversed, it can't be voided — Refund it instead.

Full field reference: Void