Core ledger

Установить версионированное правило проводки

Changed on

Новое правило закрывает предыдущее с даты valid_from; пустой subject_id создаёт правило по умолчанию.

post/api/v1/core/gl-mappings

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

CoreGLMappingCreate required
subject_type, 'item' | 'money_account' | 'contact' | 'product' | 'document_type' | 'acquiring_clearing' | 'warehouse' | 'product_kind_goods' | 'product_kind_material' | 'product_kind_semi_product' required

Счёт запасов задаёт вид номенклатуры (ERP-2821): product_kind_goods, product_kind_material, product_kind_semi_product — без subject_id. warehouse отвергается 400 core.gl_mapping.warehouse_retired: склад больше не задаёт счёт.

subject_id, string uuid
account_id, string uuid required
valid_from, string date

Omitted means today

comment, string

Response

Созданное правило

CoreGLMapping required
id, string uuid required
subject_type, 'item' | 'money_account' | 'contact' | 'product' | 'document_type' | 'acquiring_clearing' | 'warehouse' | 'product_kind_goods' | 'product_kind_material' | 'product_kind_semi_product' required

product_kind_* — правило вида номенклатуры (ERP-2821), без subject_id; warehouse — прежнее правило склада, новых не заводят

subject_id, string uuid
account_id, string uuid required
account_code, string required
account_name, string required
valid_from, string date required
valid_to, string date
is_system, boolean required
comment, string required

Changes

    • warning

      added the new product_kind_goods enum value to the subject_type response property for the response status

    • warning

      added the new product_kind_material enum value to the subject_type response property for the response status

    • warning

      added the new product_kind_semi_product enum value to the subject_type response property for the response status

    3 more changes in this revision