This endpoint returns the stock of products and can be returned in 2 ways: physical and available. The available stock is the physical stock minus the amount that is already ordered by customers plus what has already been ordered from the suppliers.
GET /stock/physical
GET /stock/available
POST /stock
dossiernr = company within FoodMaster
pag = page number
lim = page size
dossiernr = company within FoodMaster
pag = page number
lim = page sizev
Provide the call with a json like this example:
xxxxxxxxxx{ "dsStock": { "ttStockBatch_HFD": [ { "dossiernr": 1, // company within FoodMaster "klant-nr": 999 // customer id "datum_lev": "2000-01-01", // delivery date "mode": "PHYSICAL", // PHYSICAL or AVAILABLE stock "ttArtikels": [ { "artikelsrt": 0, // article kind "artikelnr":"454ABC", // article id }, ] } ] }}See following example:
xxxxxxxxxx{ "dsStock": { "ttStockBatch_HFD": [ { "klant-nr": 999, // customer id "datum_lev": "2000-01-01", // delivery date "mode": "PHYSICAL", // mode PHYSICAL vs AVAILABLE "ttArtikels": [ { "artikelsrt": 0, // aarticle kind "artikelnr": "ADFRB", // article id "ttStock": [ { "stock": 5121.0, // in stock "incoming": 500.0 // already ordered from supplier "dat_next_lev": "2021-04-21" // next delivery date by supplier (earliest 'back in stock' date) } ] }, ] } ] }}