Finance transactions

Изменить инициатора операции без перепроведения

Меняет только инициатора (responsible) — кто завёл или согласовал платёж. Статья, «За кого», статус и движения документа не затрагиваются.

patch/api/v1/finance/transactions/{id}/responsible

Request

  • Base URL: https://erp.akeda.ru
  • URL: https://erp.akeda.ru/api/v1/finance/transactions/{id}/responsible
  • Auth: one of:
    • HTTP bearer
    • API key in header X-Api-Key
    • OAuth 2 (authorization code, authorization URL https://erp.akeda.ru/oauth2/authorize, token URL https://erp.akeda.ru/oauth2/token, scopes: akeda:delegate)
    • HTTP bearer

Path parameters

idstring uuid required

Headers

X-Tenantstring required

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

Request body

responsiblestring uuid nullable required

Response

Операция с обновлённым инициатором

idstring uuid required
datestring date required
direction'in' | 'out' required
amountstring required

Positive decimal string

currencystring required
counterparty_namestring required
counterparty_innstring required
counterparty_accountstring required
purposestring required
bank_txn_idstring required
accountstring uuid required
account_namestring required
statementstring uuid nullable required
cashflow_itemstring uuid nullable required
cashflow_item_namestring nullable required
cashflow_sectionstring nullable required
pnl_itemstring uuid nullable required
pnl_item_namestring nullable required
contactstring uuid nullable required
contact_namestring nullable required
for_contactstring uuid nullable

«За кого»: контрагент из папки «Сотрудники» или «Собственники», чей расчёт гасит платёж. Пусто — как контрагент: платили самому человеку

for_contact_namestring nullable
contact_employeestring uuid nullable

Сотрудник, связанный с контрагентом. У зарплаты пустое «За кого» при нём означает самого получателя

orderstring uuid nullable required
order_numberstring nullable required
projectstring uuid nullable required
project_namestring nullable required
responsiblestring uuid nullable

Инициатор: кто завёл или согласовал платёж. В проводки не идёт; чей расчёт гасится, задаёт for_contact

responsible_namestring nullable
order_totalstring nullable required
order_paid_percentinteger required
match_statestring required
reconciliation_statestring required
reconciliation_needsstring[] required
classification_explanationstring required
suggested_orderobject nullable required
suggested_cashflow_itemobject nullable required
suggested_pnl_itemobject nullable required
created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.