On This Page
Void an Order
You can cancel a saved order from your system by requesting a void order. Cancelling an
order is necessary if you decide you no longer need to authorize a saved order.
Endpoints
Production:
POST
https://api.cybersource.com
/pts/v2/payments/{id}
/voidsTest:
POST
https://apitest.cybersource.com
/pts/v2/payments/{id}
/voidsSet the to the request
ID.
{id}
Required Fields for Voiding an Order
- Set to one of these values:
- payPal: the PayPal payment method.
- venmo: the Venmo payment method.
- Set toeWallet.
- Set toAP_CANCEL.
Example: Voiding an Order
Request
{ "paymentInformation": { "paymentType": { "method": { "name": "payPal" }, "name": "eWallet" } }, "processingInformation": { "actionList": [ "AP_CANCEL" ] } }
Response to a Successful Request
{ "message": "Successful", "status": "VOIDED", "id": "7259850570396024801991", "submitTimeUtc": "2024-09-10T16:17:37Z" }
Response Statuses for Voiding an Order
Cybersource
responds to your request with one of these statuses in
the status
response field:- VOIDED: The request was successful and the customer's payment credentials are no longer saved.
- INVALID_REQUEST: The request was not successful. Send a new request.