Finance operations
Отменить текущий документ операции
Changed onОтменяет документ атомарно с записью команды. План с действующими начислениями сначала требует разобрать эти документы. Исправление и сторно не входят в публичный контракт, пока замена движений исходного регистратора не реализована атомарно.
post/api/v1/finance/operations/{id}/cancel
Request
- Base URLhttps://erp.akeda.ru
- Auth
- HTTP bearer
- or API key in header X-Api-Key
- or OAuth 2Authorization codehttps://erp.akeda.ru/oauth2/authorizeToken URLhttps://erp.akeda.ru/oauth2/tokenScopesakeda:delegate
- or HTTP bearer
Path parameters
id, string uuid required
Headers
X-Tenant, string required
Slug выбранного кабинета; кабинет не является юрлицом
Request body
Finance Operation Action required
source, Finance Operation Source required
expected_version, integer required
reason, string
Response
Отменённая операция
Finance Operation required
recognition_mode, 'document' | 'plan' required
cash_paid, string required
Фактически оплачено по проведённым распределениям
advance, string required
Оплата сверх признанного начисления
cash_payments, Finance Operation Fact[] required
unattributed_facts, Finance Operation Fact[] 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, Finance Operation Version required
versions, Finance Operation Version[] required
Changes
- info
added the optional property
fieldto the response with the status - info
added the optional property
fieldto the response with the status - info
added the optional property
fieldto the response with the status
11 more changes in this revision
- info