Workshop/Reports/Vehicles in park by status
Vehicles in park by status
Returns a snapshot of the service orders currently in the park, split into exactly three buckets: waiting, in_execution and awaiting_parts. Takes no parameters — there is no window, no filter and no pagination. The awaiting_parts flag wins over the status, so a waiting or in-execution service order flagged as awaiting parts is only counted in awaiting_parts. Service orders whose status survives the park filter but is neither ESP nor EXE (closed ones, and any custom status) are counted in no bucket, so the three counts do not necessarily add up to the park total. All three rows are always present, in this order, with counts of zero when the park is empty.
curl -X GET "https://og-tenant1.test:8003/api/v2/workshop/reports/vehicles-in-park-by-status"{
"data": [
{
"status": "waiting",
"count": 0
}
]
}{
"data": {
"code": "VALIDATION_FAILED",
"message": "The given data was invalid.",
"errors": {
"email": [
"The email field is required."
]
}
},
"meta": {
"trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
}
}{
"data": {
"code": "VALIDATION_FAILED",
"message": "The given data was invalid.",
"errors": {
"email": [
"The email field is required."
]
}
},
"meta": {
"trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
}
}{
"data": {
"code": "VALIDATION_FAILED",
"message": "The given data was invalid.",
"errors": {
"email": [
"The email field is required."
]
}
},
"meta": {
"trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
}
}