Core registers

Создать определение регистра

Changed on

Движения создаются только проведением документов; отдельного write-entry endpoint нет.

post/api/v1/core/registers

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

CoreRegisterCreate required
key, string required
name, string required
kind, 'balance' | 'turnover' | 'info'
module, string
dimensions, CoreRegisterDimension[]
resources, CoreRegisterResource[]

Response

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

CoreRegister required
id, string uuid required
key, string required
name, string required
kind, 'balance' | 'turnover' | 'info' required
module, string required
is_system, boolean required
dimensions, CoreRegisterDimension[] required
resources, CoreRegisterResource[] required
has_entries, boolean required
entry_count, integer required
last_entry_at, string 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

    5 more changes in this revision