11. Stocks and token check
The stock methods use a different address prefix: {base_url}/api/stocks/ (without /v1/integ).
| Method | HTTP method | Function | Required role |
|---|---|---|---|
PastStockMonitoringReportByProduct | POST | A distributor's historical stock, broken down by product and warehouse | Integration.Stocks.GetPastStockMonitoringReportByProduct |
GetWarehouseStock | POST | Product stocks per warehouse (case/box/piece) | Integration.Stocks.GetWarehouseStock |
GetDistSales | POST | Monthly sales and return quantities of all distributors | Integration.Stocks.GetDistSales |
GetDistStock | GET | Current stocks of all distributors | Integration.Stocks.GetDistStock |
account/check | POST | Validates the token and renews it if expired | No role required |
Methods in this chapter
- 11.1 PastStockMonitoringReportByProduct — Stock report per product based on movements before a given day.
- 11.2 GetWarehouseStock — Returns current stock quantities in a warehouse.
- 11.3 GetDistSales and GetDistStock — Returns distributor sales and stock data.
- 11.4 account/check — Checks whether the token is valid and returns a new one if needed.