Finance settlements

Добавить версию правила авторазнесения

Changed on

Новая версия правила уровня с даты действия: смена правила, исключение или его снятие (rule=inherit). Прежние версии не меняются.

post/api/v1/finance/settlements/allocation-rules

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

FinanceAllocationRuleInput required

Новая версия правила авторазнесения.

business_id, string uuid required
company_id, string uuid
account_id, string uuid
contact_id, string uuid
contract_id, string uuid
side, 'receipt' | 'payout' required
rule, 'ask' | 'fifo' | 'due_date' | 'exact_amount' | 'inherit' required
valid_from, string date required

Response

Добавленная версия правила

FinanceAllocationRule required

Версия правила авторазнесения. Пустые уровни — правило не сужено.

id, string uuid
business_id, string uuid
company_id, string uuid
account_id, string uuid
contact_id, string uuid
contract_id, string uuid
side, 'receipt' | 'payout'

Поступления или выплаты

rule, 'ask' | 'fifo' | 'due_date' | 'exact_amount' | 'inherit'

Правило; inherit — как у уровня выше

valid_from, string date

Дата начала действия версии

created_by, integer
created_at, string

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