Docflow payment requests

Получить заявку на оплату

Changed on

Карточка заявки с ходом оплаты, остатком её бумаги-основания (basis_balance: заявлено, оплачено, осталось) и возможными дублями (possible_duplicates: живые заявки той же бумаги на ту же сумму — предупреждение, не отказ). Чужая заявка без права чтения или согласования отвечает 404, а не 403: ответ «запрещено» подтверждал бы, что такая заявка есть.

get/api/v1/docflow/payment-requests/{id}

Request

  • Base URL: https://erp.akeda.ru
  • URL: https://erp.akeda.ru/api/v1/docflow/payment-requests/{id}
  • 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

idstring uuid required

Headers

X-Tenantstring required

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

Response

Заявка на оплату

idstring uuid required
numberstring required
status'draft' | 'on_approval' | 'rework' | 'approved' | 'rejected' | 'cancelled' required

Состояние документа заявки: черновик, на согласовании, на доработке, согласована, отклонена, отозвана

progress'draft' | 'on_approval' | 'rework' | 'approved' | 'rejected' | 'cancelled' | 'scheduled' | 'sent' | 'exported' | 'partially_paid' | 'paid' | 'payment_cancelled' required

Ход заявки глазами автора: состояние документа, после согласования — состояние оплаты; exported — платёжка выгружена файлом для интернет-банка (то же слово, что у казначея)

company_idstring uuid required
company_namestring required
contact_idstring uuid
contact_namestring required
item_idstring uuid
item_namestring required
amountstring required
currencystring required
due_datestring date required
purposestring required
justificationstring required

Обоснование автора для согласующего

priority'high' | 'normal' | 'low' required

Приоритет оплаты

payment_method'bank' | 'cash' required

Форма оплаты

department_idstring uuid
department_namestring
project_idstring uuid
project_namestring
vat_rate'' | 'none' | '0' | '5' | '7' | '10' | '20' | '22'

Ставка НДС: пусто — не указана, none — без НДС

vat_amountstring

Сумма НДС

reason_code'late' | 'no_documents' | 'no_funds' | 'duplicate' | 'other'

Типовая причина отклонения казначеем: подана вне срока, нет документов, нет денег на дату, дубль, другое

can_copyboolean

Можно ли завести новую заявку по образцу этой

payee_account_idstring uuid
can_reworkboolean

Можно ли вернуть заявку на доработку: она согласована, платёжка ещё не в банке, а человек — автор или согласующий

can_refresh_payeeboolean

Можно ли обновить получателя из контрагента: автор, заявка с контрагентом — черновик, на доработке или согласованная до банка

schedule_idstring uuid
schedule_periodstring

Период регулярной заявки, за который заведена заявка

schedule_namestring

Название регулярной заявки

can_recallboolean

Можно ли вернуть заявку в черновик: автор, заявка на согласовании и ещё не согласована

can_repeatboolean

Можно ли повторить отклонённую или отозванную заявку новым черновиком

destination'' | 'calendar' | 'treasury' required

Куда ушла согласованная заявка: снимок флага маршрута

reasonstring

Причина отказа, возврата на доработку или отклонения казначеем

finance_request_idstring uuid
approval_autoboolean required

Согласована автоматически: маршрута для заявки нет и согласование не обязательно, прохода согласования не было

rejected_by_financeboolean required

Согласованную заявку отклонил казначей в модуле finance; причина — в reason

created_byinteger
created_by_namestring required
created_atstring date-time required
updated_atstring date-time required
versioninteger required
can_editboolean required
can_submitboolean required
can_cancelboolean required

Changes

    • warning

      added the new partially_paid enum value to the response 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

    • info

      endpoint added