Delete an Invoice

Delete an invoice

⚠️ 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.

DELETE /invoices/:invoiceId

Facades POS MERCHANT

HTTP Request

Headers

Invoice cancelInvoice = bitpay.CancelInvoice(invoice.Id).Result;

HTTP Response

FieldDescriptionType
isCancelledIndicates whether or not the invoice was cancelled explicitly (vs expiring or being decline for other reasons)string

Error Scenarios & Format:

FieldDescriptionType
statuswill be “error” in an error scenariostring
codesix digit code that maps to an error on BitPay’s sidestring
datawill be null in an error scenariostring
messageerror message pertaining to the specific errorstring
{
"status": "error",
"code": "040107",
"data": null,
"error": "Invalid invoice state for cancel"
}