Finance operations

Отменить текущий документ операции

Changed on

Отменяет документ атомарно с записью команды. План с действующими начислениями сначала требует разобрать эти документы. Исправление и сторно не входят в публичный контракт, пока замена движений исходного регистратора не реализована атомарно.

post/api/v1/finance/operations/{id}/cancel

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

Path parameters

id, string uuid required

Headers

X-Tenant, string required

Slug выбранного кабинета; кабинет не является юрлицом

Request body

FinanceOperationAction required
source, FinanceOperationSource required
expected_version, integer required
reason, string

Response

Отменённая операция

FinanceOperation required
recognition_mode, 'document' | 'plan' required
cash_paid, string required

Фактически оплачено по проведённым распределениям

advance, string required

Оплата сверх признанного начисления

cash_payments, FinanceOperationFact[] required
unattributed_facts, FinanceOperationFact[] required

Применения к долгу, не привязанные к строке графика (ERP-1417)

id, string uuid required
kind, 'sale' | 'purchase' required
company_id, string uuid required
contact_id, string uuid required
currency, string required
amount, string required

Decimal string

due_date, string date
purpose, string
pnl_item_id, string uuid
project_id, string uuid
contract_id, string uuid
source_system, string required
source_ref, string required
external_id, string required
schema_version, 1 required
status, 'draft' | 'posted' | 'cancelled' required
current, FinanceOperationVersion required
versions, FinanceOperationVersion[] 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

    11 more changes in this revision