---
title: "Renumber Account"
method: POST
path: "/companies/{company_id}/ledger-accounts/{account_number}/renumber"
tags: ["accounting-settings"]
---

# Renumber Account

`POST /companies/{company_id}/ledger-accounts/{account_number}/renumber`

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

Renumber an account in ``fiscal_year`` (name + category preserved) (accountant).

Builds a single-entry remap and drives the shared :func:`svc.remap_chart_accounts`
(delete old row, authoritative upsert, recompute usage, fork the accepted snapshot).
**404** if the source account is missing in that FY. **409** if the account already
has FY journal entries posted (``JOURNAL_ALREADY_POSTED``) or there is no accepted
balance snapshot for the FY. **422** if the remap is invalid (collision/unbalanced).
The renumber target does NOT inherit ``is_intentional`` (its number range may now
match its type).

## Path parameters

- `company_id` string, required
- `account_number` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Request body

- RenumberAccountIn: ``POST /companies/{id}/ledger-accounts/{number}/renumber`` body (admin). Renumbers the account in ``fiscal_year`` to ``new_account_number`` (name + category preserved). Drives the shared chart-remap (delete old row, authoritative upsert, fork the accepted snapshot). The renumber target does NOT inherit ``is_intentional``.
  - `new_account_number` string, required
  - `fiscal_year` integer, required

## Response `200`

Successful Response

- RenumberAccountOut: Result of a renumber — the new number + the forked accepted-snapshot id.
  - `old_account_number` string, required
  - `new_account_number` string, required
  - `fiscal_year` integer, required
  - `applied_snapshot_id` 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)
