Write customers and suppliers
contact_setWrite the customers and suppliers of the company. Suppliers too are made and changed here (name, VAT number, country, archive, address, persons, terms, defaults) while the owner's switch for the AI's suppliers is on, as it is unless switched off. bank (a supplier): {sort_code, account_number, iban, bic, and document_id or bill_id it comes from}: new bank details wait for the owner's one tap on Home (old and new shown masked), unless the owner's switch Supplier bank details lets them in at once; a bad IBAN, sort code or account number is refused; payments use confirmed details only. what=save: side (customer or supplier), code (an existing contact to change; left out with a new name, a code is made from the name) and any of name, email, phone, website, line1, line2, city, postcode, country (two letters or the name), vat_number, buyer_kind (business, private or public, a customer; public and country AT: the invoice goes to e-Rechnung.gv.at, no Leitweg ID), our_supplier_number (a customer: the Lieferantennummer the Austrian federal administration gave the seller), bbg (a customer buying under a contract of the Bundesbeschaffung GmbH: {"our_partner", "partner", "contract"}, the BBG partner numbers of the seller and the customer and the BBG Geschäftszahl, on its e-Rechnung.gv.at files), payment_terms_days with payment_terms_kind (days: that many days after the invoice date, the default; eom_plus: that many days after the end of the invoice's month; eom_next: the end of the following month, no days), currency, default_account and default_tax_code (the account and tax rate new lines take; a supplier's tax rate set here stands in for the account's own rate on each of its lines; an exempt, outside the scope, reverse charge or blocked account rate stays), po_reference (a customer: the purchase order number each new invoice to it starts with as its order_reference), persons (contact persons [{name, email, phone, role}], replaces the list); a field left out stays, an empty text clears it. A save by name alone changes the contact of that name; new=true means a new contact: a name on file is refused naming the one there, unless second=true makes a second contact of that name. what=archive or restore: side and code. what=delete: side and code of a customer no invoice, quote or repeating invoice names, or a supplier no bill, entry or purchase order names (one that is named is archived). what=merge: side, code (the one merged) and into (the one kept): the merged one's invoices, bills and open items then show on the one kept, the merged one is archived. what=import: side (for rows without a type), and rows (objects keyed by the field names above, or type: customer, supplier, both) or csv (the text of an export of Xero, QuickBooks, Zoho, sevDesk, Lexware; columns recognised by their headers) or document_id (an uploaded CSV or Excel file): a contact of the same code, else name, is updated. A supplier's iban, bic, sort_code and account_number columns: under the owner's switch Supplier bank details, Ask me, they wait as one ask on Home for the whole import (the suppliers are in at once); Without asking saves them. what=edi (round 723): code (a customer) and edi {on, gln (the customer's GLN), our_gln, delivery_gln, method file, sftp or as2, endpoint (sftp://user@host/folder or https://...), as2_id, our_as2_id, their_cert (PEM), messages [INVOIC, DESADV], mdn sync or async}: the key account then gets each invoice and delivery note as EANCOM D.96A at issue; by AS2 its orders and acknowledgements come in at the company's AS2 address. what=vat_check: vat_number (with its country, DE811569869), or code (a customer): asks the EU register (VIES) now and keeps the answer with its consultation number. what=vat_recheck: the customers in other EU countries whose newest check is 30 days old, missing or unanswered (or the one named by code) are asked again; Octobooks also does this by itself every day. what=files: side and code: the files kept on the contact (a contract, a price list, the files a switch from Xero brought from its purchase orders and quotes). what=attach: side, code, document_id (a file in Documents) and reason (the reference): keeps that file on the contact. what=file_remove: side, code and document_id: takes it off the contact (it stays in Documents). Books nothing.
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": "contact_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbg | No | ||
| csv | No | ||
| edi | No | ||
| new | No | ||
| bank | No | ||
| city | No | ||
| code | No | ||
| into | No | ||
| name | No | ||
| rows | No | ||
| side | No | customer | |
| what | No | save | |
| No | |||
| line1 | No | ||
| line2 | No | ||
| phone | No | ||
| reason | No | ||
| second | No | ||
| company | No | ||
| country | No | ||
| persons | No | ||
| website | No | ||
| currency | No | ||
| postcode | No | ||
| buyer_kind | No | ||
| vat_number | No | ||
| document_id | No | ||
| po_reference | No | ||
| default_account | No | ||
| idempotency_key | No | ||
| default_tax_code | No | ||
| payment_terms_days | No | ||
| payment_terms_kind | No | ||
| our_supplier_number | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||