Stock reorder rules

Получить правила пополнения запаса

Changed on

Отдаются только правила юрлиц, доступных текущему пользователю, а правила без юрлица — пользователю с доступом ко всем юрлицам; count — общее число подходящих правил, а не размер страницы.

get/api/v1/stock/reorder-rules

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
warehouse_id, string uuid
product_id, string uuid
supplier_id, string uuid

Предпочтительный поставщик правила: фильтр столбца «Поставщик»

q, string

Поиск по товару, бизнесу, юрлицу и складу

status, 'active' | 'inactive'
min_from, string

Фильтр столбца «Минимум»: от, включительно

min_to, string

Фильтр столбца «Минимум»: до, включительно

max_from, string

Фильтр столбца «Максимум»: от; правило без максимума не подходит

max_to, string

Фильтр столбца «Максимум»: до; правило без максимума не подходит

multiple_from, string

Фильтр столбца «Кратность»: от; правило без кратности не подходит

multiple_to, string

Фильтр столбца «Кратность»: до; правило без кратности не подходит

lead_from, string

Фильтр столбца «Срок поставки», дней: от, включительно

lead_to, string

Фильтр столбца «Срок поставки», дней: до, включительно

sort, 'business' | 'company' | 'product' | 'warehouse' | 'min_qty' | 'updated_at'
direction, 'asc' | 'desc'
limit, integer
offset, integer

Headers

X-Tenant, string required

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

Response

Страница правил пополнения

StockReorderRulePage required
count, integer required

Общее число подходящих правил, а не размер страницы

limit, integer required
offset, integer required
results, StockReorderRule[] 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