Stock product units

Определить товар и единицу ввода по штрихкоду

Changed on

Документ всё равно хранит количество в базовой единице; factor_to_base управляет только представлением ввода оператора.

get/api/v1/stock/products/scan

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

code, string required

Штрихкод; нормализуется перед поиском

Headers

X-Tenant, string required

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

Response

Товар и единица ввода штрихкода

StockScanResult required
identifier_id, string uuid required
barcode, string required
product_id, string uuid required
product_sku, string required
product_name, string required
base_unit, string required
product_uom_id, string uuid nullable required
product_uom_name, string required
input_unit_id, string uuid nullable required
input_unit_label, string required
factor_to_base, string required
gs1, StockScanGS1

Разобранный код GS1 — код маркировки или логистическая этикетка. У обычного штрихкода блока нет. Поля, которых в коде не было, пусты. Блок криптохвост маркировки не несёт; поле barcode — сохранённое значение идентификатора как есть.

marking_group, StockScanMarkingGroup

Действующая группа маркировки найденного товара — своя или от категории. Поле про товар, а не про код: оно есть и у обычного штрихкода. У товара, который не маркируется, поля нет.

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