Core ledger

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

Changed on

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

post/api/v1/core/gl-accounts

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or API key in header X-Api-Key
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate
    • or HTTP bearer

Headers

X-Tenant, string required

Slug выбранного кабинета; кабинет не является юрлицом

Request body

CoreGLAccountCreate required
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

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

CoreGLAccount required
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

Changes

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    3 more changes in this revision