---
title: "Создать клиентский счёт поверх системного плана"
method: POST
path: "/api/v1/core/gl-accounts"
tags: ["Core ledger"]
---

# Создать клиентский счёт поверх системного плана

`POST /api/v1/core/gl-accounts`

## Request

- Base URL: `https://erp.akeda.ru`
- URL: `https://erp.akeda.ru/api/v1/core/gl-accounts`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`
  - OAuth 2 (authorization code, authorization URL `https://erp.akeda.ru/oauth2/authorize`, token URL `https://erp.akeda.ru/oauth2/token`, scopes: `akeda:delegate`)
  - HTTP bearer

Создаёт клиентский счёт в дополнение к системному плану счетов.

## Headers

- `X-Tenant` string, required

## Request body

- CoreGLAccountCreate
  - `code` string, required
  - `name` string, required
  - `type` 'asset' | 'liability' | 'equity' | 'income' | 'expense', required
  - `parent_id` string, uuid
  - `affects_pnl` boolean: Ignored; server derives it from type
  - `affects_cashflow` boolean

## Response `201`

Созданный счёт

- CoreGLAccount
  - `id` string, uuid, required
  - `code` string, required
  - `name` string, required
  - `type` 'asset' | 'liability' | 'equity' | 'income' | 'expense', required
  - `parent_id` string, uuid
  - `is_active` boolean, required
  - `is_system` boolean, required
  - `affects_pnl` boolean, required
  - `opening_input` 'free' | 'contact' | 'employee' | 'stock' | 'money', required
  - `affects_cashflow` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Некорректный запрос или нарушение бизнес-правила
- `401`: Сессия, ключ или кабинет не подтверждены
- `403`: Текущая роль не имеет требуемого права

---

[API](https://skmtc.dev/akeda/apis/akeda-erp-client-api.md) · [All operations](https://skmtc.dev/akeda/apis/akeda-erp-client-api/llms.txt) · [OpenAPI document](https://skmtc.dev/akeda/apis/akeda-erp-client-api/revisions/a99574d597cc?raw)
