Finance settlements

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

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

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

Request

  • Base URL: https://erp.akeda.ru
  • URL: https://erp.akeda.ru/api/v1/finance/settlements/allocation-rules
  • 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

business_idstring uuid required
company_idstring uuid
account_idstring uuid
contact_idstring uuid
contract_idstring uuid
side'receipt' | 'payout' required
rule'ask' | 'fifo' | 'due_date' | 'exact_amount' | 'inherit' required
valid_fromstring date required

Response

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

idstring uuid
business_idstring uuid
company_idstring uuid
account_idstring uuid
contact_idstring uuid
contract_idstring uuid
side'receipt' | 'payout'

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

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

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

valid_fromstring date

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

created_byinteger
created_atstring

Changes

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