Core accounting items

Создать статью ДДС/ОПиУ

Создаёт статью для ДДС или ОПиУ.

post/api/v1/core/items

Request

  • Base URL: https://erp.akeda.ru
  • URL: https://erp.akeda.ru/api/v1/core/items
  • 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-Tenantstring required

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

Request body

codestring
namestring required
use_cashflowboolean
cashflow_section'operating' | 'investing' | 'financing' | 'transfer'
cashflow_parent_idstring uuid
cashflow_sort_orderinteger
use_pnlboolean
internal_turnoverboolean

Статья внутреннего оборота между ЦФО; обороты исключаются из сводного ОПиУ (ERP-1493)

pnl_sign-1 | 1
pnl_parent_idstring uuid
pnl_sort_orderinteger
vat_kind'' | 'general' | 'reduced' | 'zero' | 'exempt'

Вид ставки НДС статьи дохода; не передан — не меняется; у статьи не дохода — 400

is_groupboolean

Сделать узел группой статей (ERP-2529); не передан — не меняется; статья с операциями группой не становится — 409

Response

Созданная статья

idstring uuid required
codestring required
namestring required
use_cashflowboolean required
cashflow_section'operating' | 'investing' | 'financing' | 'transfer' | '' required
cashflow_section_namestring
cashflow_parent_idstring uuid
cashflow_sort_orderinteger required
use_pnlboolean required
internal_turnoverboolean

Статья внутреннего оборота между ЦФО; обороты исключаются из сводного ОПиУ (ERP-1493)

pnl_sign-1 | 1
is_systemboolean required
pnl_parent_idstring uuid
pnl_sort_orderinteger required
usage_countinteger required
vat_kind'' | 'general' | 'reduced' | 'zero' | 'exempt'

Вид ставки НДС сделки без товара по статье дохода; пусто — общая

kindstring
party_requirement'' | 'none' | 'contact' | 'person'
is_activeboolean
replaced_bystring uuid
owner_modulestring
module_availableboolean
is_groupboolean

Узел-группа дерева статей, а не статья (ERP-2529): на неё не разносят, в отчётах ДДС и ОПиУ — заголовок с итогом статей внутри

Changes

No recorded changes to this operation across all 1 revision of this API.