Обновить получателя заявки на оплату из контрагента
Changed on«Обновить из контрагента»: реквизиты получателя заявки переписываются из карточки контрагента и выбранного расчётного счёта (тот же выбор, что у предпросмотра), payee_account_id заявки становится этим счётом. Только автор заявки (иначе 403). Черновик и заявка на доработке просто сохраняются. Согласованная заявка, платёжка по которой ещё не ушла в банк, возвращается на доработку, обновляется и сразу отправляется на согласование заново — по маршруту, если он подходит; без маршрута она согласуется сразу. Обновлять нечего — заявка возвращается без изменений. Другие состояния — 409 docflow.payment_request.state; версия устарела — 409 docflow.payment_request.conflict; платёжка уже в банке — 409 docflow.payment_request.in_bank; чужой или выключенный account_id — 422 docflow.payment_request.field с полем payee.account.
Request
- Base URL: https://erp.akeda.ru
- URL: https://erp.akeda.ru/api/v1/docflow/payment-requests/{id}/payee-refresh
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://erp.akeda.ru/oauth2/authorize, token URL https://erp.akeda.ru/oauth2/token, scopes: akeda:delegate)
Path parameters
Заявка на оплату
Headers
Slug выбранного кабинета; кабинет не является юрлицом
Request body
Response
Заявка после обновления
Changes
- warning
added the new
partially_paidenum value to theresponse property for the response status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- warning
- info
endpoint added
- info