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- 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