Linking Bexio as a source

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Learn more
PostHog Wizard hedgehog

Contents

The Bexio connector syncs your Bexio business management and accounting data into PostHog, including contacts, invoices, quotes, orders, bills, expenses, projects, timesheets, journal entries, and the chart of accounts.

Prerequisites

You need a Bexio account and a personal access token.

Create a personal access token in the bexio developer portal. A personal access token has access to every default scope, so no additional permissions are needed.

Tokens expire after 60 days

Bexio personal access tokens expire after 60 days. Create a new token and update your source before the old one expires, or syncs will fail with a 401 error.

Adding a data source

  1. Go to the sources tab of the data pipeline section in PostHog.
  2. Click + New source and then click Link next to Bexio.
  3. Paste your Personal access token from the bexio developer portal and click Next.
  4. Select the tables you want to sync, set the sync method and frequency, then click Import.

Once the syncs are complete, you can start using Bexio data in PostHog.

Sync modes

Bexio tables sync in one of two modes depending on whether the Bexio API supports filtering by last update:

  • Incremental sync – Only syncs records where updated_at is on or after the last sync. This is faster and cheaper for large tables. Available for contacts, contact relations, invoices, quotes, and orders.
  • Full refresh – Reloads all data on each sync. Used for tables where the Bexio API has no server-side change filter.

Available tables

TableDescriptionSync method
contactsCompanies and people in the address bookIncremental
contact_groupsGroups used to categorize contactsFull refresh
contact_relationsLinks between two contactsIncremental
invoicesSales invoices sent to customersIncremental
quotesQuotes (offers) sent to customersIncremental
ordersSales orders confirmed with customersIncremental
deliveriesDelivery notes for goods shipped to customersFull refresh
purchase_ordersPurchase orders sent to suppliersFull refresh
billsSupplier bills recorded in purchasesFull refresh
expensesExpenses paid directlyFull refresh
itemsProducts and services in the item catalogFull refresh
projectsProjects used to group time, tasks, and documentsFull refresh
timesheetsTime entries recorded by usersFull refresh
tasksTasks assigned to usersFull refresh
notesNotes recorded on contacts and projectsFull refresh
accountsAccounts of the chart of accountsFull refresh
account_groupsGroups that structure the chart of accountsFull refresh
journal_entriesBookings in the general ledger journalFull refresh
manual_entriesBookings entered by hand in the accounting moduleFull refresh
business_yearsBusiness years of the accountingFull refresh
bank_accountsBank accounts set up in bankingFull refresh
currenciesCurrencies available in the companyFull refresh
taxesTax rates set up for sales and purchasesFull refresh
usersUsers of the Bexio companyFull refresh

Configuration

OptionTypeRequired
Personal access tokenpasswordYes

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
contacts

Companies and people in the bexio address book, such as customers, suppliers and leads.

Incremental, Full refreshupdated_at—
contact_groups

Groups used to categorize contacts.

Full refresh——
contact_relations

Links between two contacts, for example a person who works at a company.

Incremental, Full refreshupdated_at—
invoices

Sales invoices sent to customers.

Incremental, Full refreshupdated_at—
quotes

Quotes (offers) sent to customers.

Incremental, Full refreshupdated_at—
orders

Sales orders confirmed with customers.

Incremental, Full refreshupdated_at—
deliveries

Delivery notes for goods shipped to customers.

Full refresh——
purchase_orders

Purchase orders sent to suppliers.

Full refresh——
bills

Supplier bills recorded in bexio purchases.

Full refresh——
expenses

Expenses paid directly, recorded in bexio purchases.

Full refresh——
items

Products and services in the bexio item catalog.

Full refresh——
projects

Projects used to group time, tasks and documents.

Full refresh——
timesheets

Time entries recorded by bexio users.

Full refresh——
tasks

Tasks assigned to bexio users.

Full refresh——
notes

Notes recorded on contacts and projects.

Full refresh——
accounts

Accounts of the chart of accounts.

Full refresh——
account_groups

Groups that structure the chart of accounts.

Full refresh——
journal_entries

Bookings in the general ledger journal, from all sources such as invoices, bills and manual entries.

Full refresh——
manual_entries

Bookings entered by hand in the bexio accounting module.

Full refresh——
business_years

Business years of the accounting.

Full refresh——
bank_accounts

Bank accounts set up in bexio banking.

Full refresh——
currencies

Currencies available in the bexio company.

Full refresh——
taxes

Tax rates set up for sales and purchases.

Full refresh——
users

Users of the bexio company.

Full refresh——

Troubleshooting

Sync failing with 401 Unauthorized

Bexio rejected your personal access token. Tokens expire after 60 days. Create a new token in the bexio developer portal and update the source.

Sync failing with 403 Forbidden

Your Bexio user can't read one of the tables you sync. Ask a Bexio admin to give your user access to that data, or turn off the table in PostHog.

Still have questions?

Was this page useful?