GEThttps://api.spirestock.com/api/v1/reports/filters#
Plants, routes, customers and vehicle numbers for the dispatch-report filters, limited to the plants the caller can see for the chosen report.
Access: API key read scope; staff need any report sub-module (the /reports/* catch-all) — list.
Parameters
reportstring- Scope rules: dashboard, indent, contribution, summary (default), trucksheet, dailySale, sales
production_unit_idnumber- Plant filter; a plant outside your scope is 403
curl https://api.spirestock.com/api/v1/reports/filters \
-H "X-API-Key: YOUR_API_KEY"{
"response_code": 200,
"data": {
"plants": [
{
"id": 18,
"production_unit_name": "South Plant",
"production_unit_code": "1300"
}
],
"routes": [
{
"id": 95,
"route": "Route A",
"route_code": "R0018",
"production_unit_id": 17
}
],
"customers": [
{
"id": 41518,
"store_name": "Demo Store E",
"emp_sap_id": "CUST-008",
"name": "Sample User S"
}
],
"vehicles": [
"AB01CD1234"
]
}
}