Docflow payment requests

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

Changed on

Заявка на оплату — документ модуля docflow (документы): её заводят и согласуют здесь, а в модуль finance (счета, выписки и расчёты) приходит только согласованная. Автор с правом docflow.flow:request видит свои заявки; scope=all отдаёт все заявки кабинета тем, у кого есть docflow.flow:read или docflow.flow:approve. Строка несёт ход оплаты (progress) и, когда платёж прошёл, реквизиты платёжного поручения — доступа к финансам для этого не нужно.

get/api/v1/docflow/payment-requests

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)

Query parameters

scope'mine' | 'all'

mine — свои заявки (по умолчанию); all — все заявки кабинета при праве чтения или согласования

status'draft' | 'on_approval' | 'rework' | 'approved' | 'rejected' | 'cancelled'

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

Состояние документа заявки

contact_idstring uuid

Только заявки этому получателю (контрагент справочника); видимость та же, что у списка

Headers

X-Tenantstring required

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

Response

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

Changes

    • warning

      added the new partially_paid enum value to the // response property for the response status

    • info

      added the new optional query request parameter contact_id

    • 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