Core ledger

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

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

post/api/v1/core/gl-mappings

Request

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

subject_type'item' | 'money_account' | 'contact' | 'product' | 'document_type' | 'acquiring_clearing' | 'warehouse' required
subject_idstring uuid
account_idstring uuid required
valid_fromstring date

Omitted means today

commentstring

Response

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

idstring uuid required
subject_type'item' | 'money_account' | 'contact' | 'product' | 'document_type' | 'acquiring_clearing' | 'warehouse' required
subject_idstring uuid
account_idstring uuid required
account_codestring required
account_namestring required
valid_fromstring date required
valid_tostring date
is_systemboolean required
commentstring required

Changes

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