---
title: "Backfill Ledger Accounts"
method: POST
path: "/companies/{company_id}/ledger-accounts/backfill"
tags: ["accounting-settings"]
---

# Backfill Ledger Accounts

`POST /companies/{company_id}/ledger-accounts/backfill`

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

Rebuild the chart of accounts from existing journals (accountant). Idempotent.

No-op now that the postable GL chart (``gl_account``) is maintained by the
dual-writing CoA loaders (bexio master-sync / accounting-document worker / abacus
journal accumulation). Kept for response-shape compatibility (always 0 keys).

## Path parameters

- `company_id` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Response `200`

Successful Response

- BackfillResponse: ``POST /companies/{id}/ledger-accounts/backfill`` result.
  - `msg` string, required
  - `keys_touched` integer, 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)
