bexio MCP by usefulapi
v1.24.1Read bexio contacts, invoices, quotes, bills, projects and journal; log time, draft invoices.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
bexio_get_company_profile Get company profile
The bexio company's profile: name, address, legal form, VAT (MWST) and UID numbers, contact details. Each bexio account has one profile.
bexio_get_current_user Get current user
The signed-in bexio user (id, name, email, superadmin/accountant flags). Its id is the default user_id of new records.
bexio_list_users List users
The company's bexio users (id, name, email). Use an id as user_id or owner of contacts, documents and timesheets.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-2000 (default 50). |
offset | integer | Records to skip (default 0). Use next_offset from the previous reply. |
bexio_list_contacts List contacts
List or search contacts (customers, suppliers, persons, companies). Without filters it pages through all contacts; with filters it uses bexio's contact search (all filters must match). name_1 is the company name or a person's last name, name_2 a person's first name.
| Parameter | Type | Description |
|---|---|---|
archived | boolean | true = archived contacts only (default: active contacts). |
city | string | City contains this text. |
contact_type | string | Only companies or only persons. |
descending | boolean | Sort descending (default ascending). |
email | string | Main email contains this text. |
first_name | string | name_2 (a person's first name or a company's name addition) contains this text. |
limit | integer | Results per page, 1-2000 (default 50). |
name | string | name_1 (company name or last name) contains this text. |
nr | string | Contact number equals this. |
offset | integer | Records to skip (default 0). Use next_offset from the previous reply. |
order_by | string | Sort field (default id). |
postcode | string | Postcode equals this. |
updated_since | string | Changed on or after this date, yyyy-mm-dd. |
bexio_get_contact Get contact
One contact with its address, emails, phones, language, groups and remarks.
| Parameter | Type | Description |
|---|---|---|
contact_id * | integer | The contact id (from bexio_list_contacts). |
archived | boolean | true when the contact is archived. |
bexio_list_invoices List invoices
List or search sales invoices (number, contact, totals, open amount, dates, status). Statuses: draft, pending (issued, open), paid, partial (partially paid), canceled, unpaid (overdue reminder state). Without filters it pages through all invoices; with filters all must match.
| Parameter | Type | Description |
|---|---|---|
contact_id | integer | Only documents for this contact (from bexio_list_contacts). |
descending | boolean | Sort descending (default ascending). |
document_nr | string | Document number contains this text (e.g. RE-00012). |
limit | integer | Results per page, 1-2000 (default 25). |
offset | integer | Records to skip (default 0). Use next_offset from the previous reply. |
order_by | string | Sort field (default id). |
status | array | Only invoices with one of these statuses. |
title | string | Title contains this text. |
updated_since | string | Changed on or after this date, yyyy-mm-dd. |
user_id | integer | Only documents owned by this bexio user (from bexio_list_users). |
valid_from_after | string | Document date (is_valid_from) on or after this date, yyyy-mm-dd. |
valid_from_before | string | Document date (is_valid_from) on or before this date, yyyy-mm-dd. |
bexio_get_invoice Get invoice
One invoice with its positions (line items), taxes, totals, received payments and remaining amount.
| Parameter | Type | Description |
|---|---|---|
invoice_id * | integer | The invoice id (from bexio_list_invoices). |
bexio_list_invoice_payments List invoice payments
The payments recorded on one invoice (date, amount, bank account, cash discount).
| Parameter | Type | Description |
|---|---|---|
invoice_id * | integer | The invoice id (from bexio_list_invoices). |
limit | integer | Results per page, 1-2000 (default 50). |
offset | integer | Records to skip (default 0). Use next_offset from the previous reply. |
bexio_list_quotes List quotes
List or search quotes (Offerten): number, contact, totals, validity, status (draft, pending, confirmed, declined). With filters all must match.
| Parameter | Type | Description |
|---|---|---|
contact_id | integer | Only documents for this contact (from bexio_list_contacts). |
descending | boolean | Sort descending (default ascending). |
document_nr | string | Document number contains this text (e.g. RE-00012). |
limit | integer | Results per page, 1-2000 (default 50). |
offset | integer | Records to skip (default 0). Use next_offset from the previous reply. |
order_by | string | Sort field (default id). |
status | array | Only quotes with one of these statuses. |
title | string | Title contains this text. |
updated_since | string | Changed on or after this date, yyyy-mm-dd. |
user_id | integer | Only documents owned by this bexio user (from bexio_list_users). |
valid_from_after | string | Document date (is_valid_from) on or after this date, yyyy-mm-dd. |
valid_from_before | string | Document date (is_valid_from) on or before this date, yyyy-mm-dd. |
bexio_get_quote Get quote
One quote with its positions, taxes and totals.
| Parameter | Type | Description |
|---|---|---|
quote_id * | integer | The quote id (from bexio_list_quotes). |
bexio_list_orders List orders
List or search sales orders (Aufträge): number, contact, totals, recurring flag, status (pending, done, partial, canceled). With filters all must match.
| Parameter | Type | Description |
|---|---|---|
contact_id | integer | Only documents for this contact (from bexio_list_contacts). |
descending | boolean | Sort descending (default ascending). |
document_nr | string | Document number contains this text (e.g. RE-00012). |
limit | integer | Results per page, 1-2000 (default 50). |
offset | integer | Records to skip (default 0). Use next_offset from the previous reply. |
order_by | string | Sort field (default id). |
status | array | Only orders with one of these statuses. |
title | string | Title contains this text. |
updated_since | string | Changed on or after this date, yyyy-mm-dd. |
user_id | integer | Only documents owned by this bexio user (from bexio_list_users). |
valid_from_after | string | Document date (is_valid_from) on or after this date, yyyy-mm-dd. |
valid_from_before | string | Document date (is_valid_from) on or before this date, yyyy-mm-dd. |
bexio_get_order Get order
One sales order with its positions, taxes and totals.
| Parameter | Type | Description |
|---|---|---|
order_id * | integer | The order id (from bexio_list_orders). |
bexio_list_articles List items
List or search items / products (Artikel): code, name, sale and purchase price, tax, unit, stock levels. Use an id as article_id in a draft invoice.
| Parameter | Type | Description |
|---|---|---|
code | string | Item code (intern_code) contains this text. |
descending | boolean | Sort descending (default ascending). |
limit | integer | Results per page, 1-2000 (default 50). |
name | string | Item name (intern_name) contains this text. |
offset | integer | Records to skip (default 0). Use next_offset from the previous reply. |
order_by | string | Sort field (default id). |
bexio_list_projects List projects
List or search projects: number, name, contact, state, type, dates, budget. With filters all must match.
| Parameter | Type | Description |
|---|---|---|
contact_id | integer | Only projects of this contact. |
descending | boolean | Sort descending (default ascending). |
limit | integer | Results per page, 1-2000 (default 50). |
name | string | Project name contains this text. |
offset | integer | Records to skip (default 0). Use next_offset from the previous reply. |
order_by | string | Sort field (default id). |
state_id | integer | Only projects in this state (pr_state_id as returned on a project). |
bexio_get_project Get project
One project with its contact, state, type, dates, invoicing and budget settings.
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | The project id (from bexio_list_projects). |
bexio_list_timesheets List timesheets
List or search time tracking entries: date, duration, text, user, contact, project, business activity, billable flag. With filters all must match.
| Parameter | Type | Description |
|---|---|---|
business_activity_id | integer | Only entries of this business activity (client_service_id, from bexio_list_business_activities). |
contact_id | integer | Only entries for this contact. |
descending | boolean | Sort descending (default ascending). |
limit | integer | Results per page, 1-2000 (default 50). |
offset | integer | Records to skip (default 0). Use next_offset from the previous reply. |
order_by | string | Sort field (default id). |
project_id | integer | Only entries on this project. |
status_id | integer | Only entries with this timesheet status id. |
user_id | integer | Only entries of this bexio user. |
bexio_list_business_activities List business activities
Business activities (Tätigkeiten) for time tracking: id, name, billable default, hourly rate. A timesheet needs one.
| Parameter | Type | Description |
|---|---|---|
descending | boolean | Sort descending (default ascending). |
limit | integer | Results per page, 1-2000 (default 50). |
offset | integer | Records to skip (default 0). Use next_offset from the previous reply. |
order_by | string | Sort field (default id). |
bexio_list_accounts List accounts
The chart of accounts: account number, name, type (1 earning, 2 expenditure, 3 active/asset, 4 passive/liability, 5 complete/closing), default tax, active/locked flags.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-2000 (default 25). |
offset | integer | Records to skip (default 0). Use next_offset from the previous reply. |
bexio_list_journal List journal entries
Accounting journal bookings: date, debit and credit account ids, description, amount, currency, base-currency amount, and the source document (ref_class, ref_id).
| Parameter | Type | Description |
|---|---|---|
account_uuid | string | Only bookings on this account (its uuid from bexio_list_accounts). |
from | string | Bookings on or after this date, yyyy-mm-dd. |
limit | integer | Results per page, 1-2000 (default 25). |
offset | integer | Records to skip (default 0). Use next_offset from the previous reply. |
to | string | Bookings up to this date, yyyy-mm-dd. |
bexio_list_taxes List taxes
VAT (MWST) tax codes: id, code, rate, type (sales_tax, pre_tax, ...), validity. For a draft invoice use an active sales tax (types sales_tax, scope active).
| Parameter | Type | Description |
|---|---|---|
date | string | Only taxes active on this date, yyyy-mm-dd. |
limit | integer | Results per page, 1-2000 (default 50). |
offset | integer | Records to skip (default 0). Use next_offset from the previous reply. |
scope | string | Only active or inactive taxes. |
types | string | Only sales taxes or input (pre) taxes. |
bexio_list_bank_accounts List bank accounts
The company's bank accounts shown in bexio banking: name, bank, IBAN / QR-IBAN, currency, linked ledger account, QR-invoice mode.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-2000 (default 50). |
offset | integer | Records to skip (default 0). Use next_offset from the previous reply. |
bexio_list_currencies List currencies
Currencies set up in bexio (id, code such as CHF or EUR, rounding), optionally with the exchange rate valid on a date. Use an id as currency_id.
| Parameter | Type | Description |
|---|---|---|
date | string | Validity date of the embedded exchange rate, yyyy-mm-dd. |
limit | integer | Results per page, 1-2000 (default 50). |
offset | integer | Records to skip (default 0). Use next_offset from the previous reply. |
with_exchange_rate | boolean | Embed each currency's exchange rate. |
bexio_list_business_years List business years
Accounting business (fiscal) years: start, end, status (open, locked, closed).
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-2000 (default 50). |
offset | integer | Records to skip (default 0). Use next_offset from the previous reply. |
bexio_list_bills List supplier bills
Supplier bills (Kreditoren / purchase bills): document number, vendor, title, status, gross/net, pending amount, bill and due date, overdue flag. status: DRAFTS, TODO (booked, not fully paid), PAID, OVERDUE.
| Parameter | Type | Description |
|---|---|---|
bill_date_from | string | Bill date on or after, yyyy-mm-dd. |
bill_date_to | string | Bill date on or before, yyyy-mm-dd. |
descending | boolean | Sort descending (default ascending). |
due_date_from | string | Due date on or after, yyyy-mm-dd. |
due_date_to | string | Due date on or before, yyyy-mm-dd. |
limit | integer | Bills per page, 1-500 (default 25). |
page | integer | Page number, 1-based (default 1). |
search | string | Free-text search over vendor, vendor reference, currency, document number and title (3-255 characters). |
sort | string | Sort field. |
status | string | Bill status filter. |
supplier_id | integer | Only bills of this supplier contact. |
vendor | string | Vendor name contains this text. |
bexio_create_contact Create contact
WRITE: create a new contact (company or person) in bexio. Nothing existing is changed. For a person, name is the last name and first_name the first name. Owner and responsible user default to the signed-in user.
| Parameter | Type | Description |
|---|---|---|
contact_type * | string | company or person. |
name * | string | Company name, or a person's last name (name_1). |
address_addition | string | Address addition (c/o, P.O. box). |
city | string | City. |
contact_group_ids | array | Contact group ids. |
country_id | integer | bexio country id (1 = Switzerland in a default bexio setup). |
email | string | Main email. |
first_name | string | A person's first name, or a company's name addition (name_2). |
house_number | string | House number. |
language_id | integer | bexio language id of the contact's correspondence language. |
mobile | string | Mobile phone. |
owner_id | integer | Owner bexio user (default: the responsible user). |
phone | string | Landline phone. |
postcode | string | Postcode. |
remarks | string | Internal remarks. |
street_name | string | Street name. |
user_id | integer | Responsible bexio user (default: the signed-in user). |
website | string | Website URL. |
bexio_create_note Create note
WRITE: add a note (call log, meeting minutes, follow-up) to a contact and/or project in bexio. Nothing existing is changed.
| Parameter | Type | Description |
|---|---|---|
subject * | string | Note subject. |
contact_id | integer | Attach to this contact. |
event_start | string | When it happened, local time yyyy-mm-dd HH:MM[:SS] (default: now, UTC). |
info | string | Note text. |
project_id | integer | Attach to this project. |
user_id | integer | Author bexio user (default: the signed-in user). |
bexio_create_timesheet Create timesheet entry
WRITE: log time in bexio: either date + duration (HH:MM), or start + end. Needs a business activity (bexio_list_business_activities). Nothing existing is changed.
| Parameter | Type | Description |
|---|---|---|
business_activity_id * | integer | The business activity (client_service_id) from bexio_list_business_activities. |
billable | boolean | Billable to the client (default true). |
contact_id | integer | The client contact. |
date | string | Work date, yyyy-mm-dd (with duration). |
duration | string | Time worked as HH:MM, e.g. 01:30 (with date). |
end | string | End, local time yyyy-mm-dd HH:MM[:SS] (with start). |
project_id | integer | The project. |
start | string | Start, local time yyyy-mm-dd HH:MM[:SS] (with end). |
status_id | integer | Timesheet status id (bexio's default when omitted). |
text | string | What was done. |
user_id | integer | Whose time (default: the signed-in user). |
bexio_create_draft_invoice Create draft invoice
WRITE: create a DRAFT invoice in bexio for a contact, with custom, item (article) and text lines. It is never issued, sent or booked: the user reviews and issues it in bexio. Taxes must be active sales taxes (bexio_list_taxes with types sales_tax, scope active).
| Parameter | Type | Description |
|---|---|---|
contact_id * | integer | The customer contact (from bexio_list_contacts). |
positions * | array | 1-150 invoice lines. |
api_reference | string | Your own external reference (only visible through the API). |
bank_account_id | integer | Bank account for the payment slip (from bexio_list_bank_accounts); default when omitted. |
contact_sub_id | integer | A contact person of the customer. |
currency_id | integer | Currency (from bexio_list_currencies); company default when omitted. |
document_nr | string | Invoice number. Only when automatic numbering is OFF in bexio's settings (then it is required); leave empty with automatic numbering. |
footer | string | Text below the lines. |
header | string | Text above the lines. |
language_id | integer | Document language id; the contact's language when omitted. |
payment_type_id | integer | Payment type id; default when omitted. |
project_id | integer | Link to this project. |
reference | string | Customer reference shown on the invoice. |
tax_mode | string | net = unit prices are net and VAT is added (default); gross = unit prices include VAT; exempt = the invoice is exempt from VAT. |
title | string | Invoice title. |
user_id | integer | Responsible bexio user (default: the signed-in user). |
valid_from | string | Invoice date, yyyy-mm-dd (default today). |
valid_to | string | Due date, yyyy-mm-dd (default from the payment terms). |