11.1 PastStockMonitoringReportByProduct

Field names use underscores. Stock is calculated from movements before the given day; that day's movements are not included.

FieldTypeRequiredDescription
dist_codetextYesA single distributor code; must be authorized and active
stock_daytextYesgg-aa-yyyy, gg/aa/yyyy or gg.aa.yyyy (day-month-year)
meta_disablednumber listYes0 = active products, 1 = disabled products; [] = all
limitnumberNoMaximum number of rows; empty = 5000
product_ownertextNoHO = headquarters products only; default D = no filter
stock_codes, meta_codes, seller_codestext listNoWarehouse, 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.