Security
key
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.
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.
- Mock serverhttps://developer.radaro.com.au/_mock/split-external-api/api/webhooks/ro/optimisation/v2/
- https://api.radaro.com.auhttps://api.radaro.com.au/api/webhooks/ro/optimisation/v2/
curl -i -X GET \
'https://developer.radaro.com.au/_mock/split-external-api/api/webhooks/ro/optimisation/v2/?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
}
]
}
}'200
Array [
]
Response
[ { "id": 48, "type": "ADVANCED", "day": "2020-11-11", "merchant": 180, "task_status": "completed", "routes": [ … ], "state": "COMPLETED", "group": "current", "customers_notified": false, "log": { … } }, { "id": 36, "type": "SOLO", "day": "2020-11-07", "merchant": 181, "task_status": "completed", "routes": [], "state": "FAILED", "group": "failed", "customers_notified": false, "log": { … } } ]