Finance reports

Сохранить новую версию бюджета без создания учётных фактов

Changed on

expected_version реализует compare-and-swap: ревизия, которую клиент видел последней, 0 для первого бюджета; expected_revision принимается как синоним, оба имени с разными значениями — 400.

post/api/v1/finance/project-budgets

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

union required
object required
OR
object required

Response

Новая версия бюджета

FinanceProjectBudget required
id, string uuid required
project_id, string uuid required
company_id, string uuid required
date, string date required
currency, string required
revision, integer required
note, string required
lines, FinanceProjectBudgetLine[] required
created_at, string date-time required

Changes

    • info

      added the new optional request property lines/items/schedule

    • info

      added the optional property lines/items/schedule to the response with the status

    • info

      added the optional property field to the response with the status

    7 more changes in this revision