Skip to content

Route Optimisation V3

Available either by Single-Key and Multi-Key.

Added new point_type: ‘concatenatedorder’.

Added new fields for points of the order type (manager, title, comment, updated_at, created_at, driver, merchant, description, sub_branding, labels, skill_sets, capacity and others).

List Optimisations

Request

Security
key
Query
day_afterstring, (date)

If set, returns optimisations with date greater than or equal to the passed value. Example: "2020-01-12". (ISO-8601). (ISO-8601)

day_beforestring, (date)

If set, returns optimisations with date less than or equal to the passed value. Example: "2020-01-13". (ISO-8601). (ISO-8601)

Bodyapplication/json
idinteger, (int32)
typestring
daystring, (date)

Date in ISO-8601 YYYY-MM-DD.

merchantinteger, (int32)
optionsobject(route_optimisation_options_v3)
task_statusstring

Possible values are created, in_progress, completed. Here task means background task that performs optimisation. You should wait for status completed to work with optimisation results.

routesArray of objects
statestring

State of this optimisation. Possible values are CREATED, VALIDATION, OPTIMISING, COMPLETED, RUNNING, FINISHED, FAILED. Status COMPLETED means that optimisation process has successfully completed, driver routes has created. FINISHED - when drivers completes all optimised jobs. FAILED - in case of some failure.

groupstring
customers_notifiedboolean
logobject
curl -i -X GET \
  'https://developer.radaro.com.au/_mock/split-external-api/api/webhooks/ro/optimisation/v3/?day_after=2019-08-24&day_before=2019-08-24&key=YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": 0,
    "type": "string",
    "day": "2019-08-24",
    "merchant": 0,
    "options": {
      "order_ids": [
        0
      ],
      "external_ids": [
        "string"
      ],
      "member_ids": [
        0
      ],
      "working_hours": {
        "lower": "string",
        "upper": "string"
      },
      "service_time": 0,
      "pickup_service_time": 0,
      "start_place": "string",
      "start_hub": 0,
      "end_place": "string",
      "end_hub": 0,
      "re_optimise_assigned": true,
      "use_vehicle_capacity": true,
      "use_all_not_assigned_jobs": true
    },
    "task_status": "string",
    "routes": [
      {
        "id": 0,
        "driver": 0,
        "total_time": 0,
        "driving_time": 0,
        "driving_distance": 0,
        "start_time": "string",
        "end_time": "string",
        "orders_count": "string",
        "points": [
          {
            "id": 0,
            "number": 0,
            "point_type": "string",
            "point_kind": "string",
            "point_object_id": 0,
            "point_object": {},
            "service_time": 0,
            "driving_time": 0,
            "distance": 0,
            "start_time": "string",
            "end_time": "string",
            "planned_arrival_after": "string",
            "planned_arrival_before": "string",
            "path_polyline": "string"
          }
        ],
        "color": "string"
      }
    ],
    "state": "string",
    "group": "string",
    "customers_notified": true,
    "log": {
      "messages": [
        {
          "text": "string",
          "time": "string"
        }
      ],
      "percent": 0,
      "steps": [
        {
          "name": "string",
          "completed": true
        }
      ]
    }
  }'

Responses

200

Bodyapplication/json
Array [
idinteger
Default:0
Example:1754
daystring
Example:"2021-07-30"
merchantinteger
Default:0
Example:180
logobject
typestring
Example:"ADVANCED"
groupstring
Example:"scheduled"
statestring
Example:"COMPLETED"
routesArray of objects(route_v3)
optionsobject
task_statusstring
Example:"completed"
customers_notifiedboolean
Default:true
Example:false
]
Response
[ { "id": 1754, "day": "2021-07-30", "merchant": 180, "log": { … }, "type": "ADVANCED", "group": "scheduled", "state": "COMPLETED", "routes": [ … ], "options": { … }, "task_status": "completed", "customers_notified": false }, { "id": 36, "type": "SOLO", "day": "2020-11-07", "merchant": 181, "task_status": "completed", "routes": [], "state": "FAILED", "group": "failed", "customers_notified": false, "log": { … } } ]