11.1 PastStockMonitoringReportByProduct
Field names use underscores. Stock is calculated from movements before the given day; that day's movements are not included.
| Field | Type | Required | Description |
|---|---|---|---|
dist_code | text | Yes | A single distributor code; must be authorized and active |
stock_day | text | Yes | gg-aa-yyyy, gg/aa/yyyy or gg.aa.yyyy (day-month-year) |
meta_disabled | number list | Yes | 0 = active products, 1 = disabled products; [] = all |
limit | number | No | Maximum number of rows; empty = 5000 |
product_owner | text | No | HO = headquarters products only; default D = no filter |
stock_codes, meta_codes, seller_codes | text list | No | Warehouse, product and sales rep filters |
{ "dist_code": "228", "stock_day": "03-11-2026", "limit": 1000, "meta_disabled": [0], "product_owner": "HO", "stock_codes": ["91"] }
In the response, data.meta_stocks[] contains, for each product, meta (meta_code, meta_name) and stocks[] (store_code, store_name, seller_code, package cases, piece total pieces, liter, kilogram, sell_price and buy_price total amounts). 400 is returned in cases such as an invalid or unauthorized distributor or a missing date.