Void a quote or invoice
Voids a document: a sent one keeps its number but can no longer be paid or accepted; a draft is discarded.
$0.01 a call
From your agent’s balance. A call that fails costs nothing.
An example
Void the invoice for Café Lotte. They cancelled the order.
Your agent callsinvoices_void$0.01 a call
The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.
{
"invoice_id": "2d9c4e7b-1a3f-4c5d-8e6f-0b1a2c3d4e5f",
"reason": "Order cancelled by the customer"
}Use it when
A quote or a draft is no longer wanted, or an invoice was numbered by mistake and never reached the customer.
- For an invoice the customer may have (emailed, opened or its PDF downloaded), or one wrong in part, use
invoices_create_credit_note.
What it does
Void a document. A sent one keeps its number (numbers stay gapless) but can no longer be paid, accepted or viewed; a draft is simply discarded. Refused while payments are recorded on it, on an invoice with credit notes and on a credit note (correct those with another credit note or a new invoice), and on an invoice that may be in the customer's hands (emailed, opened, or its PDF downloaded through a link): that one is cancelled with a credit note for all of it, as the law asks. An invoice posted to the books is reversed there.
What comes back
The document, now void. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
invoice_idRequired | string | The invoice_id invoices_create returned (quotes and credit notes have one too). Exactly 36 characters. |
reason | string | Up to 500 characters. |
The call
Over MCP, call invoices_void on https://api.conecto.chat/mcp/invoices. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/invoices_void \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"invoice_id":"2d9c4e7b-1a3f-4c5d-8e6f-0b1a2c3d4e5f","reason":"Order cancelled by the customer"}'When it refuses
A refused call costs nothing and says what to do next.
| Code | When | What to do |
|---|---|---|
not_found404 | No quote or invoice of the business has that invoice_id. | Find it with invoices_list and use its invoice_id. |
already_void409 | It is void already. | Nothing to do. |
has_payments409 | Payments are recorded on it. | Record a refund (a negative payment) first if the money went back. |
already_converted409 | The quote became an invoice. | Void that invoice instead. |
not_voidable409 | It is a credit note, which stays once issued. | To charge the customer again, send a new invoice. |
has_credit_notes409 | The invoice has credit notes. | Credit what is left of it with invoices_create_credit_note. |
reached_customer409 | The invoice was emailed to the customer, opened on its page or its PDF downloaded through a link, so voiding it could leave them an invoice whose VAT is still owed. | Cancel it with invoices_create_credit_note (no lines or amount: all of it), which they get too. |
before_start409 | The date is before the books start. | Use a later date, or set an earlier start with books_setup. |
period_locked409 | The books are locked for that date. | Use a later date, or unlock the period with books_lock. |
no_role409 | The books have no account for a role the posting needs. | Give an account that role with books_save_accounts. |
More Invoices tools
All 24 tools- Set the business details
invoices_set_profileSets the business details on quotes and invoices: name, country, address, tax ID, logo, terms, tax, numbering, how to pay and legal notes.$0.001 a call - Get the business details
invoices_get_profileThe business details on quotes and invoices, the next numbers, and what is missing before documents can be sent.Free* - Connect Stripe for invoices
invoices_connect_stripeConnects the business's own Stripe account with a restricted key, so invoices can be paid online; the money goes straight to the business.$0.001 a call - Create a quote or invoice
invoices_createCreates a draft quote or invoice: the customer, the lines, the currency and the dates.$0.01 a call - Change a draft
invoices_updateChanges a draft quote or invoice; customer and lines replace the old ones.$0.01 a call - Send a quote or invoice
invoices_sendSends a draft: it gets the next number, its PDF is made, and the customer is emailed a link to view, pay or accept it.$0.10 a call - Get a quote or invoice
invoices_getOne quote or invoice in full, by invoice_id or number: lines, totals, taxes, payments, history, its page and a fresh PDF link.Free* - List quotes and invoices
invoices_listQuotes and invoices, newest first, by kind, status (also overdue, unpaid and expired), customer and issue date.Free*
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md