bexio MCP by usefulapi

v1.24.1
io.usefulapi/bexio Checked 2 days ago Published 21 hours ago

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

ParameterTypeDescription
limitintegerResults per page, 1-2000 (default 50).
offsetintegerRecords 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.

ParameterTypeDescription
archivedbooleantrue = archived contacts only (default: active contacts).
citystringCity contains this text.
contact_typestringOnly companies or only persons.
descendingbooleanSort descending (default ascending).
emailstringMain email contains this text.
first_namestringname_2 (a person's first name or a company's name addition) contains this text.
limitintegerResults per page, 1-2000 (default 50).
namestringname_1 (company name or last name) contains this text.
nrstringContact number equals this.
offsetintegerRecords to skip (default 0). Use next_offset from the previous reply.
order_bystringSort field (default id).
postcodestringPostcode equals this.
updated_sincestringChanged on or after this date, yyyy-mm-dd.

bexio_get_contact Get contact

One contact with its address, emails, phones, language, groups and remarks.

ParameterTypeDescription
contact_id *integerThe contact id (from bexio_list_contacts).
archivedbooleantrue 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.

ParameterTypeDescription
contact_idintegerOnly documents for this contact (from bexio_list_contacts).
descendingbooleanSort descending (default ascending).
document_nrstringDocument number contains this text (e.g. RE-00012).
limitintegerResults per page, 1-2000 (default 25).
offsetintegerRecords to skip (default 0). Use next_offset from the previous reply.
order_bystringSort field (default id).
statusarrayOnly invoices with one of these statuses.
titlestringTitle contains this text.
updated_sincestringChanged on or after this date, yyyy-mm-dd.
user_idintegerOnly documents owned by this bexio user (from bexio_list_users).
valid_from_afterstringDocument date (is_valid_from) on or after this date, yyyy-mm-dd.
valid_from_beforestringDocument 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.

ParameterTypeDescription
invoice_id *integerThe 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).

ParameterTypeDescription
invoice_id *integerThe invoice id (from bexio_list_invoices).
limitintegerResults per page, 1-2000 (default 50).
offsetintegerRecords 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.

ParameterTypeDescription
contact_idintegerOnly documents for this contact (from bexio_list_contacts).
descendingbooleanSort descending (default ascending).
document_nrstringDocument number contains this text (e.g. RE-00012).
limitintegerResults per page, 1-2000 (default 50).
offsetintegerRecords to skip (default 0). Use next_offset from the previous reply.
order_bystringSort field (default id).
statusarrayOnly quotes with one of these statuses.
titlestringTitle contains this text.
updated_sincestringChanged on or after this date, yyyy-mm-dd.
user_idintegerOnly documents owned by this bexio user (from bexio_list_users).
valid_from_afterstringDocument date (is_valid_from) on or after this date, yyyy-mm-dd.
valid_from_beforestringDocument 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.

ParameterTypeDescription
quote_id *integerThe 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.

ParameterTypeDescription
contact_idintegerOnly documents for this contact (from bexio_list_contacts).
descendingbooleanSort descending (default ascending).
document_nrstringDocument number contains this text (e.g. RE-00012).
limitintegerResults per page, 1-2000 (default 50).
offsetintegerRecords to skip (default 0). Use next_offset from the previous reply.
order_bystringSort field (default id).
statusarrayOnly orders with one of these statuses.
titlestringTitle contains this text.
updated_sincestringChanged on or after this date, yyyy-mm-dd.
user_idintegerOnly documents owned by this bexio user (from bexio_list_users).
valid_from_afterstringDocument date (is_valid_from) on or after this date, yyyy-mm-dd.
valid_from_beforestringDocument 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.

ParameterTypeDescription
order_id *integerThe 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.

ParameterTypeDescription
codestringItem code (intern_code) contains this text.
descendingbooleanSort descending (default ascending).
limitintegerResults per page, 1-2000 (default 50).
namestringItem name (intern_name) contains this text.
offsetintegerRecords to skip (default 0). Use next_offset from the previous reply.
order_bystringSort field (default id).

bexio_list_projects List projects

List or search projects: number, name, contact, state, type, dates, budget. With filters all must match.

ParameterTypeDescription
contact_idintegerOnly projects of this contact.
descendingbooleanSort descending (default ascending).
limitintegerResults per page, 1-2000 (default 50).
namestringProject name contains this text.
offsetintegerRecords to skip (default 0). Use next_offset from the previous reply.
order_bystringSort field (default id).
state_idintegerOnly 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.

ParameterTypeDescription
project_id *integerThe 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.

ParameterTypeDescription
business_activity_idintegerOnly entries of this business activity (client_service_id, from bexio_list_business_activities).
contact_idintegerOnly entries for this contact.
descendingbooleanSort descending (default ascending).
limitintegerResults per page, 1-2000 (default 50).
offsetintegerRecords to skip (default 0). Use next_offset from the previous reply.
order_bystringSort field (default id).
project_idintegerOnly entries on this project.
status_idintegerOnly entries with this timesheet status id.
user_idintegerOnly 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.

ParameterTypeDescription
descendingbooleanSort descending (default ascending).
limitintegerResults per page, 1-2000 (default 50).
offsetintegerRecords to skip (default 0). Use next_offset from the previous reply.
order_bystringSort 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.

ParameterTypeDescription
limitintegerResults per page, 1-2000 (default 25).
offsetintegerRecords 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).

ParameterTypeDescription
account_uuidstringOnly bookings on this account (its uuid from bexio_list_accounts).
fromstringBookings on or after this date, yyyy-mm-dd.
limitintegerResults per page, 1-2000 (default 25).
offsetintegerRecords to skip (default 0). Use next_offset from the previous reply.
tostringBookings 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).

ParameterTypeDescription
datestringOnly taxes active on this date, yyyy-mm-dd.
limitintegerResults per page, 1-2000 (default 50).
offsetintegerRecords to skip (default 0). Use next_offset from the previous reply.
scopestringOnly active or inactive taxes.
typesstringOnly 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.

ParameterTypeDescription
limitintegerResults per page, 1-2000 (default 50).
offsetintegerRecords 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.

ParameterTypeDescription
datestringValidity date of the embedded exchange rate, yyyy-mm-dd.
limitintegerResults per page, 1-2000 (default 50).
offsetintegerRecords to skip (default 0). Use next_offset from the previous reply.
with_exchange_ratebooleanEmbed each currency's exchange rate.

bexio_list_business_years List business years

Accounting business (fiscal) years: start, end, status (open, locked, closed).

ParameterTypeDescription
limitintegerResults per page, 1-2000 (default 50).
offsetintegerRecords 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.

ParameterTypeDescription
bill_date_fromstringBill date on or after, yyyy-mm-dd.
bill_date_tostringBill date on or before, yyyy-mm-dd.
descendingbooleanSort descending (default ascending).
due_date_fromstringDue date on or after, yyyy-mm-dd.
due_date_tostringDue date on or before, yyyy-mm-dd.
limitintegerBills per page, 1-500 (default 25).
pageintegerPage number, 1-based (default 1).
searchstringFree-text search over vendor, vendor reference, currency, document number and title (3-255 characters).
sortstringSort field.
statusstringBill status filter.
supplier_idintegerOnly bills of this supplier contact.
vendorstringVendor 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.

ParameterTypeDescription
contact_type *stringcompany or person.
name *stringCompany name, or a person's last name (name_1).
address_additionstringAddress addition (c/o, P.O. box).
citystringCity.
contact_group_idsarrayContact group ids.
country_idintegerbexio country id (1 = Switzerland in a default bexio setup).
emailstringMain email.
first_namestringA person's first name, or a company's name addition (name_2).
house_numberstringHouse number.
language_idintegerbexio language id of the contact's correspondence language.
mobilestringMobile phone.
owner_idintegerOwner bexio user (default: the responsible user).
phonestringLandline phone.
postcodestringPostcode.
remarksstringInternal remarks.
street_namestringStreet name.
user_idintegerResponsible bexio user (default: the signed-in user).
websitestringWebsite 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.

ParameterTypeDescription
subject *stringNote subject.
contact_idintegerAttach to this contact.
event_startstringWhen it happened, local time yyyy-mm-dd HH:MM[:SS] (default: now, UTC).
infostringNote text.
project_idintegerAttach to this project.
user_idintegerAuthor 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.

ParameterTypeDescription
business_activity_id *integerThe business activity (client_service_id) from bexio_list_business_activities.
billablebooleanBillable to the client (default true).
contact_idintegerThe client contact.
datestringWork date, yyyy-mm-dd (with duration).
durationstringTime worked as HH:MM, e.g. 01:30 (with date).
endstringEnd, local time yyyy-mm-dd HH:MM[:SS] (with start).
project_idintegerThe project.
startstringStart, local time yyyy-mm-dd HH:MM[:SS] (with end).
status_idintegerTimesheet status id (bexio's default when omitted).
textstringWhat was done.
user_idintegerWhose 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).

ParameterTypeDescription
contact_id *integerThe customer contact (from bexio_list_contacts).
positions *array1-150 invoice lines.
api_referencestringYour own external reference (only visible through the API).
bank_account_idintegerBank account for the payment slip (from bexio_list_bank_accounts); default when omitted.
contact_sub_idintegerA contact person of the customer.
currency_idintegerCurrency (from bexio_list_currencies); company default when omitted.
document_nrstringInvoice number. Only when automatic numbering is OFF in bexio's settings (then it is required); leave empty with automatic numbering.
footerstringText below the lines.
headerstringText above the lines.
language_idintegerDocument language id; the contact's language when omitted.
payment_type_idintegerPayment type id; default when omitted.
project_idintegerLink to this project.
referencestringCustomer reference shown on the invoice.
tax_modestringnet = unit prices are net and VAT is added (default); gross = unit prices include VAT; exempt = the invoice is exempt from VAT.
titlestringInvoice title.
user_idintegerResponsible bexio user (default: the signed-in user).
valid_fromstringInvoice date, yyyy-mm-dd (default today).
valid_tostringDue date, yyyy-mm-dd (default from the payment terms).