Menu
- Introduction to Payments
- Standard Payments Processing
- Card Present Connect | Retail Processing
- Card Present Connect | Mass Transit Processing
- Debit and Prepaid Card Processing
- Processing Debit and Prepaid Authorizations
- Airline Data Processing
- Japanese Payment Options Processing
- Processing Payments Using Credentials
- Customer-Initiated Transactions with Credentials on File
- MIT Delayed Transaction with PAN
- MIT Incremental Transaction with PAN
- MIT Reauthorization Transactions with PAN
- MIT Resubmission Transaction with PAN
- Installment Payments
- Recurring Payments
- Unscheduled COF Payments
- Token Management Service Processing
- Introduction to Payments
- Standard Payments Processing
- Card Present Connect | Retail Processing
- Card Present Connect | Mass Transit Processing
- Debit and Prepaid Card Processing
- Processing Debit and Prepaid Authorizations
- Airline Data Processing
- Japanese Payment Options Processing
- Processing Payments Using Credentials
- Customer-Initiated Transactions with Credentials on File
- MIT Delayed Transaction with PAN
- MIT Incremental Transaction with PAN
- MIT Reauthorization Transactions with PAN
- MIT Resubmission Transaction with PAN
- Installment Payments
- Recurring Payments
- Unscheduled COF Payments
- Token Management Service Processing
On This Page
REST Example: Processing a Merchant-Initiated Credit Void
Endpoint:
- Production:POSThttps://api.cybersource.com/pts/v2/credits/{id}/voids
- Test:POSThttps://apitest.cybersource.com/pts/v2/credits/{id}/voids
For this example, the
{id}
portion of the URL is set to the transaction ID
included in the credit request you want to void: 6541933390746728203005
IMPORTANT
POST requests for voids require a body. If you have no fields to pass,
use empty braces as shown below.
Request
{ }
Response for a Successful Request
The response for a successful credit void contains the value
VOIDED
in the status
field.{ "_links": { "self": { "method": "GET", "href": "/pts/v2/voids/6541933390746728203005" } }, "clientReferenceInformation": { "code": "1654193339056" }, "id": "6541933390746728203005", "orderInformation": { "amountDetails": { "currency": "USD" } }, "status": "VOIDED", "submitTimeUtc": "2023-06-02T18:08:59Z", "voidAmountDetails": { "currency": "usd", "voidAmount": "100.00" } }