---
agentTools:
  projectIndex: https://developer-docs.gomotive.com/llms.txt
---

# Create a new dispatch (v3)

**Purpose**: Use this API to create a new dispatch.

> 📘 Custom Fields - Dispatches and Dispatch Stops
>
> Dispatches and Dispatch Stops support custom fields from **custom\_field1** through **custom\_field100**. You can use conditional logic to auto-populate these fields, and update the corresponding TMS data.
>
> **NOTE**
>
> * Dispatch custom fields are sent at the top level of the POST /v3/dispatches request.
> * Dispatch stop custom fields are sent inside the relevant **dispatch\_stops\[]** - object.
>
> **Example**
>
> ```json Sample Request
> POST /v3/dispatches
> {
>   "custom_field7": "dispatch value",
>   "dispatch_stops": [
>     {
>       "custom_field12": "stop value"
>     }
>   ]
> }
> ```
>
> ### Conditional Logic
>
> When a dispatch form is submitted, the conditional logic will use the supported *vehicle and dispatch-stop context values.*
>
> * Values written to dispatch or dispatch-stop custom fields are saved with the associated TMS data.
> * Values entered by users in visible fields are preserved and are not overwritten by conditional logic.
> * After synchronization, conditional logic can change which fields are displayed or required.
>
> ## Supported Vehicle Context Keys
>
> Conditional logic supports the `vehicle.*` expression syntax for evaluating vehicle context and auto-populating fields. The following vehicle context keys are currently supported:
>
> | Context key                            | Description                                                                    |
> | -------------------------------------- | ------------------------------------------------------------------------------ |
> | `vehicle.vin`                          | Vehicle identification number (VIN).                                           |
> | `vehicle.odometer`                     | Current odometer value, converted to the driver's preferred distance unit.     |
> | `vehicle.fuel_level`                   | Current primary fuel-level reading, when available and within the valid range. |
> | `vehicle.engine_hours`                 | Current engine-hours reading, when available.                                  |
> | `vehicle.location.city`                | Current vehicle location city.                                                 |
> | `vehicle.location.state_code_absolute` | Current vehicle location state code.                                           |
> | `vehicle.location.latitude`            | Current vehicle latitude.                                                      |
> | `vehicle.location.longitude`           | Current vehicle longitude.                                                     |
>
> These are conditional-form context keys and auto-population sources. They are not customer-supplied fields in the `POST /v3/dispatches` request.
>
> `vehicle.id` is client-owned and is not auto-populated by the backend. Other vehicle paths are not currently resolved for conditional logic.
>
> ## Dispatch-stop Timing Fields
>
> Dispatch-stop timing fields represent either the actual time a vehicle arrived at or departed from a stop, or the scheduled appointment window for the stop.
>
> | Field                       | Description                                                                                            |
> | --------------------------- | ------------------------------------------------------------------------------------------------------ |
> | `dispatch_stop.arrive_time` | The actual arrival timestamp for the stop, based on the timestamp submitted through the arrive form.   |
> | `dispatch_stop.depart_time` | The actual departure timestamp for the stop, based on the timestamp submitted through the depart form. |
> | `dispatch_stop.early_date`  | The scheduled appointment-window start.                                                                |
> | `dispatch_stop.late_date`   | The scheduled appointment-window end.                                                                  |
>
> `arrive_time` and `depart_time` represent actual arrival and departure times. `early_date` and `late_date` represent the scheduled appointment window and should not be used as substitutes for actual arrival or departure timestamps.

<br />

> 👍 Team Dispatches
>
> We are introducing a Co-Driver association method, that allows multiple drivers to be "authorized" for a single dispatch trip. This enables seamless swapping of the "\_Active Driver" role directly from the mobile app, ensuring the driver currently behind the wheel has full visibility without requiring manual dispatcher intervention or trip re-assignment.
>
> Check the **[Sample Request Body](https://developer-docs.gomotive.com/null/null#sample-request-body-6)** section for info on the request parameters.
>
> **How to use it**\
> In the sample request body, for the `co_drivers`object, do the following:
>
> 1. Mention the driver ID of the primary driver.
> 2. Mention the driver ID of the secondary driver.
>
> For example, if your primary driver ID is 4713870, and co\_driver ID is 4713860, you will specify the body as follows:
>
> "dispatch\_trips": \[
>
> {\
> "id": 31911,\
> "driver\_id": **4713870**,\
> "co\_drivers": \[\
> **4713870**,\
> 4713860,\
> ]

> 📘 NOTE
>
> This endpoint will only accept a JSON Object as body parameters. Below is the format of the request body.
>
> You may include more trips with multiple stops. Ensure that every trip has a unique stop.
>
> **Disclaimer**: The following request body JSON is just an example and you must change the form IDs and the location IDs that correspond to your fleet for it to work.

## Sample Request Body

```json Dispatch with one trip and one stop
{
  "vendor_id":"VV-1",
  "status":"planned",
  "dispatch_stops":[
    {
      "vendor_id":"VDS-1",
      "type":"pickup",
      "number":1,
      "early_date":"2023-03-13T19:13:00+00:00",
      "late_date":"2023-03-15T19:13:00+00:00",
      "form_ids":[
        "1ee148ac-6083-4b5a-af7b-75b875bb233f",
        "f60e5305-c2e2-45d7-97d7-eb4760b1a973"
      ],
      "vendor_dispatch_location_id":"VDSL-1",
      "status":"available"
    }
  ],
  "dispatch_trips":[
    {
      "vendor_id":"VT-1",
      "vehicle_id":64734,
      "driver_id":1088505,
      "vendor_stop_ids":[
        "VDS-1"
      ],
      "status":"not_started"
    }
  ]
}
```
```json Dispatch with one trip and two stops
{
  "vendor_id":"VV-2",
  "status":"planned",
  "dispatch_stops":[
    {
      "vendor_id":"VDS-1",
      "type":"pickup",
      "number":1,
      "early_date":"2023-03-13T19:13:00+00:00",
      "late_date":"2023-03-15T19:13:00+00:00",
      "form_ids":[
        "1ee148ac-6083-4b5a-af7b-75b875bb233f",
        "f60e5305-c2e2-45d7-97d7-eb4760b1a973"
      ],
      "vendor_dispatch_location_id":"VDSL-1",
      "status":"available"
    },
    {
      "vendor_id":"VDS-2",
      "type":"delivery",
      "number":2,
      "early_date":"2023-03-13T23:13:00+00:00",
      "late_date":"2023-03-15T23:13:00+00:00",
      "form_ids":[
        "1ee148ac-6083-4b5a-af7b-75b875bb233f",
        "f60e5305-c2e2-45d7-97d7-eb4760b1a973"
      ],
      "vendor_dispatch_location_id":"VDSL-2",
      "status":"available"
    }
  ],
  "dispatch_trips":[
    {
      "vendor_id":"VT-1",
      "vehicle_id":64734,
      "driver_id":1088505,
      "vendor_stop_ids":[
        "VDS-1",
        "VDS-2"
      ],
      "status":"not_started"
    }
  ]
}
```
```json Dispatch with two stops and two trips
{
  "vendor_id":"VV-3",
  "status":"planned",
  "dispatch_stops":[
    {
      "vendor_id":"VDS-1",
      "type":"pickup",
      "number":1,
      "early_date":"2023-03-13T19:13:00+00:00",
      "late_date":"2023-03-15T19:13:00+00:00",
      "form_ids":[
        "1ee148ac-6083-4b5a-af7b-75b875bb233f",
        "f60e5305-c2e2-45d7-97d7-eb4760b1a973"
      ],
      "vendor_dispatch_location_id":"VDSL-1",
      "status":"available"
    },
    {
      "vendor_id":"VDS-2",
      "type":"delivery",
      "number":2,
      "early_date":"2023-03-13T23:13:00+00:00",
      "late_date":"2023-03-15T23:13:00+00:00",
      "form_ids":[
        "1ee148ac-6083-4b5a-af7b-75b875bb233f",
        "f60e5305-c2e2-45d7-97d7-eb4760b1a973"
      ],
      "vendor_dispatch_location_id":"VDSL-2",
      "status":"available"
    }
  ],
  "dispatch_trips":[
    {
      "vendor_id":"VT-1",
      "vehicle_id":64734,
      "driver_id":1088505,
      "vendor_stop_ids":[
        "VDS-1"
      ],
      "status":"not_started"
    },
    {
      "vendor_id":"VT-2",
      "vehicle_id":64735,
      "driver_id":1088506,
      "vendor_stop_ids":[
        "VDS-2"
      ],
      "status":"not_started"
    }
  ]
}
```
```json Create Team Dispatches v3
{
  "dispatches": [
    {
      "id": 43686,
      "order_number": "574869",
      "status": "planned",
      "dispatch_team_driving_enabled_v3": true,
      "dispatch_trips": [
        {
          "id": 31911,
          "driver_id": 4713870,
          "co_drivers": [
            4713860,
            4713870,
          ],
          "vehicle_id": 1320960,
          "dispatch_stops": [
            {
              "dispatch_stop": {
                "id": 42,
                "vendor_id": "VDS-1",
                "bill_of_lading": null,
                "comments": null,
                "driver_load": false,
                "early_date": "2017-07-13T19:13:00+00:00",
                "form_ids": [
                  "0b90adf8-2321-4198-9315-5fb57e155c15",
                  "2a00385b-7de3-48b2-9bfc-842eb168e535",
                  "fff80dfb-dda9-4502-8ca6-6c69fa6d70d6"
                ]
              }
            }
          ]
        }
      ]
    }
  ]
}
```

## Response Parameters

### dispatch

* **Type**: Object
* **Description**: Details of a dispatch, including stops and trips associated with it.

### id

* **Type**: Integer
* **Description**: The unique identifier for the dispatch.

### additional\_drops

* **Type**: String
* **Description**: Additional drop locations, if any.

### additional\_pickups

* **Type**: String
* **Description**: Additional pickup locations, if any.

### loaded\_miles

* **Type**: Integer
* **Description**: The loaded miles for the dispatch.

### order\_pieces

* **Type**: Integer
* **Description**: Number of order pieces.

### order\_volume

* **Type**: Integer
* **Description**: Volume of the order.

### order\_weight

* **Type**: Integer
* **Description**: Weight of the order.

### product

* **Type**: String
* **Description**: Product details associated with the dispatch.

### pickup\_number

* **Type**: String
* **Description**: Pickup number associated with the dispatch.

### status

* **Type**: String
* **Description**: The current status of the dispatch (e.g., "planned").

### status\_updated\_at

* **Type**: String (DateTime)
* **Description**: The timestamp of the last status update.

### temperature\_max

* **Type**: Float
* **Description**: Maximum temperature for the dispatch, if applicable.

### temperature\_min

* **Type**: Float
* **Description**: Minimum temperature for the dispatch, if applicable.

### trailer

* **Type**: String
* **Description**: Trailer information associated with the dispatch.

### auto\_complete\_forms

* **Type**: Boolean
* **Description**: Indicates if forms are auto-completed.

### consignee\_refno

* **Type**: String
* **Description**: Reference number for the consignee.

### custom\_field1

* **Type**: String
* **Description**: Custom field for additional information.

### vendor\_id

* **Type**: String
* **Description**: The unique identifier for the vendor associated with the dispatch.

### dispatch\_stops

* **Type**: Array of Objects
* **Description**: A list of stops associated with the dispatch.

### id

* **Type**: Integer
* **Description**: The unique identifier for the stop.

### bill\_of\_lading

* **Type**: String
* **Description**: Bill of lading information.

### comments

* **Type**: String
* **Description**: Additional comments for the stop.

### dispatch\_location\_id

* **Type**: Integer
* **Description**: The unique identifier for the dispatch location.

### driver\_load

* **Type**: String
* **Description**: Driver load information.

### early\_date

* **Type**: String (DateTime)
* **Description**: The earliest date and time for the stop.

### form\_ids

* **Type**: Array of Strings
* **Description**: List of form IDs associated with the stop.

### late\_date

* **Type**: String (DateTime)
* **Description**: The latest date and time for the stop.

### number

* **Type**: Integer
* **Description**: The sequence number of the stop in the dispatch.

### pallets\_in

* **Type**: Integer
* **Description**: Number of pallets in.

### pallets\_out

* **Type**: Integer
* **Description**: Number of pallets out.

### pieces

* **Type**: Integer
* **Description**: Number of pieces associated with the stop.

### status

* **Type**: String
* **Description**: The current status of the stop (e.g., "available").

### type

* **Type**: String
* **Description**: Type of the stop (e.g., "pickup").

### volume

* **Type**: Float
* **Description**: Volume of goods at the stop.

### weight

* **Type**: Float
* **Description**: Weight of goods at the stop.

### form\_entry\_ids

* **Type**: Object
* **Description**: Entry IDs for the forms associated with the stop.

### dispatch\_trip\_id

* **Type**: Integer
* **Description**: The unique identifier for the dispatch trip associated with the stop.

### custom\_field1

* **Type**: String
* **Description**: Custom field for additional information.

### vendor\_id

* **Type**: String
* **Description**: The unique identifier for the vendor associated with the stop.

### vendor\_dispatch\_location\_id

* **Type**: String
* **Description**: The unique identifier for the vendor dispatch location.

### dispatch\_trips

* **Type**: Array of Objects
* **Description**: A list of trips associated with the dispatch.

### id

* **Type**: Integer
* **Description**: The unique identifier for the dispatch trip.

### status

* **Type**: String
* **Description**: The current status of the dispatch trip (e.g., "not\_started").

### status\_updated\_at

* **Type**: String (DateTime)
* **Description**: The timestamp of the last status update for the dispatch trip.

### loaded\_miles

* **Type**: Integer
* **Description**: Loaded miles for the dispatch trip.

### vendor\_id

* **Type**: String
* **Description**: The unique identifier for the vendor associated with the dispatch trip.

### driver\_id

* **Type**: Integer
* **Description**: The unique identifier for the driver associated with the dispatch trip.

### vehicle\_id

* **Type**: Integer
* **Description**: The unique identifier for the vehicle associated with the dispatch trip.

***

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Motive",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.gomotive.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v3/dispatches": {
      "post": {
        "summary": "Create a new dispatch (v3)",
        "description": "",
        "operationId": "create-a-new-dispatch-v3",
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Create a new dispatch (v2)": {
                    "value": "{\n  \"dispatch\": {\n    \"id\": 16533,\n    \"additional_drops\": null,\n    \"additional_pickups\": null,\n    \"loaded_miles\": null,\n    \"order_pieces\": null,\n    \"order_volume\": null,\n    \"order_weight\": null,\n    \"product\": null,\n    \"pickup_number\": null,\n    \"status\": \"planned\",\n    \"status_updated_at\": \"2023-03-24T10:47:25Z\",\n    \"temperature_max\": null,\n    \"temperature_min\": null,\n    \"trailer\": null,\n    \"auto_complete_forms\": true,\n    \"consignee_refno\": null,\n    \"custom_field1\": null,\n    \"custom_field2\": null,\n    \"custom_field3\": null,\n    \"custom_field4\": null,\n    \"custom_field5\": null,\n    \"custom_field6\": null,\n    \"custom_field7\": null,\n    \"custom_field8\": null,\n    \"custom_field9\": null,\n    \"custom_field10\": null,\n    \"custom_field11\": null,\n    \"custom_field12\": null,\n    \"custom_field13\": null,\n    \"custom_field14\": null,\n    \"custom_field15\": null,\n    \"custom_field16\": null,\n    \"custom_field17\": null,\n    \"custom_field18\": null,\n    \"custom_field19\": null,\n    \"custom_field20\": null,\n    \"custom_field21\": null,\n    \"custom_field22\": null,\n    \"custom_field23\": null,\n    \"custom_field24\": null,\n    \"custom_field25\": null,\n    \"custom_field26\": null,\n    \"custom_field27\": null,\n    \"custom_field28\": null,\n    \"custom_field29\": null,\n    \"custom_field30\": null,\n    \"custom_field31\": null,\n    \"custom_field32\": null,\n    \"custom_field33\": null,\n    \"custom_field34\": null,\n    \"custom_field35\": null,\n    \"custom_field36\": null,\n    \"custom_field37\": null,\n    \"custom_field38\": null,\n    \"custom_field39\": null,\n    \"custom_field40\": null,\n    \"custom_field41\": null,\n    \"custom_field42\": null,\n    \"custom_field43\": null,\n    \"custom_field44\": null,\n    \"custom_field45\": null,\n    \"custom_field46\": null,\n    \"custom_field47\": null,\n    \"custom_field48\": null,\n    \"custom_field49\": null,\n    \"custom_field50\": null,\n    \"custom_field51\": null,\n    \"custom_field52\": null,\n    \"custom_field53\": null,\n    \"custom_field54\": null,\n    \"custom_field55\": null,\n    \"custom_field56\": null,\n    \"custom_field57\": null,\n    \"custom_field58\": null,\n    \"custom_field59\": null,\n    \"custom_field60\": null,\n    \"custom_field61\": null,\n    \"custom_field62\": null,\n    \"custom_field63\": null,\n    \"custom_field64\": null,\n    \"custom_field65\": null,\n    \"custom_field66\": null,\n    \"custom_field67\": null,\n    \"custom_field68\": null,\n    \"custom_field69\": null,\n    \"custom_field70\": null,\n    \"custom_field71\": null,\n    \"custom_field72\": null,\n    \"custom_field73\": null,\n    \"custom_field74\": null,\n    \"custom_field75\": null,\n    \"custom_field76\": null,\n    \"custom_field77\": null,\n    \"custom_field78\": null,\n    \"custom_field79\": null,\n    \"custom_field80\": null,\n    \"custom_field81\": null,\n    \"custom_field82\": null,\n    \"custom_field83\": null,\n    \"custom_field84\": null,\n    \"custom_field85\": null,\n    \"custom_field86\": null,\n    \"custom_field87\": null,\n    \"custom_field88\": null,\n    \"custom_field89\": null,\n    \"custom_field90\": null,\n    \"custom_field91\": null,\n    \"custom_field92\": null,\n    \"custom_field93\": null,\n    \"custom_field94\": null,\n    \"custom_field95\": null,\n    \"custom_field96\": null,\n    \"custom_field97\": null,\n    \"custom_field98\": null,\n    \"custom_field99\": null,\n    \"custom_field100\": null,\n    \"vendor_id\": \"VV-1\",\n    \"dispatch_stops\": [\n      {\n        \"dispatch_stop\": {\n          \"id\": 27600,\n          \"bill_of_lading\": null,\n          \"comments\": null,\n          \"dispatch_location_id\": 8197,\n          \"driver_load\": null,\n          \"early_date\": \"2023-03-13T19:13:00+00:00\",\n          \"form_ids\": [\n            \"1ee148ac-6083-4b5a-af7b-75b875bb233f\",\n            \"f60e5305-c2e2-45d7-97d7-eb4760b1a973\"\n          ],\n          \"late_date\": \"2023-03-15T19:13:00+00:00\",\n          \"number\": 1,\n          \"pallets_in\": null,\n          \"pallets_out\": null,\n          \"pieces\": null,\n          \"status\": \"available\",\n          \"type\": \"pickup\",\n          \"volume\": null,\n          \"weight\": null,\n          \"form_entry_ids\": {},\n          \"dispatch_trip_id\": 10235,\n          \"custom_field1\": null,\n          \"custom_field2\": null,\n          \"custom_field3\": null,\n          \"custom_field4\": null,\n          \"custom_field5\": null,\n          \"custom_field6\": null,\n          \"custom_field7\": null,\n          \"custom_field8\": null,\n          \"custom_field9\": null,\n          \"custom_field10\": null,\n          \"custom_field11\": null,\n          \"custom_field12\": null,\n          \"custom_field13\": null,\n          \"custom_field14\": null,\n          \"custom_field15\": null,\n          \"custom_field16\": null,\n          \"custom_field17\": null,\n          \"custom_field18\": null,\n          \"custom_field19\": null,\n          \"custom_field20\": null,\n          \"custom_field21\": null,\n          \"custom_field22\": null,\n          \"custom_field23\": null,\n          \"custom_field24\": null,\n          \"custom_field25\": null,\n          \"custom_field26\": null,\n          \"custom_field27\": null,\n          \"custom_field28\": null,\n          \"custom_field29\": null,\n          \"custom_field30\": null,\n          \"custom_field31\": null,\n          \"custom_field32\": null,\n          \"custom_field33\": null,\n          \"custom_field34\": null,\n          \"custom_field35\": null,\n          \"custom_field36\": null,\n          \"custom_field37\": null,\n          \"custom_field38\": null,\n          \"custom_field39\": null,\n          \"custom_field40\": null,\n          \"custom_field41\": null,\n          \"custom_field42\": null,\n          \"custom_field43\": null,\n          \"custom_field44\": null,\n          \"custom_field45\": null,\n          \"custom_field46\": null,\n          \"custom_field47\": null,\n          \"custom_field48\": null,\n          \"custom_field49\": null,\n          \"custom_field50\": null,\n          \"custom_field51\": null,\n          \"custom_field52\": null,\n          \"custom_field53\": null,\n          \"custom_field54\": null,\n          \"custom_field55\": null,\n          \"custom_field56\": null,\n          \"custom_field57\": null,\n          \"custom_field58\": null,\n          \"custom_field59\": null,\n          \"custom_field60\": null,\n          \"custom_field61\": null,\n          \"custom_field62\": null,\n          \"custom_field63\": null,\n          \"custom_field64\": null,\n          \"custom_field65\": null,\n          \"custom_field66\": null,\n          \"custom_field67\": null,\n          \"custom_field68\": null,\n          \"custom_field69\": null,\n          \"custom_field70\": null,\n          \"custom_field71\": null,\n          \"custom_field72\": null,\n          \"custom_field73\": null,\n          \"custom_field74\": null,\n          \"custom_field75\": null,\n          \"custom_field76\": null,\n          \"custom_field77\": null,\n          \"custom_field78\": null,\n          \"custom_field79\": null,\n          \"custom_field80\": null,\n          \"custom_field81\": null,\n          \"custom_field82\": null,\n          \"custom_field83\": null,\n          \"custom_field84\": null,\n          \"custom_field85\": null,\n          \"custom_field86\": null,\n          \"custom_field87\": null,\n          \"custom_field88\": null,\n          \"custom_field89\": null,\n          \"custom_field90\": null,\n          \"custom_field91\": null,\n          \"custom_field92\": null,\n          \"custom_field93\": null,\n          \"custom_field94\": null,\n          \"custom_field95\": null,\n          \"custom_field96\": null,\n          \"custom_field97\": null,\n          \"custom_field98\": null,\n          \"custom_field99\": null,\n          \"custom_field100\": null,\n          \"vendor_id\": \"VDS-1\",\n          \"vendor_dispatch_location_id\": \"VDSL-1\"\n        }\n      }\n    ],\n    \"dispatch_trips\": [\n      {\n        \"dispatch_trip\": {\n          \"id\": 10235,\n          \"status\": \"not_started\",\n          \"status_updated_at\": null,\n          \"loaded_miles\": null,\n          \"vendor_id\": \"VT-1\",\n          \"driver_id\": 1088505,\n          \"vehicle_id\": 64734\n        }\n      }\n    ]\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "dispatch": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 16533,
                          "default": 0
                        },
                        "additional_drops": {},
                        "additional_pickups": {},
                        "loaded_miles": {},
                        "order_pieces": {},
                        "order_volume": {},
                        "order_weight": {},
                        "product": {},
                        "pickup_number": {},
                        "status": {
                          "type": "string",
                          "example": "planned"
                        },
                        "status_updated_at": {
                          "type": "string",
                          "example": "2023-03-24T10:47:25Z"
                        },
                        "temperature_max": {},
                        "temperature_min": {},
                        "trailer": {},
                        "auto_complete_forms": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "consignee_refno": {},
                        "custom_field1": {},
                        "custom_field2": {},
                        "custom_field3": {},
                        "custom_field4": {},
                        "custom_field5": {},
                        "custom_field6": {},
                        "custom_field7": {},
                        "custom_field8": {},
                        "custom_field9": {},
                        "custom_field10": {},
                        "custom_field11": {},
                        "custom_field12": {},
                        "custom_field13": {},
                        "custom_field14": {},
                        "custom_field15": {},
                        "custom_field16": {},
                        "custom_field17": {},
                        "custom_field18": {},
                        "custom_field19": {},
                        "custom_field20": {},
                        "custom_field21": {},
                        "custom_field22": {},
                        "custom_field23": {},
                        "custom_field24": {},
                        "custom_field25": {},
                        "custom_field26": {},
                        "custom_field27": {},
                        "custom_field28": {},
                        "custom_field29": {},
                        "custom_field30": {},
                        "custom_field31": {},
                        "custom_field32": {},
                        "custom_field33": {},
                        "custom_field34": {},
                        "custom_field35": {},
                        "custom_field36": {},
                        "custom_field37": {},
                        "custom_field38": {},
                        "custom_field39": {},
                        "custom_field40": {},
                        "custom_field41": {},
                        "custom_field42": {},
                        "custom_field43": {},
                        "custom_field44": {},
                        "custom_field45": {},
                        "custom_field46": {},
                        "custom_field47": {},
                        "custom_field48": {},
                        "custom_field49": {},
                        "custom_field50": {},
                        "custom_field51": {},
                        "custom_field52": {},
                        "custom_field53": {},
                        "custom_field54": {},
                        "custom_field55": {},
                        "custom_field56": {},
                        "custom_field57": {},
                        "custom_field58": {},
                        "custom_field59": {},
                        "custom_field60": {},
                        "custom_field61": {},
                        "custom_field62": {},
                        "custom_field63": {},
                        "custom_field64": {},
                        "custom_field65": {},
                        "custom_field66": {},
                        "custom_field67": {},
                        "custom_field68": {},
                        "custom_field69": {},
                        "custom_field70": {},
                        "custom_field71": {},
                        "custom_field72": {},
                        "custom_field73": {},
                        "custom_field74": {},
                        "custom_field75": {},
                        "custom_field76": {},
                        "custom_field77": {},
                        "custom_field78": {},
                        "custom_field79": {},
                        "custom_field80": {},
                        "custom_field81": {},
                        "custom_field82": {},
                        "custom_field83": {},
                        "custom_field84": {},
                        "custom_field85": {},
                        "custom_field86": {},
                        "custom_field87": {},
                        "custom_field88": {},
                        "custom_field89": {},
                        "custom_field90": {},
                        "custom_field91": {},
                        "custom_field92": {},
                        "custom_field93": {},
                        "custom_field94": {},
                        "custom_field95": {},
                        "custom_field96": {},
                        "custom_field97": {},
                        "custom_field98": {},
                        "custom_field99": {},
                        "custom_field100": {},
                        "vendor_id": {
                          "type": "string",
                          "example": "VV-1"
                        },
                        "dispatch_stops": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "dispatch_stop": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "integer",
                                    "example": 27600,
                                    "default": 0
                                  },
                                  "bill_of_lading": {},
                                  "comments": {},
                                  "dispatch_location_id": {
                                    "type": "integer",
                                    "example": 8197,
                                    "default": 0
                                  },
                                  "driver_load": {},
                                  "early_date": {
                                    "type": "string",
                                    "example": "2023-03-13T19:13:00+00:00"
                                  },
                                  "form_ids": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "example": "1ee148ac-6083-4b5a-af7b-75b875bb233f"
                                    }
                                  },
                                  "late_date": {
                                    "type": "string",
                                    "example": "2023-03-15T19:13:00+00:00"
                                  },
                                  "number": {
                                    "type": "integer",
                                    "example": 1,
                                    "default": 0
                                  },
                                  "pallets_in": {},
                                  "pallets_out": {},
                                  "pieces": {},
                                  "status": {
                                    "type": "string",
                                    "example": "available"
                                  },
                                  "type": {
                                    "type": "string",
                                    "example": "pickup"
                                  },
                                  "volume": {},
                                  "weight": {},
                                  "form_entry_ids": {
                                    "type": "object",
                                    "properties": {}
                                  },
                                  "dispatch_trip_id": {
                                    "type": "integer",
                                    "example": 10235,
                                    "default": 0
                                  },
                                  "custom_field1": {},
                                  "custom_field2": {},
                                  "custom_field3": {},
                                  "custom_field4": {},
                                  "custom_field5": {},
                                  "custom_field6": {},
                                  "custom_field7": {},
                                  "custom_field8": {},
                                  "custom_field9": {},
                                  "custom_field10": {},
                                  "custom_field11": {},
                                  "custom_field12": {},
                                  "custom_field13": {},
                                  "custom_field14": {},
                                  "custom_field15": {},
                                  "custom_field16": {},
                                  "custom_field17": {},
                                  "custom_field18": {},
                                  "custom_field19": {},
                                  "custom_field20": {},
                                  "custom_field21": {},
                                  "custom_field22": {},
                                  "custom_field23": {},
                                  "custom_field24": {},
                                  "custom_field25": {},
                                  "custom_field26": {},
                                  "custom_field27": {},
                                  "custom_field28": {},
                                  "custom_field29": {},
                                  "custom_field30": {},
                                  "custom_field31": {},
                                  "custom_field32": {},
                                  "custom_field33": {},
                                  "custom_field34": {},
                                  "custom_field35": {},
                                  "custom_field36": {},
                                  "custom_field37": {},
                                  "custom_field38": {},
                                  "custom_field39": {},
                                  "custom_field40": {},
                                  "custom_field41": {},
                                  "custom_field42": {},
                                  "custom_field43": {},
                                  "custom_field44": {},
                                  "custom_field45": {},
                                  "custom_field46": {},
                                  "custom_field47": {},
                                  "custom_field48": {},
                                  "custom_field49": {},
                                  "custom_field50": {},
                                  "custom_field51": {},
                                  "custom_field52": {},
                                  "custom_field53": {},
                                  "custom_field54": {},
                                  "custom_field55": {},
                                  "custom_field56": {},
                                  "custom_field57": {},
                                  "custom_field58": {},
                                  "custom_field59": {},
                                  "custom_field60": {},
                                  "custom_field61": {},
                                  "custom_field62": {},
                                  "custom_field63": {},
                                  "custom_field64": {},
                                  "custom_field65": {},
                                  "custom_field66": {},
                                  "custom_field67": {},
                                  "custom_field68": {},
                                  "custom_field69": {},
                                  "custom_field70": {},
                                  "custom_field71": {},
                                  "custom_field72": {},
                                  "custom_field73": {},
                                  "custom_field74": {},
                                  "custom_field75": {},
                                  "custom_field76": {},
                                  "custom_field77": {},
                                  "custom_field78": {},
                                  "custom_field79": {},
                                  "custom_field80": {},
                                  "custom_field81": {},
                                  "custom_field82": {},
                                  "custom_field83": {},
                                  "custom_field84": {},
                                  "custom_field85": {},
                                  "custom_field86": {},
                                  "custom_field87": {},
                                  "custom_field88": {},
                                  "custom_field89": {},
                                  "custom_field90": {},
                                  "custom_field91": {},
                                  "custom_field92": {},
                                  "custom_field93": {},
                                  "custom_field94": {},
                                  "custom_field95": {},
                                  "custom_field96": {},
                                  "custom_field97": {},
                                  "custom_field98": {},
                                  "custom_field99": {},
                                  "custom_field100": {},
                                  "vendor_id": {
                                    "type": "string",
                                    "example": "VDS-1"
                                  },
                                  "vendor_dispatch_location_id": {
                                    "type": "string",
                                    "example": "VDSL-1"
                                  }
                                }
                              }
                            }
                          }
                        },
                        "dispatch_trips": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "dispatch_trip": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "integer",
                                    "example": 10235,
                                    "default": 0
                                  },
                                  "status": {
                                    "type": "string",
                                    "example": "not_started"
                                  },
                                  "status_updated_at": {},
                                  "loaded_miles": {},
                                  "vendor_id": {
                                    "type": "string",
                                    "example": "VT-1"
                                  },
                                  "driver_id": {
                                    "type": "integer",
                                    "example": 1088505,
                                    "default": 0
                                  },
                                  "vehicle_id": {
                                    "type": "integer",
                                    "example": 64734,
                                    "default": 0
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Cannot create dispatch": {
                    "value": "{\n  \"error_message\": \"dispatch could not be created\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_message": {
                      "type": "string",
                      "example": "dispatch could not be created"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "66acf64a829e88001980fbf2:66cf76a8cfc8c000143553c3"
}
```