Stock valuation

Получить состояние прогона пересчёта стоимости

Changed on

Читает прогон, заведённый POST /api/v1/stock/valuation/rebuild. Пока status равен pending или running, поле result пусто, а progress и total показывают, сколько документов цепочки уже перепроведено. При status=completed приходит result, при status=failed — error. Доступ проверяется по документу прогона: чужой документ отвечает 404.

get/api/v1/stock/valuation/rebuild/{id}

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or API key in header X-Api-Key
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate
    • or HTTP bearer

Path parameters

id, string uuid required

Идентификатор прогона из ответа на запуск пересчёта

Headers

X-Tenant, string required

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

Response

Состояние прогона пересчёта

StockValuationRun required
id, string uuid required
document_id, string uuid required
idempotency_key, string required
status, 'pending' | 'running' | 'completed' | 'failed' required
progress, integer required

Сколько документов цепочки уже перепроведено

total, integer required

Сколько документов цепочки предстоит перепровести

result, StockValuationResult
error, string

Заполняется при status=failed

created_at, string date-time required
started_at, string date-time
finished_at, string date-time

Changes

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    7 more changes in this revision