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- Pay bills in a batch
purchasing_pay_billsPays several bills at once from one bank account, like Xero's batch payments, with the SEPA file to upload to the bank.$0.01 per bill paid - Plan when to pay a bill
purchasing_set_planned_datePlans the day the business will pay a bill, so the cash flow forecast takes the money out then rather than on the due date.Free - Record a prepayment to a supplier
purchasing_record_prepaymentRecords a deposit the business paid a supplier before their bill, like Xero's prepayments; it waits as a credit with them.$0.01 a call - Use a supplier credit
purchasing_use_creditPuts a credit with a supplier on their bill, like Xero's allocate credit, or records it coming back.$0.01 a call - List supplier credits
purchasing_list_creditsLists credits with suppliers, deposits and overpayments, with what is left on each.Free* - Repeat a bill
purchasing_save_repeating_billRecords a supplier's bill again every so many weeks, months or years, with [Month] and [Year] filled in, like Xero's repeating bills.$0.01 a call - List repeating bills
purchasing_list_repeating_billsLists the repeating bills: whose each is, how often, the next dates, and what each recorded.Free* - Stop a repeating bill
purchasing_delete_repeating_billStops a repeating bill for good; the bills it recorded stay.Free
Read next: AI bookkeeping: what it does, what it costs, and a two-month test, QuickBooks alternatives in 2026: eight options and what they cost, What is an MCP server?
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md