Record a prepayment to a supplier
Records 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
From your agent’s balance. A call that fails costs nothing.
An example
We paid Nordstahl a 1,190 euro deposit on order AB-2026-311 today, VAT included.
Your agent callspurchasing_record_prepayment$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.
{
"supplier": "Nordstahl Küchentechnik GmbH",
"amount": "1190.00",
"tax_rate": 19,
"reference": "Anzahlung AB-2026-311"
}Use it when
The business paid ahead: a deposit on an order, an advance the supplier invoiced.
- For paying a bill that came in, use
purchasing_pay_bill.
What it does
Record money the business paid a supplier before their bill, like a deposit, as Xero's prepayments: it waits as a credit with the supplier (SC-0001 on) until purchasing_use_credit puts it on their bill or records it coming back. With tax_rate it carries the VAT on the supplier's advance invoice, reclaimable once paid; using it on the bill takes that VAT back off. With books kept it is posted at once: Prepayments to suppliers (1450, made when missing) and the tax to reclaim against the bank.
What comes back
credit: its number, the amount, its VAT, what is left, the supplier and the entry that booked it. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
supplierRequired | integer or string | A supplier_id, or the supplier's name. 1 to 200 characters, at least 1. |
amountRequired | number or string | What was paid, tax included. Up to 24 characters. |
currency | string | ISO 4217, e.g. "EUR". Default: the supplier's. Matches ^[A-Za-z]{3}$. |
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. |
tax_rate | number | The VAT in it, in percent, e.g. 19. Default none. 0 to 100. |
The call
Over MCP, call purchasing_record_prepayment on https://api.conecto.chat/mcp/purchasing. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/purchasing_record_prepayment \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"supplier":"Nordstahl Küchentechnik GmbH","amount":"1190.00","tax_rate":19,"reference":"Anzahlung AB-2026-311"}'When it refuses
A refused call costs nothing and says what to do next.
| Code | When | What to do |
|---|---|---|
not_found404 | No supplier of the business has that supplier_id or name. | Call purchasing_list_suppliers, or add the supplier with purchasing_save_supplier. |
archived409 | The supplier, item, location or account is archived. | Bring the supplier back with purchasing_save_supplier archived: false, or use another one. |
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. |
invalid_input400 | The amount is 0 or not a number in the currency, or the date is in the future. | Fix what the message names. |
limit_reached409 | The account has 5,000 open credits. | Use or close some first. |
in_progress409 | Another credit took the number at the same moment. | Call again. |
More Purchasing tools
All 25 tools- 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 - Void a bill
purchasing_void_billVoids a bill entered by mistake; the books reverse it and its order can be billed again.$0.01 a call - List or read bills
purchasing_list_billsSupplier bills by due date, filtered by status, supplier, order or dates; or one bill in full.Free* - Run a purchasing report
purchasing_reportAged payables (what is owed to each supplier by how late) or spend (what each supplier billed and was paid).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