Finance accounts
Перенести дату «Используется с» и убрать операции раньше неё
Changed onСтавит дату и убирает операции счёта раньше неё: документ операции отменяется (движения снимаются) и помечается на удаление, строка удаляется, каждая затронутая выписка оставляет запись в журнале удалённых (действие in_use_since_cut), опустевшие выписки раньше даты убираются. Если среди операций есть связанные с заказом, заявкой на оплату или долгом — 409 finance.account.in_use_since_cut_blocked со списком blocked, ничего не удаляется (ERP-3103).
post/api/v1/finance/accounts/{id}/in-use-since
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 In Use Since Cut Apply required
in_use_since, string required
Новая дата, ГГГГ-ММ-ДД
Response
Итог переноса
Finance In Use Since Cut Result required
account, Finance Account required
removed, integer required
Changes
- info
added the optional property
account/period_txn_countto the response with the status
- info
- info
added the optional property
account/bank_pendingto the response with the status
- info