Turn a quote into an invoice
Turns an accepted quote into a draft invoice with the same customer and lines.
$0.01 a call
From your agent’s balance. A call that fails costs nothing.
An example
Lukas confirmed the chair quote on the phone. Turn it into an invoice.
Your agent callsinvoices_convert_quote$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.
{
"quote_id": "2d9c4e7b-1a3f-4c5d-8e6f-0b1a2c3d4e5f",
"mark_accepted": true
}Use it when
The customer said yes to a quote, on its page or another way.
What it does
Turn an accepted quote into a draft invoice with the same customer and lines, ready for invoices_send. If the customer accepted some other way (email, phone), pass mark_accepted: true to record it.
What comes back
invoice: the new draft invoice; quote: the quote it came from, now accepted. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
quote_idRequired | string | The quote's invoice_id. Exactly 36 characters. |
mark_accepted | boolean | Record a sent quote as accepted first (the customer said yes). Default: false. |
The call
Over MCP, call invoices_convert_quote on https://api.conecto.chat/mcp/invoices. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/invoices_convert_quote \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"quote_id":"2d9c4e7b-1a3f-4c5d-8e6f-0b1a2c3d4e5f","mark_accepted":true}'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. |
not_a_quote400 | The id is an invoice. | Pass a quote's invoice_id. |
not_sent409 | The quote is still a draft. | Send it with invoices_send first. |
not_accepted409 | The customer has not accepted the quote. | If they said yes another way, call again with mark_accepted: true. |
quote_declined409 | The customer declined the quote. | Create a new quote or invoice. |
quote_void409 | The quote is void. | Create a new quote or invoice. |
already_converted409 | The quote became an invoice already. | Use that invoice; the message names it. |
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