---
title: "Test Bexio Account"
method: POST
path: "/bexio-accounts/{account_id}/test"
tags: ["integrations"]
---

# Test Bexio Account

`POST /bexio-accounts/{account_id}/test`

## 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/bexio-accounts/{account_id}/test`
- Auth: none declared

Test a bexio account's PAT via ``GET /2.0/company_profile`` (accountant/owner, no ingest).

Read-only by nature (bexio is never mutated). The token never appears in the
response — only reachability/auth + the resolved company name. For a company user the
stored ``base_url`` must still be bexio's API host (422) — the reply quotes the error.

## Path parameters

- `account_id` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Response `200`

Successful Response

- BexioConnectionTestResponse: ``POST /bexio-accounts/<id>/test`` → connection-test result (no secret). ``accounting_scope`` reports whether the PAT also carries the ``accounting`` scope needed for the chart-of-accounts + tax master sync (probed via ``GET /2.0/accounts``). It is ``None`` when the basic connection failed before the scope could be checked.
  - `ok` boolean, required
  - `msg` string, required
  - `company_name` string, nullable
  - `accounting_scope` boolean, nullable

## 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)
