---
title: "Update analytic account"
method: PATCH
path: "/consumers/{consumer_id}/accounting/analytic-accounts/{analytic_account_id}"
tags: ["Accounting", "Analytic accounts"]
---

# Update analytic account

`PATCH /consumers/{consumer_id}/accounting/analytic-accounts/{analytic_account_id}`

Update one specific analytic account in the default analytic plan

## Path parameters

- `consumer_id` string, uuid, required
- `analytic_account_id` string, required

## Query parameters

- `folder_id` string, nullable

## Request body

- AnalyticAccountItemUpdate
  - `active` boolean, nullable — Flag indicating whether the analytic account is active.
  - `code` string, nullable — Short code for the analytic account. Often used for internal referencing. May be required to be unique
  - `name` string, nullable — Name or label of the analytic account as it appears in the accounting system.
  - `currency` string, nullable — Indicates the currency of the analytic account (e.g., EUR, USD).

## Response `200`

Successful Response

- AnalyticAccountItemOut
  - `id` string, required — Unique id of the analytic account in the accounting system.
  - `active` boolean, required — Flag indicating whether the analytic account is active.
  - `code` string, nullable — Short code for the analytic account. Often used for internal referencing. For some integrations, it may be required to be unique.
  - `name` string, required — Name or label of the analytic account as it appears in the accounting system.
  - `currency` string, nullable — Indicates the currency of the analytic account (e.g., EUR, USD).
  - `balance` number, nullable
  - `credit` number, nullable
  - `debit` number, nullable

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `422` — Validation Error

---

[API](https://skmtc.dev/chift/apis/chift-api.md) · [All operations](https://skmtc.dev/chift/apis/chift-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chift/chift-api/revisions/b5f1214a482a/schema)
