Set the company's invoice details
invoice_details_setSet the company's invoice details as every invoice prints them: seller fields to write over what is there (name, line1, line2, postcode, city, country as two letters, vat_number, tax_number, company_number, register, seat (the registered seat, Sitz, that § 14 UGB names on an Austrian company's invoices), directors, contact_name, phone, email, website, footer; an empty text clears that field) and payment_terms_days. Bank details (bank_name, iban, bic, sort_code, account_number) read from the owner's own invoice are proposed: they print once the owner presses Save under Payment details on Settings, Invoices, where they stand filled in. The pay link is the owner's. For a new company that has no invoice details yet (a draft says so); the address comes from the owner or the public register. The organisation report shows what is set. design sets the look of every document (invoices, credit notes, quotes, confirmations, delivery notes): {layout: classic, modern or compact; accent: teal, navy, green, plum, charcoal, red or any colour as #rrggbb; size: small, normal or large; logo: true or false}; fields left out keep what holds. products_only: true switches on 'Invoice only products from the list' (every line of an invoice, quote or recurring invoice then names item_code), false off. numbers (round 621, the invoice number series of Settings): {action: list} every series with its last and next number; {action: next, series, next_no, year, reason}: where the old books left off (their last invoice was 42, next_no 43), once per series and year before an invoice of that year is issued here; {action: online, series, reason}: the series whose invoices carry the shop's order number (order 1042 is WEB-1042); round 650, as Settings, Invoice numbers: {action: add, series, kind invoice|credit_note} a new series (up to ten capital letters and digits, starting with a letter); {action: default, series} the series a new invoice or credit note takes unless another is picked; round 872: {action: format, series, prefix, year: true|false, digits} how the numbers read (INV-, no year, 3 digits: INV-007), set again while the series has numbered no invoice; {action: elsewhere, series, numbers: [7], reason} numbers issued outside Octobooks, kept as issued elsewhere (not as left out), the series running on after them; round 876: {action: remove, series} takes away a series that numbered nothing, {action: not_elsewhere, series, numbers} takes numbers off the issued elsewhere list. from_past=true reads the company's past invoices uploaded with kind sales_invoice: number format and next number, VAT status and its note, bank details (put to the owner for one tap) and each customer's past invoices, each with the arguments that book it as a past invoice. example_invoice {filename, content_base64}, {document_id} of an uploaded file or {source_url} of a public share link (round 809): the PDF of the last invoice the company sent; Octobooks reads its design (layout, colour, logo, fonts by name) and shows the owner, on the setup checklist, the next invoice in that design beside it with a row per change (Accept / Keep mine); it changes nothing by itself. mail_text (round 830, 842): {invoice, quote, statement, and the German ones invoice_de, quote_de, statement_de: text}, the default email text Send starts with (Settings, Email texts); placeholders {number}, {amount}, {due_date}, {date}, {customer}, {company}; for statements {month}, {closing}, {date}, {customer}, {company}; an empty text goes back to the standard one. The subject lines too: invoice_subject, quote_subject, invoice_subject_de, quote_subject_de, same placeholders. margin_threshold (round 914): a percent (margin after freight, 20 or 12.5), empty to switch it off: To do lists the products and customers below it. unit_price_decimals: 2, 3 or 4, the fewest decimals a unit price shows on invoices, quotes and orders (default 2); a unit price keeps up to 4 decimals as given. Nothing is issued or sent.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "invoice_details_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| design | No | ||
| reason | No | ||
| seller | No | ||
| company | No | ||
| numbers | No | ||
| from_past | No | ||
| mail_text | No | ||
| products_only | No | ||
| example_invoice | No | ||
| idempotency_key | No | ||
| margin_threshold | No | ||
| payment_terms_days | No | ||
| unit_price_decimals | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||