Record a bill payment
Records money paid on a bill, or money back from the supplier; it is posted to the books.
$0.01 a call
From your agent’s balance. A call that fails costs nothing.
An example
We paid 400 euros of Nordstahl's bill by bank transfer this morning.
Your agent callspurchasing_pay_bill$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.
{
"bill_id": "3c5e7a9b-1d2f-4a6c-8e0b-4d6f8a1c3e5b",
"amount": "400.00",
"method": "bank_transfer",
"reference": "NS-2026-1188"
}Use it when
The business paid a supplier, in full or in part.
What it does
Record money paid on a bill: amount (at most the balance, unless keep_excess keeps the rest as a credit with the supplier for purchasing_use_credit), date, method and reference. It becomes partially_paid, or paid when nothing is left. A negative amount records money back from the supplier. When the account keeps books, the payment is posted (accounts payable against the bank, with any exchange difference). books_match_bank_lines can do this from a bank line too.
What comes back
bill: the bill with its new status, amount paid and balance; payment: the payment as recorded. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
bill_idRequired | string | The bill_id purchasing_create_bill returned. Exactly 36 characters. |
amountRequired | number or string | In the bill's currency, e.g. "250.00". Negative for a refund. Up to 24 characters. |
date | string | When it was paid. Default today. Matches ^\d{4}-\d{2}-\d{2}$. |
method | string | One of: bank_transfer,card,cash,check,online,other. Default: bank_transfer. |
reference | string | Up to 120 characters. |
note | string | Up to 500 characters. |
keep_excess | boolean | Paid more than the balance: keep the rest as a credit with the supplier. Default: false. |
The call
Over MCP, call purchasing_pay_bill on https://api.conecto.chat/mcp/purchasing. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/purchasing_pay_bill \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"bill_id":"3c5e7a9b-1d2f-4a6c-8e0b-4d6f8a1c3e5b","amount":"400.00","method":"bank_transfer","reference":"NS-2026-1188"}'When it refuses
A refused call costs nothing and says what to do next.
| Code | When | What to do |
|---|---|---|
not_found404 | No bill of the business has that bill_id. | Find it with purchasing_list_bills. |
unbalanced400 | The debits and credits do not add up to the same amount. | Make the lines balance. |
before_start409 | The date is before the books start. | Use a later date. |
period_locked409 | The books are locked for that date. | Use a later date, or unlock with books_lock. |
no_rate409 | There is no exchange rate for the currency on that day. | Pass rate, or set a standing rate with books_setup rates. |
rates_loading503 | The day's exchange rates are still loading. | Try again in a few minutes, or pass rate. |
void409 | The bill is void. | Payments go on bills that are not void. |
already_paid409 | The bill is paid in full. | Nothing more can be paid, except money back. |
more_than_balance409 | The amount is more than the balance. | Pay at most the balance, or keep the rest as a credit with the supplier with keep_excess. |
more_than_paid409 | The money back is more than what was paid. | Record at most what was paid. |
invalid_input400 | The amount is not a number, or the date is not valid. | Send an amount like "400.00". |
More Purchasing tools
All 25 tools- Add or change a supplier
purchasing_save_supplierAdds a supplier or changes one: contact, email for orders, address, currency, payment terms and the book account their bills go to.$0.01 a call - List suppliers
purchasing_list_suppliersSuppliers by name, each with what is owed to them on open bills and how many orders are open.Free* - Say what a supplier sells
purchasing_save_supplier_itemsSays which Inventory items a supplier sells: their code, cost, pack size, minimum order, lead time and a fixed reorder quantity.$0.005 per item saved - List what suppliers sell
purchasing_list_supplier_itemsWhat suppliers sell: codes, costs, packs, minimums, lead times and the preferred supplier, for one supplier or one SKU.Free* - Draft reorders for low stock
purchasing_draft_reordersDrafts one purchase order per supplier for every item at or below its reorder point, counting what is already on order.$0.01 per draft order - Draft a purchase order
purchasing_create_orderDrafts a purchase order to a supplier: lines (with Inventory SKUs if you like), currency, delivery date and stock location.$0.01 a call - Change a draft order, or mark it sent
purchasing_update_orderChanges a draft order, or records it as sent without emailing it.$0.01 a call - Email a purchase order
purchasing_send_orderEmails an order to the supplier with a link to its PDF; a draft takes the next number first.$0.10 a call
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md