v1
latestOpenAPI 3.1.02026-07-2617501.1 MBList company dispatch records (v3)
Query parameters
Specify the ID of the dispatches that you want to view.
Specify one or more vendor IDs for filter the search.
Specify the driver ID for fetching the dispatch record for the particular driver.
Specify the ID of the vehicle for which you want to fetch the dispatch records.
Specify the status of the dispatch to fetch the records of that particular value. Allowed values are "planned", "active", "completed", "cancelled"
Use this parameter to include the dispatches created on the Motive dashboard. Allowed values are <b>true</b>: Include all the dispatches created on the Motive Dashboard. <b>false</b>: Do not include the dispatches created on the Motive Dashboard.
Fetch the dispatch records that were updated after the specified date.
Fetch the dispatch records that were updated before the specified time.
Denotes the number of records shown per page.
Denotes the current page number.
Response
200
Example response
{
"dispatches": [
{
"dispatch": {
"id": 16534,
"status": "planned",
"status_updated_at": "2023-03-24T10:51:36Z",
"auto_complete_forms": true,
"vendor_id": "VV-1",
"dispatch_stops": [
{
"dispatch_stop": {
"id": 27601,
"dispatch_location_id": 8197,
"early_date": "2023-03-13T19:13:00+00:00",
"form_ids": [
"1ee148ac-6083-4b5a-af7b-75b875bb233f"
],
"late_date": "2023-03-15T19:13:00+00:00",
"number": 1,
"status": "available",
"type": "pickup",
"dispatch_trip_id": 10236,
"vendor_id": "VDS-1",
"vendor_dispatch_location_id": "VDSL-1"
}
}
],
"dispatch_trips": [
{
"dispatch_trip": {
"id": 10236,
"status": "not_started",
"vendor_id": "VT-1",
"driver_id": 1088505,
"vehicle_id": 64734
}
}
]
}
}
],
"pagination": {
"per_page": 25,
"page_no": 1,
"total": 1
}
}