OptimoRoute

App · 10 actions

Create and look up orders, pull route plans and monitor dispatch and driver activity.

Actions

ActionWhat it does
Create orderCreate order.
Delete orderDelete order.
Get dispatch statusGet dispatch status.
Get mobile eventsGet mobile events.
Get order scheduling informationGet order scheduling information.
Get planning statusGet planning status.
Get routes for a dateGet routes for a date.
Merge fields into orderMerge fields into order.
Search ordersSearch orders.
Stop route planningStop route planning.

Create order

Create order.

Inputs

Order noorder_notextRequired
Order no.
DatedatedateRequired
Date.
TypetypetextRequired
Type.One of: D, P, T.
AddressaddresstextRequired
Address.
Location namelocation_nametext
Location name.
Durationdurationnumber
Duration.
Notesnotestext
Notes.
Time windowstime_windowslist
Time windows.

Outputs

dataobject
The response from OptimoRoute.
Example output
{
  "data": {
    "id": "example",
    "success": false
  }
}

Delete order

Delete order.

Inputs

Order noorder_notextRequired
Order no.

Outputs

dataobject
The response from OptimoRoute.
Example output
{
  "data": {
    "success": false
  }
}

Get dispatch status

Get dispatch status.

Inputs

Datedatedate
Date.
Include route changesinclude_route_changestrue/false
Include route changes.

Outputs

dataobject
The response from OptimoRoute.
Example output
{
  "data": {
    "date": "example",
    "live": false,
    "routes": {
      "state": "example"
    },
    "success": false
  }
}

Get mobile events

Get mobile events.

Inputs

After tagafter_tagtext
After tag.

Outputs

dataobject
The response from OptimoRoute.
Example output
{
  "data": {
    "events": [],
    "remainingEvents": 1,
    "success": false,
    "tag": "example"
  }
}

Get order scheduling information

Get order scheduling information.

Inputs

Order noorder_notext
Order no.
Ididtext
Id.

Outputs

dataobject
The response from OptimoRoute.
Example output
{
  "data": {
    "orderScheduled": false,
    "scheduleInformation": {
      "driverExternalId": "example",
      "driverSerial": "example"
    },
    "success": false
  }
}

Get planning status

Get planning status.

Inputs

Planning IDplanning_idnumberRequired
Planning ID.

Outputs

dataobject
The response from OptimoRoute.
Example output
{
  "data": {
    "success": false
  }
}

Get routes for a date

Get routes for a date.

Inputs

DatedatedateRequired
Date.
Driver external IDdriver_external_idtext
Driver external ID.
Driver serialdriver_serialtext
Driver serial.
Vehicle registrationvehicle_registrationtext
Vehicle registration.
Include route polylineinclude_route_polylinetrue/false
Include route polyline.
Include route start endinclude_route_start_endtrue/false
Include route start end.
Include dispatch statusinclude_dispatch_statustrue/false
Include dispatch status.

Outputs

dataobject
The response from OptimoRoute.
Example output
{
  "data": {
    "routes": [],
    "success": false
  }
}

Merge fields into order

Merge fields into order.

Inputs

Order noorder_notextRequired
Order no.
DatedatedateRequired
Date.
TypetypetextRequired
Type.One of: D, P, T.
AddressaddresstextRequired
Address.
Location namelocation_nametext
Location name.
Durationdurationnumber
Duration.
Notesnotestext
Notes.

Outputs

dataobject
The response from OptimoRoute.
Example output
{
  "data": {
    "id": "example",
    "success": false
  }
}

Search orders

Search orders.

Inputs

Ordersorderslist
Orders.
Start datestart_datedate
Start date.
End dateend_datedate
End date.
Order statusorder_statuslist
Order status.One or more of: unscheduled, scheduled, on_route (On route), servicing, success, failed, rejected, cancelled.
Include order datainclude_order_datatrue/false
Include order data.
Include schedule informationinclude_schedule_informationtrue/false
Include schedule information.
After tagafter_tagtext
After tag.

Outputs

dataobject
The response from OptimoRoute.
Example output
{
  "data": {
    "after_tag": "example",
    "orders": [],
    "success": false
  }
}

Stop route planning

Stop route planning.

Inputs

Planning IDplanning_idnumberRequired
Planning ID.

Outputs

dataobject
The response from OptimoRoute.
Example output
{
  "data": {
    "success": false
  }
}

On this page