Overview

For an example of how to use our /dispatches endpoints in a typical business scenario, refer to TMS Integration Workflow.

A dispatch is a collection of dispatch trips while a dispatch trip is a collection of dispatch stops. A dispatch trip has its own set of dispatch stops, which can be in either a not_started, in_progress, completed and cancelled state. A driver can have only one in_progress dispatch trip while having any number of not_started dispatch trips. In the simplest scenario, a dispatch may consist of one dispatch trip. However, we can add more trips to split up a dispatch. Each trip would have its own stops and the stops must be unique across trips.

In v3, dispatches deprecates the notion of an explicit shipper and consignee stop.

Dispatch: Attributes

AttributeTypeDescription
vendor_idstring (optional)External system ID for dispatch
trailerstring (optional)
productstring (optional)
additional_pickupsinteger (optional)
additional_dropsinteger (optional)
loaded_milesinteger (optional)
consignee_refnostring (optional)
temperature_mininteger (optional)
temperature_maxinteger (optional)
pickup_numberstring (optional)
order_piecesfloat (optional)
order_weightfloat (optional)
order_volumefloat (optional)
custom_field1-custom_field100string (optional)100 custom fields to store any extra information for a dispatch
auto_complete_formsboolean (optional)

Dispatch Stop: Attributes

AttributeTypeDescription
vendor_idstring (optional)External system ID for stop
numberinteger (required)Specifies the position of the stop; values start at "1"
statusstring (optional)Status of stop. Valid values are ["available", "in_progress", "departed"]. Default value: "available"
dispatch_location_idinteger (required)Dispatch location associated with stop
form_idsArray of strings (required)Forms to be filled out at stop (array of UUIDs of forms)
typestring (optional)
early_datedatetime (optional)
late_datedatetime (optional)
driver_loadboolean (optional)
piecesfloat (optional)
weightfloat (optional)
pallets_ininteger (optional)
pallets_outinteger (optional)
commentsstring (optional)
bill_of_ladingstring (optional)
volumefloat (optional)
custom_field1-custom_field100string (optional)100 custom fields to store any extra information for a stop

Dispatch Trip: Attributes

AttributeTypeDescription
vendor_idstring (optional)External system ID for trip
statusstring (required)Status of trip. Valid values are ["not_started", "in_progress", "completed", "cancelled"]. Default value: "not_started"
vehicle_idinteger (required)Vehicle associated to dispatch
driver_idinteger (required)Driver associated to dispatch
dispatch_idinteger (required)Dispatch with which the trip is associated
status_updated_attimestamp
created_attimestamp
updated_attimestamp