Enter a bill by hand: draft or post
billSupplier bills, end to end (rounds 611 and 619, as the Bills pages do it). action=draft saves a bill typed by hand as a draft (complete or not; the owner finds it on Bills), action=post proposes it as one entry: each line net on its account with the input VAT of its tax rate, the total on the supplier's creditor account with the supplier as party; on release the due date is kept and each line on a fixed asset account joins the register (life_months its life; without it the asset waits with its life to set; capitalise=false leaves the line off). bill_id with draft or post changes a draft (or replaces a bill awaiting approval). kind=credit_note with draft or post: a supplier credit note, its lines typed with the amounts the supplier credits (above nil); it is booked the other way round; with bill (the bill it credits, its entry or number) the supplier, currency and lines come from that bill where lines are left out (only what is still open, pro rata per line and rate), and on release it is set against that bill (paid by credit; any rest stays as supplier credit); a bill with nothing open needs again=true. A bill with a negative total is refused: it is a credit note. currency: the bill's currency (left out: the supplier's, else the books'). fx_rate: units of the bill's currency to one of the books' (1.16 euros to the pound; left out: the day's rate; one unit in the books' currency is read too where the rate on file sets the two apart, not near parity; rate_read in the answer says the rate as read). pva: the postponed import VAT in the books' currency as the HMRC statement says it, for lines on the PVA rate. accrue=true with no invoice yet: the net on Accruals, no VAT, nothing owed; the supplier's invoice clears it on release (the answer's accrual says which); with received_on (before the bill's date) the cost falls on the day received. A line without account or tax_rate takes the supplier's default account and purchase tax rate (its own, else those of its newest bill); a line on an account with a default tax rate takes that rate (DATEV's automatic accounts carry theirs: SKR03 3400 brings Vorsteuer 19 %); tax_rate none books it without tax. action=list: the bills entered by hand with their status; action=delete with bill_id deletes a draft. Fields: supplier, date (YYYY-MM-DD), due_date (left out: the supplier's terms, else the company's), reference (the supplier's invoice number), amounts_are (exclusive, the default, inclusive or none), lines: [{description, quantity (1 when left out), unit_price, account (code or exact name), tax_rate (code or name), life_months (a vehicle or building under 12 months only with life_ok true)}], document_ids (uploaded documents). action=from_document with document_id: the bill as the document's reading fills it (Enter as bill), to post; a document booked already says so (booked_already), and post refuses a document in an entry or a waiting proposal unless again=true; it also refuses a bill whose supplier and reference are on file already (duplicate_of names it) unless again=true keeps both. action=overview: every bill in the books and typed (status draft, waiting, awaiting_payment, overdue, part_paid, paid; credit notes credit or allocated), with amount, paid and due; status and q (supplier, number or amount) filter. action=get with bill (its entry, journal id, or its number): one bill, its lines and its payments. action=remove_payment with bill, source = a payment's settlement_id and reason: takes it off, proposed; on release as Remove on the bill's page (round 633). action=void with bill (reason optional): the bill or supplier credit note reversed (it stays on file), on its own date, or on the day after the lock where that period is locked; a paid bill is refused with its payment named, which action=remove_payment takes off; the void is proposed and posts on its release, as the owner's switches allow (round 1221). action=skonto with bill and amount (the Skonto, or a percentage of the bill as 2%; date optional): the supplier's discount for early payment booked with its input VAT taken off, per tax code of the bill, set against the bill; then action=payment pays the rest (round 860). action=payment with bill: money paid on it (amount: all that is open when left out; date; account = the bank, card or cash account it left; reference); a bill in another currency: amount in the bill's currency, bank_amount what left the account in its own currency (left out: at the day's rate), the difference posted as a realised currency gain or loss. Less than open leaves the rest open; more is kept as credit with the supplier. action=credits (supplier optional): supplier credit open, each with its source. action=allocate with bill and source: that credit set against the bill (amount optional). action=refund with source: the supplier paid it back (amount, date, account it came into; credit in another currency: bank_amount what arrived in the bank's currency). action=payment_run: the open bills due by until (YYYY-MM-DD) in the currency of account, with their line_id and whether the supplier's bank details allow a BACS or SEPA file. action=payment_file with bill_lines (line ids; "id:amount" pays part of that bill), account, date and fmt (bacs, csv or sepa): the bank file as text, to hand to the owner; Octobooks sends it nowhere. action=payment_record with bill_lines, account and date: the bills paid (in full, or the part named) as one entry. action=supplier with supplier: its default account, purchase tax rate, currency and bank details; with default_account, default_tax_code or currency it sets them (bank details are set by a person only). action=repeating: the repeating bills; with supplier, lines, start (the next date), every_n and unit (week, month, quarter, year), end_date and post_mode (post or draft) it makes one: each date makes the bill of that day. action=expense_claim with person (who paid from their own pocket), role (director or employee) or person_account, date, document_ids (the receipts) and lines: {account, description, amount (gross), tax_rate, currency (a receipt in another currency: claimed at the rate of its date)} per receipt, or {mileage (miles in the UK, km in Germany and Austria), vehicle (car, van, motorcycle, bicycle), passengers (fellow employees carried, UK car or van and Austria), description, date (the journey's day: it picks the rates); UK car or van also fuel (petrol, diesel, lpg) and engine_cc: a VAT registered company then reclaims the VAT in the fuel part at HMRC's advisory fuel rate, VAT Notice 700/64 s9.8; a fully electric car: fuel electric_public (the charging part at the advisory electric rate for public chargers, its VAT reclaimed, s8.2) or electric_home (no VAT: the electricity is supplied to the person, s8.3), no engine_cc; from_place and to_place (a UK postcode, an address or lat,lon) with return_trip in place of mileage: the road distance is worked out by the free OpenStreetMap route of FOSSGIS} per business trip at the rates in force on the trip's date (round 732): HMRC approved mileage rates (cars and vans 55p a mile from 6 April 2026, 45p before, 25p above 10,000 miles a tax year per person, 35p from 6 April 2027; motorcycle 24p, bicycle 20p; passengers: fellow employees carried, 5p a mile each), the German Kilometerpauschale (0.30 EUR a km car, 0.20 other motor vehicles, § 9 EStG) or the Austrian Kilometergeld (0.50 EUR a km car, 0.25 motorcycle or bicycle from 1 July 2025, 0.15 a passenger; 30,000 km a year): booked against the person's account (UK 2310 Directors loan account or 2330 Other creditors; DE Verbindlichkeiten gegenüber Gesellschaftern or aus Lohn und Gehalt). The supplier is a contact's full name (case and punctuation aside) or a part of a word that names exactly one; a new supplier whose name is part of others needs new_contact=true. action=supplier also takes skonto_percent and skonto_days, the supplier's Skonto terms (round 860; "0" takes them off), and remittance_email: after action=payment_record booked at once the remittance advice goes by mail to it (the answer's remittance says sent and not sent); a payment_record that waits for approval mails the advice once when it is released (remittance=false leaves it out; action=remittance_mail with bill_id, the payment entry's journal id, mails it by hand). An advice mailed already is not mailed twice: again=true sends it once more. action=prepayment with supplier, amount, date, account (the bank it left) and reference: money paid before there is a bill; it stands as supplier credit (action=credits) to allocate to the bill. action=expense_claims: claimed, paid out and owed per person. action=expense_claim_pay with person, account (the bank, card or cash account it left), amount (all that is owed when left out) and date: pays the person out (Dr their account naming them, Cr the bank). action=from_purchase_order with purchase_order: the bill filled from the order (received quantities, else ordered, at the order's prices, less what was billed already), to post with purchase_order: the order then closes once billed in full; an order billed in full is refused. Payments, allocations, refunds and runs are proposed and settle the bills on release: by the connected AI where the owner's switches allow it, otherwise by the owner.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "bill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | ||
| fmt | No | bacs | |
| pva | No | ||
| bill | No | ||
| date | No | ||
| kind | No | bill | |
| role | No | employee | |
| unit | No | month | |
| again | No | ||
| lines | No | ||
| start | No | ||
| until | No | ||
| accrue | No | ||
| action | Yes | ||
| amount | No | ||
| person | No | ||
| reason | No | ||
| source | No | ||
| status | No | ||
| account | No | ||
| bill_id | No | ||
| company | No | ||
| every_n | No | ||
| fx_rate | No | ||
| project | No | ||
| currency | No | ||
| due_date | No | ||
| end_date | No | ||
| supplier | No | ||
| post_mode | No | post | |
| reference | No | ||
| bill_lines | No | ||
| no_receipt | No | ||
| remittance | No | ||
| amounts_are | No | exclusive | |
| bank_amount | No | ||
| document_id | No | ||
| new_contact | No | ||
| received_on | No | ||
| skonto_days | No | ||
| document_ids | No | ||
| person_account | No | ||
| purchase_order | No | ||
| skonto_percent | No | ||
| default_account | No | ||
| idempotency_key | No | ||
| default_tax_code | No | ||
| remittance_email | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||