Завести заявку на оплату
Changed onЗаводит черновик заявки. Основание — нейтральная тройка: входящий документ ЭДО (docflow / edo_message), карточка документооборота (docflow / flow_document) или основание словами (docflow / manual). Отказ проверки называет поле (422, code docflow.payment_request.field, поле field): юрлицо, получатель, БИК, сумма, валюта, срок, назначение. По одной бумаге (счёт, закупка, договор с суммой, долг) заявок может быть несколько, пока заявки на согласовании, на доработке и согласованные вместе не больше суммы бумаги; сумма, которая в остаток заведомо не поместится, — 422 docflow.payment_request.over_claim с полем amount и суммами total, claimed, remaining, currency. Заявка на ту же сумму по той же бумаге — не отказ: карточка заявки называет её в possible_duplicates. Счёт, принесённый файлом, передаётся полем invoice_card: карточка входящего счёта и заявка на ней заводятся одной транзакцией (нужно право docflow.flow:write), отказ заявки откатывает карточку; файл кладут в карточку следом сессией загрузки.
Request
- Base URL: https://erp.akeda.ru
- URL: https://erp.akeda.ru/api/v1/docflow/payment-requests
- 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)
Headers
Slug выбранного кабинета; кабинет не является юрлицом
Request body
Response
Черновик заявки
Changes
- warning
added the new
partially_paidenum value to theresponse property for the response status - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- 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