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

# Create analytic account

`POST /consumers/{consumer_id}/accounting/analytic-accounts`

Create a new analytic account in the default analytic plan

## Path parameters

- `consumer_id` string, uuid, required

## Query parameters

- `folder_id` string, nullable

## Request body

- AnalyticAccountItemIn
  - `active` boolean, nullable — Flag indicating whether the analytic account is active.
  - `code` string, required — Short code for the analytic account. Often used for internal referencing. 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, required — 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
- `422` — Validation Error

---

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