delete https://test.bitpay.com/invoices/guid/
Facades: merchant
Note
Cancellation will require EITHER an SMS or E-mail to have already been set if the invoice has proceeded to the point where it may have been paid, unless using forceCancel parameter.
Error Scenarios
- Cancellation requires SMS/email. Next step: resubmit the request after updating the invoice with verified SMS or Email
- Invoice is already complete. Next step, use the POST /refunds endpoint for this invoice