Stock valuation

Рассчитать переоценку по документу накладных расходов без записи

Changed on

Принимает только документ вида stock_landed_cost. Прогон идёт в той же транзакции, что и настоящий пересчёт, но результат откатывается: движения регистров и книги не меняются. Отвечает синхронно, идентификатор прогона не заводится, поле idempotency_key здесь не используется. Ответ содержит status=preview и список документов цепочки, которые перепровелись бы.

post/api/v1/stock/valuation/preview

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

Headers

X-Tenant, string required

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

Request body

StockValuationPreviewRequest required
document_id, string uuid required

Response

Расчёт переоценки без записи

StockValuationResult required
document_id, string uuid required
status, 'preview' | 'completed' required

preview — расчёт откачен, completed — пересчёт записан

total_amount, string required

Decimal string суммы накладных расходов

affected_documents, integer required
steps, StockValuationStep[] required

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

    9 more changes in this revision