---
title: "Refresh Bexio Master Data"
method: POST
path: "/companies/{company_id}/accounting-settings/refresh-bexio"
tags: ["accounting-settings"]
---

# Refresh Bexio Master Data

`POST /companies/{company_id}/accounting-settings/refresh-bexio`

## Request

- Base URL: `https://app.zeno-works.ch` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zeno-works.ch/companies/{company_id}/accounting-settings/refresh-bexio`
- Auth: none declared

On-demand pull of the bexio chart of accounts + tax master (accountant).

Triggers, for **every enabled** ``BexioAccount`` of the company, the same
master-data pull the cron poller runs on its daily cadence — bypassing the
cadence gate. Each account is synced in isolation (a failure on one is recorded
on that account and does not abort the others). Returns a per-account summary.
The poller function takes a ``Scoped`` (Phase 4b) but manages its own commits
on the underlying session — exactly the legacy cadence.

## Path parameters

- `company_id` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Response `200`

Successful Response

- RefreshBexioResponse: ``POST /companies/{id}/accounting-settings/refresh-bexio`` result. ``accounts_synced`` is the number of enabled bexio accounts whose master-data pull succeeded; ``results`` carries a short per-account summary/error string.
  - `msg` string, required
  - `accounts_synced` integer, required
  - `results` string[], required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zeno-works/apis/zeno-api.md) · [All operations](https://skmtc.dev/zeno-works/apis/zeno-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zeno-works/apis/zeno-api/revisions/1eb93dde146c?raw)
