Stock handling units

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

Changed on

Подбор идёт по вскрытым и запечатанным активным единицам в порядке выдачи; complete=false означает, что склада не хватило.

get/api/v1/stock/handling-units/suggestions

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

business_id, string uuid

Бизнес подбора; нужен бизнес или юрлицо. Без юрлица подбираются только единицы без юрлица этого бизнеса

company_id, string uuid

Юрлицо подбора; при заданном business_id обязано относиться к нему

warehouse_id, string uuid required
product_id, string uuid required
qty, string required

Положительный decimal в базовой единице товара

Headers

X-Tenant, string required

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

Response

Раскладка подбора

StockHandlingUnitSuggestionResult required
requested_qty, string required
allocated_qty, string required
complete, boolean required

false означает, что доступных единиц не хватило на всё количество

allocations, StockHandlingUnitSuggestion[] 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

    5 more changes in this revision