curl --location --request POST '/api/v1.0/optimization' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"configuration": {
"objective": "minimize_cost"
},
"locations": [
{
"id": "warehouse_intirub_halim",
"lat": -6.2536,
"lon": 106.8842,
"type": "WAREHOUSE",
"operational_hours": [
{
"start": "2025-09-14T07:00:00+07:00",
"end": "2025-09-14T12:00:00+07:00"
}
],
"timezone": "Asia/Jakarta"
}
],
"vehicles": [
{
"id": "van_001",
"start_location_id": "warehouse_intirub_halim",
"end_location_id": "warehouse_intirub_halim",
"capacities": {
"weight": 300000
},
"available_time_windows": [
{
"start": "2025-09-14T08:00:00+07:00",
"end": "2025-09-14T17:00:00+07:00"
}
],
"fixed_cost": 200,
"cost_per_distance": 2.5,
"cost_per_time": 0.5,
"skills": [
"refrigerated",
"hazmat_certified"
]
}
],
"jobs": [
{
"id": "pickup_wh_intirub_halim",
"type": "DELIVERY",
"location_id": "warehouse_intirub_halim",
"demands": {
"weight": 120000,
"volume": 2.5,
"pallets": 4
},
"time_window": {
"start": "2025-09-14T12:00:00+07:00",
"end": "2025-09-14T16:00:00+07:00"
},
"service_time": 60,
"required_skills": [
"refrigerated"
],
"priority": 1,
"predecessor_job_ids": [
"job_123"
]
}
]
}'