Optimisation deleted lite

Token in body

{
    "token": "txkINFbMAAk6uHwL-qHLkA",
    "topic": "optimisation.deleted.lite",
    "updated_at": "2021-07-29T16:47:01.428972+10:00",
    "optimisation_info": {
        "id": 6758,
        "type": "ADVANCED",
        "day": "2023-07-14",
        "cost": null,
        "merchant": 59,
        "options": {
            "end_hub": 314,
            "end_place": "hub_location",
            "start_hub": 315,
            "start_place": "hub_location",
            "service_time": 5,
            "working_hours": {
                "lower": "08:00",
                "upper": "17:00"
            },
            "pickup_service_time": 5,
            "re_optimise_assigned": false,
            "use_vehicle_capacity": false
        },
        "routes": [
            {
                "id": 9589,
                "driver": {
                    "member_id": 98113174,
                    "full_name": "Tony Stark",
                    "car": {
                        "car_type": 2,
                        "car_type_name": "Ute",
                        "capacity": 20
                    },
                    "is_online": false,
                    "work_status": "not_working",
                    "phone": "+61255505718",
                    "thumb_avatar_100x100": "https://radaro-api-staging.s3.us-west-2.amazonaws.com:443/media/thumbnails/Member/29d9632b-5b0b-40e9-8e65-43d47d1cd5ff_100x100.jpg",
                    "status": "pickup",
                    "last_location": {
                        "location": "-37.877287,145.126548"
                    }
                },
                "options": {},
                "total_time": 2267,
                "driving_time": 1967,
                "driving_distance": 16349,
                "start_time": "2023-07-14T17:20:00+10:00",
                "end_time": "2023-07-14T17:57:47+10:00",
                "orders_count": 1,
                "cost": null,
                "points": [
                    {
                        "id": 146055,
                        "number": 1,
                        "point_kind": "hub",
                        "service_time": 0,
                        "driving_time": 0,
                        "distance": 0,
                        "start_time": "2023-07-14T17:20:00+10:00",
                        "end_time": "2023-07-14T17:20:00+10:00",
                        "planned_arrival_after": "2023-07-14T16:30:00+10:00",
                        "planned_arrival_before": "2023-07-14T18:30:00+10:00",
                        "planned_arrival": "2023-07-14T17:20:00+10:00",
                        "utilized_capacity": 5.0,
                        "utilized_capacities": {
                            "capacity": 5.0,
                            "capacity_2": 5.0,
                            "capacity_3": null
                        }
                    },
                    {
                        "id": 146056,
                        "number": 2,
                        "point_kind": "delivery",
                        "service_time": 300,
                        "driving_time": 1042,
                        "distance": 7165,
                        "start_time": "2023-07-14T17:37:22+10:00",
                        "end_time": "2023-07-14T17:42:22+10:00",
                        "planned_arrival_after": "2023-07-14T16:45:00+10:00",
                        "planned_arrival_before": "2023-07-14T18:45:00+10:00",
                        "planned_arrival": "2023-07-14T17:37:22+10:00",
                        "utilized_capacity": 5.0,
                        "utilized_capacities": {
                            "capacity": 5.0,
                            "capacity_2": 5.0,
                            "capacity_3": null
                        }
                    },
                    {
                        "id": 146057,
                        "number": 3,
                        "point_kind": "hub",
                        "service_time": 0,
                        "driving_time": 925,
                        "distance": 9184,
                        "start_time": "2023-07-14T17:57:47+10:00",
                        "end_time": "2023-07-14T17:57:47+10:00",
                        "planned_arrival_after": "2023-07-14T17:15:00+10:00",
                        "planned_arrival_before": "2023-07-14T19:15:00+10:00",
                        "planned_arrival": "2023-07-14T17:57:47+10:00",
                        "utilized_capacity": 5.0,
                        "utilized_capacities": {
                            "capacity": 5.0,
                            "capacity_2": 5.0,
                            "capacity_3": null
                        }
                    }
                ],
                "color": "#40BF40",
                "state": "FINISHED",
                "approved": true,
                "max_utilized_capacity": 5.0,
                "max_utilized_capacities": {
                    "capacity": 5.0,
                    "capacity_2": 5.0,
                    "capacity_3": null
                }
            },
            {
                "id": 9590,
                "driver": {
                    "member_id": 74105989,
                    "full_name": "Peter Parker",
                    "car": {
                        "car_type": 1,
                        "car_type_name": "Car",
                        "capacity": 20
                    },
                    "is_online": false,
                    "work_status": "not_working",
                    "phone": "+61255507987",
                    "thumb_avatar_100x100": "https://radaro-api-staging.s3.us-west-2.amazonaws.com:443/media/thumbnails/Member/902df330-22bc-4437-afc3-32849d8a6347_100x100.jpg",
                    "status": "picked_up",
                    "last_location": {
                        "location": "-37.877287,145.126548"
                    }
                },
                "options": {},
                "total_time": 5031,
                "driving_time": 3831,
                "driving_distance": 29429,
                "start_time": "2023-07-14T16:00:00+10:00",
                "end_time": "2023-07-14T17:23:51+10:00",
                "orders_count": 4,
                "cost": null,
                "points": [
                    {
                        "id": 146058,
                        "number": 1,
                        "point_kind": "hub",
                        "service_time": 0,
                        "driving_time": 0,
                        "distance": 0,
                        "start_time": "2023-07-14T16:00:00+10:00",
                        "end_time": "2023-07-14T16:00:00+10:00",
                        "planned_arrival_after": "2023-07-14T15:15:00+10:00",
                        "planned_arrival_before": "2023-07-14T17:15:00+10:00",
                        "planned_arrival": "2023-07-14T16:00:00+10:00",
                        "utilized_capacity": 5.0,
                        "utilized_capacities": {
                            "capacity": 5.0,
                            "capacity_2": 5.0,
                            "capacity_3": null
                        }
                    },
                    {
                        "id": 146059,
                        "number": 2,
                        "point_kind": "delivery",
                        "service_time": 300,
                        "driving_time": 1295,
                        "distance": 10387,
                        "start_time": "2023-07-14T16:21:35+10:00",
                        "end_time": "2023-07-14T16:26:35+10:00",
                        "planned_arrival_after": "2023-07-14T15:30:00+10:00",
                        "planned_arrival_before": "2023-07-14T17:30:00+10:00",
                        "planned_arrival": "2023-07-14T16:21:35+10:00",
                        "utilized_capacity": 5.0,
                        "utilized_capacities": {
                            "capacity": 5.0,
                            "capacity_2": 5.0,
                            "capacity_3": null
                        }
                    },
                    {
                        "id": 146060,
                        "number": 3,
                        "point_kind": "delivery",
                        "service_time": 300,
                        "driving_time": 557,
                        "distance": 3132,
                        "start_time": "2023-07-14T16:35:52+10:00",
                        "end_time": "2023-07-14T16:40:52+10:00",
                        "planned_arrival_after": "2023-07-14T15:45:00+10:00",
                        "planned_arrival_before": "2023-07-14T17:45:00+10:00",
                        "planned_arrival": "2023-07-14T16:35:52+10:00",
                        "utilized_capacity": 5.0,
                        "utilized_capacities": {
                            "capacity": 5.0,
                            "capacity_2": 5.0,
                            "capacity_3": null
                        }
                    },
                    {
                        "id": 146061,
                        "number": 4,
                        "point_kind": "delivery",
                        "service_time": 300,
                        "driving_time": 669,
                        "distance": 4186,
                        "start_time": "2023-07-14T16:52:01+10:00",
                        "end_time": "2023-07-14T16:57:01+10:00",
                        "planned_arrival_after": "2023-07-14T16:00:00+10:00",
                        "planned_arrival_before": "2023-07-14T18:00:00+10:00",
                        "planned_arrival": "2023-07-14T16:52:01+10:00",
                        "utilized_capacity": 5.0,
                        "utilized_capacities": {
                            "capacity": 5.0,
                            "capacity_2": 5.0,
                            "capacity_3": null
                        }
                    },
                    {
                        "id": 146062,
                        "number": 5,
                        "point_kind": "delivery",
                        "service_time": 300,
                        "driving_time": 643,
                        "distance": 4874,
                        "start_time": "2023-07-14T17:07:44+10:00",
                        "end_time": "2023-07-14T17:12:44+10:00",
                        "planned_arrival_after": "2023-07-14T16:15:00+10:00",
                        "planned_arrival_before": "2023-07-14T18:15:00+10:00",
                        "planned_arrival": "2023-07-14T17:07:44+10:00",
                        "utilized_capacity": 5.0,
                        "utilized_capacities": {
                            "capacity": 5.0,
                            "capacity_2": 5.0,
                            "capacity_3": null
                        }
                    },
                    {
                        "id": 146063,
                        "number": 6,
                        "point_kind": "hub",
                        "service_time": 0,
                        "driving_time": 667,
                        "distance": 6850,
                        "start_time": "2023-07-14T17:23:51+10:00",
                        "end_time": "2023-07-14T17:23:51+10:00",
                        "planned_arrival_after": "2023-07-14T16:30:00+10:00",
                        "planned_arrival_before": "2023-07-14T18:30:00+10:00",
                        "planned_arrival": "2023-07-14T17:23:51+10:00",
                        "utilized_capacity": 5.0,
                        "utilized_capacities": {
                            "capacity": 5.0,
                            "capacity_2": 5.0,
                            "capacity_3": null
                        }
                    }
                ],
                "color": "#40BF8A",
                "state": "FINISHED",
                "approved": true,
                "max_utilized_capacity": 5.0,
                "max_utilized_capacities": {
                    "capacity": 5.0,
                    "capacity_2": 5.0,
                    "capacity_3": null
                }
            }
        ],
        "state": "FINISHED",
        "task_status": "completed",
        "group": null,
        "customers_notified": false,
        "log": {
            "messages": [
                {
                    "text": "Optimisation started",
                    "time": "2023-07-10T18:22:25.136642+10:00"
                },
                {
                    "text": "1 new job was assigned to Tony Stark during the Optimisation",
                    "time": "2023-07-10T18:23:06.882094+10:00"
                },
                {
                    "text": "4 new jobs were assigned to Peter Parker during the Optimisation",
                    "time": "2023-07-10T18:23:07.056738+10:00"
                }
            ],
            "progress": 100,
            "steps": [
                {
                    "name": "Composing the distance matrix",
                    "completed": true
                },
                {
                    "name": "Looking for the optimum routes",
                    "completed": true
                },
                {
                    "name": "Assigning jobs between the drivers",
                    "completed": true
                }
            ]
        }
    }
}

Token in headers

{
    "Authorization": "Token MlfqEdN60b9fLOHEPdPGUQ",
}

Body

{
    "topic": "optimisation.deleted.lite",
    "updated_at": "2021-07-29T16:47:01.428972+10:00",
    "optimisation_info": {
        "id": 6758,
        "type": "ADVANCED",
        "day": "2023-07-14",
        "cost": 5.0,
        "merchant": 59,
        "options": {
            "end_hub": 314,
            "end_place": "hub_location",
            "start_hub": 315,
            "start_place": "hub_location",
            "service_time": 5,
            "working_hours": {
                "lower": "08:00",
                "upper": "17:00"
            },
            "pickup_service_time": 5,
            "re_optimise_assigned": false,
            "use_vehicle_capacity": false
        },
        "routes": [
            {
                "id": 9589,
                "driver": {
                    "member_id": 98113174,
                    "full_name": "Tony Stark",
                    "car": {
                        "car_type": 2,
                        "car_type_name": "Ute",
                        "capacity": 20
                    },
                    "is_online": false,
                    "work_status": "not_working",
                    "phone": "+61255505718",
                    "thumb_avatar_100x100": "https://radaro-api-staging.s3.us-west-2.amazonaws.com:443/media/thumbnails/Member/29d9632b-5b0b-40e9-8e65-43d47d1cd5ff_100x100.jpg",
                    "status": "pickup",
                    "last_location": {
                        "location": "-37.877287,145.126548"
                    }
                },
                "options": {},
                "total_time": 2267,
                "driving_time": 1967,
                "driving_distance": 16349,
                "start_time": "2023-07-14T17:20:00+10:00",
                "end_time": "2023-07-14T17:57:47+10:00",
                "orders_count": 1,
                "cost": 2.0,
                "points": [
                    {
                        "id": 146055,
                        "number": 1,
                        "point_kind": "hub",
                        "service_time": 0,
                        "driving_time": 0,
                        "distance": 0,
                        "start_time": "2023-07-14T17:20:00+10:00",
                        "end_time": "2023-07-14T17:20:00+10:00",
                        "planned_arrival_after": "2023-07-14T16:30:00+10:00",
                        "planned_arrival_before": "2023-07-14T18:30:00+10:00",
                        "planned_arrival": "2023-07-14T17:20:00+10:00",
                        "utilized_capacity": 5.0,
                        "utilized_capacities": {
                            "capacity": 5.0,
                            "capacity_2": 5.0,
                            "capacity_3": null
                        }
                    },
                    {
                        "id": 146056,
                        "number": 2,
                        "point_kind": "delivery",
                        "service_time": 300,
                        "driving_time": 1042,
                        "distance": 7165,
                        "start_time": "2023-07-14T17:37:22+10:00",
                        "end_time": "2023-07-14T17:42:22+10:00",
                        "planned_arrival_after": "2023-07-14T16:45:00+10:00",
                        "planned_arrival_before": "2023-07-14T18:45:00+10:00",
                        "planned_arrival": "2023-07-14T17:37:22+10:00",
                        "utilized_capacity": 5.0,
                        "utilized_capacities": {
                            "capacity": 0,
                            "capacity_2": 0,
                            "capacity_3": null
                        }
                    },
                    {
                        "id": 146057,
                        "number": 3,
                        "point_kind": "hub",
                        "service_time": 0,
                        "driving_time": 925,
                        "distance": 9184,
                        "start_time": "2023-07-14T17:57:47+10:00",
                        "end_time": "2023-07-14T17:57:47+10:00",
                        "planned_arrival_after": "2023-07-14T17:15:00+10:00",
                        "planned_arrival_before": "2023-07-14T19:15:00+10:00",
                        "planned_arrival": "2023-07-14T17:57:47+10:00",
                        "utilized_capacity": 5.0,
                        "utilized_capacities": {
                            "capacity": 0,
                            "capacity_2": 0,
                            "capacity_3": null
                        }
                    }
                ],
                "color": "#40BF40",
                "state": "FINISHED",
                "approved": true,
                "max_utilized_capacity": 5.0,
                "max_utilized_capacities": {
                    "capacity": 5.0,
                    "capacity_2": 5.0,
                    "capacity_3": null
                }
            },
            {
                "id": 9590,
                "driver": {
                    "member_id": 74105989,
                    "full_name": "Peter Parker",
                    "car": {
                        "car_type": 1,
                        "car_type_name": "Car",
                        "capacity": 20
                    },
                    "is_online": false,
                    "work_status": "not_working",
                    "phone": "+61255507987",
                    "thumb_avatar_100x100": "https://radaro-api-staging.s3.us-west-2.amazonaws.com:443/media/thumbnails/Member/902df330-22bc-4437-afc3-32849d8a6347_100x100.jpg",
                    "status": "picked_up",
                    "last_location": {
                        "location": "-37.877287,145.126548"
                    }
                },
                "options": {},
                "total_time": 5031,
                "driving_time": 3831,
                "driving_distance": 29429,
                "start_time": "2023-07-14T16:00:00+10:00",
                "end_time": "2023-07-14T17:23:51+10:00",
                "orders_count": 4,
                "cost": 3.0,
                "points": [
                    {
                        "id": 146058,
                        "number": 1,
                        "point_kind": "hub",
                        "service_time": 0,
                        "driving_time": 0,
                        "distance": 0,
                        "start_time": "2023-07-14T16:00:00+10:00",
                        "end_time": "2023-07-14T16:00:00+10:00",
                        "planned_arrival_after": "2023-07-14T15:15:00+10:00",
                        "planned_arrival_before": "2023-07-14T17:15:00+10:00",
                        "planned_arrival": "2023-07-14T16:00:00+10:00",
                        "utilized_capacity": 5.0,
                        "utilized_capacities": {
                            "capacity": 5.0,
                            "capacity_2": 5.0,
                            "capacity_3": null
                        }
                    },
                    {
                        "id": 146059,
                        "number": 2,
                        "point_kind": "delivery",
                        "service_time": 300,
                        "driving_time": 1295,
                        "distance": 10387,
                        "start_time": "2023-07-14T16:21:35+10:00",
                        "end_time": "2023-07-14T16:26:35+10:00",
                        "planned_arrival_after": "2023-07-14T15:30:00+10:00",
                        "planned_arrival_before": "2023-07-14T17:30:00+10:00",
                        "planned_arrival": "2023-07-14T16:21:35+10:00",
                        "utilized_capacity": 5.0,
                        "utilized_capacities": {
                            "capacity": 5.0,
                            "capacity_2": 5.0,
                            "capacity_3": null
                        }
                    },
                    {
                        "id": 146060,
                        "number": 3,
                        "point_kind": "delivery",
                        "service_time": 300,
                        "driving_time": 557,
                        "distance": 3132,
                        "start_time": "2023-07-14T16:35:52+10:00",
                        "end_time": "2023-07-14T16:40:52+10:00",
                        "planned_arrival_after": "2023-07-14T15:45:00+10:00",
                        "planned_arrival_before": "2023-07-14T17:45:00+10:00",
                        "planned_arrival": "2023-07-14T16:35:52+10:00",
                        "utilized_capacity": 5.0,
                        "utilized_capacities": {
                            "capacity": 5.0,
                            "capacity_2": 5.0,
                            "capacity_3": null
                        }
                    },
                    {
                        "id": 146061,
                        "number": 4,
                        "point_kind": "delivery",
                        "service_time": 300,
                        "driving_time": 669,
                        "distance": 4186,
                        "start_time": "2023-07-14T16:52:01+10:00",
                        "end_time": "2023-07-14T16:57:01+10:00",
                        "planned_arrival_after": "2023-07-14T16:00:00+10:00",
                        "planned_arrival_before": "2023-07-14T18:00:00+10:00",
                        "planned_arrival": "2023-07-14T16:52:01+10:00",
                        "utilized_capacity": 5.0,
                        "utilized_capacities": {
                            "capacity": 5.0,
                            "capacity_2": 5.0,
                            "capacity_3": null
                        }
                    },
                    {
                        "id": 146062,
                        "number": 5,
                        "point_kind": "delivery",
                        "service_time": 300,
                        "driving_time": 643,
                        "distance": 4874,
                        "start_time": "2023-07-14T17:07:44+10:00",
                        "end_time": "2023-07-14T17:12:44+10:00",
                        "planned_arrival_after": "2023-07-14T16:15:00+10:00",
                        "planned_arrival_before": "2023-07-14T18:15:00+10:00",
                        "planned_arrival": "2023-07-14T17:07:44+10:00",
                        "utilized_capacity": 5.0,
                        "utilized_capacities": {
                            "capacity": 0,
                            "capacity_2": 0,
                            "capacity_3": null
                        }
                    },
                    {
                        "id": 146063,
                        "number": 6,
                        "point_kind": "hub",
                        "service_time": 0,
                        "driving_time": 667,
                        "distance": 6850,
                        "start_time": "2023-07-14T17:23:51+10:00",
                        "end_time": "2023-07-14T17:23:51+10:00",
                        "planned_arrival_after": "2023-07-14T16:30:00+10:00",
                        "planned_arrival_before": "2023-07-14T18:30:00+10:00",
                        "planned_arrival": "2023-07-14T17:23:51+10:00",
                        "utilized_capacity": 5.0,
                        "utilized_capacities": {
                            "capacity": 0,
                            "capacity_2": 0,
                            "capacity_3": null
                        }
                    }
                ],
                "color": "#40BF8A",
                "state": "FINISHED",
                "approved": true,
                "max_utilized_capacity": 5.0,
                "max_utilized_capacities": {
                    "capacity": 5.0,
                    "capacity_2": 5.0,
                    "capacity_3": null
                }
            }
        ],
        "state": "FINISHED",
        "task_status": "completed",
        "group": null,
        "customers_notified": false,
        "log": {
            "messages": [
                {
                    "text": "Optimisation started",
                    "time": "2023-07-10T18:22:25.136642+10:00"
                },
                {
                    "text": "1 new job was assigned to Tony Stark during the Optimisation",
                    "time": "2023-07-10T18:23:06.882094+10:00"
                },
                {
                    "text": "4 new jobs were assigned to Peter Parker during the Optimisation",
                    "time": "2023-07-10T18:23:07.056738+10:00"
                }
            ],
            "progress": 100,
            "steps": [
                {
                    "name": "Composing the distance matrix",
                    "completed": true
                },
                {
                    "name": "Looking for the optimum routes",
                    "completed": true
                },
                {
                    "name": "Assigning jobs between the drivers",
                    "completed": true
                }
            ]
        }
    }
}