Cancel an Invoice

You can cancel an unpaid invoice. Partially paid or fully paid invoices cannot be cancelled.
Cancelling an invoice requires the invoice number that was assigned when the invoice was created.

Endpoints

Send your API request message to one of these endpoints:  
Production:
 
POST
https://api.cybersource.com
/invoicing/v2/invoices/
{id}
/cancelation
Test:
 
POST
https://apitest.cybersource.com
/invoicing/v2/invoices/
{id}
/cancelation
India Production:
 
POST https://api.in.cybersource.com/invoicing/v2/invoices/
{id}
/cancelation
The
{id}
is the invoice number from the response to the create invoice request.

Successful Response

A successful request is indicated by the
canceled
status in the
status
response field and an updated time in the
submitTimeUtc
response field.