Cancel an Invoice by GUID

Facades: merchant

Overview

Cancel an invoice by ID, with the option to force cancelation when no contact information is present.

📘

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.

Parameters

ParameterDescription
guid *The GUID of the BitPay invoice to be canceled
force_cancelQuery param that will cancel the invoice even if no contact information is present (default: false)

Example

📘

Note

In this example, we assume that a Client has already been initialized and assigned to the bitpay variable.

bitpay.cancel_invoice_by_guid('someGuid')