Finance dividends

Создать черновик новой версии политики

Changed on

Создаёт черновик новой версии дивидендной политики.

post/api/v1/finance/dividends/policies

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

FinanceDividendPolicyInput required
business_id, string uuid
company_id, string uuid

Совместимый алиас: сервер использует бизнес указанного юрлица

name, string required
valid_from, string date required
base_kind, 'ledger_profit' | 'cashflow_total' | 'operating_cashflow' | 'pnl_layout_row' | 'pnl'

База: ledger_profit — прибыль по книге (general_ledger_profit ОПиУ); cashflow_total — весь ДДС, чистый поток без внутренних переводов; operating_cashflow — операционный раздел ДДС; pnl_layout_row — строка макета ОПиУ (нужны base_layout_id и base_layout_row); pnl — устаревшее имя ledger_profit

base_layout_id, string uuid

Макет ОПиУ для base_kind=pnl_layout_row

base_layout_row, string

Идентификатор строки макета ОПиУ для base_kind=pnl_layout_row

loss_mode, 'positive_only' | 'through'

through распределяет прибыль и убыток между владельцами в одинаковых долях

distribution_percent, string required

Доля результата, 0 < x <= 100

distribution_rule, 'percent' | 'after_reserve'

Устаревшее поле; политика всегда использует процент результата

reserve_amount, string

Устаревшее поле; резерв больше не участвует в политике

cadence, 'monthly' | 'quarterly' | 'yearly' | 'interval' required
interval_months, integer
starts_on, string date required

Конец первого периода

execution_mode, 'manual' | 'auto_draft' | 'auto_post' required
participants, object[]

Устаревшее поле; владельцы и доли берутся из отдельной структуры владения бизнесом

Response

Черновик политики

object 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

    3 more changes in this revision