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

# Resync Bexio Account

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

## 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}/resync`
- Auth: none declared

Force a full re-backfill of a bexio account (accountant/owner; resync plan §Manual resync).

Row-locks the account (the poller's ``FOR UPDATE`` lock), resets the forward cursor
to null and clears the watermark so the next cron cycle re-walks the anchored
backlog and re-stamps. Idempotent; does NOT delete ingested data (dedup makes the
re-walk a no-op for already-imported invoices). Returns the updated account.

## Path parameters

- `account_id` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Response `200`

Successful Response

- BexioAccountResponse: ``GET/POST/PATCH /bexio-accounts/...`` → ``{"bexio_account": ...}``.
  - `bexio_account` BexioAccountOut, required: Serialized bexio account (no secret); includes poll-health fields.
    - `id` string, required
    - `company_id` string, required
    - `label` string, required
    - `enabled` boolean, required
    - `poll_batch_cap` integer, nullable
    - `base_url` string, required
    - `last_sync_at` string, date-time, nullable
    - `last_sync_error` string, nullable
    - `rate_limited_until` string, date-time, 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)
