Stock documents

Получить расхождения приёмки по отправкам

Changed on

Строки расхождений отправок на склады с приёмкой (ERP-2179) для общего экрана «Расхождения приёмки»: строка «отправка × товар» вида shortage (недостача — остаток в пути после «Приёмка закончена», а также уже списанная или возвращённая; пока приёмка не закончена или решили ждать — «ещё в пути», in_transit) или surplus (излишек). Пересорт серии — не расхождение: его показывает отчёт stockListTransitSeriesMismatches. Статус строки: open — нужно решить, pending — черновик решения, in_transit — ещё в пути, resolved — решено (resolution — чем). Фильтр status=open отдаёт всё, кроме resolved.

get/api/v1/stock/transit-discrepancies

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

Query parameters

warehouse_id, string uuid

Склад-получатель или его склад «в пути»

company_id, string uuid
status, 'open' | 'resolved' | 'all'
date_from, string date
date_to, string date

Headers

X-Tenant, string required

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

Response

Строки расхождений

StockTransitDiscrepancyPage required
count, integer required
results, StockTransitDiscrepancy[] required

Changes

    • warning

      added the new surplus_opening_balance enum value to the results/items/resolution response property for the response status

    • breaking

      the results/items/document_id response's property type changed from string to no type, and format from uuid to no format for status

    • info

      added the optional property field to the response with the status

    6 more changes in this revision