Start optimization job
POST /optimization/start
Start an optimization job processing
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Unique identifier for this optimization job
URL to receive optimization status updates and results
Start date for the optimization window
Maximum time in seconds the optimizer can run
Interval in milliseconds for writing intermediate solutions
Number of threads for parallel processing
List of orders to be optimized
object
Unique identifier for the order
ID of the delivery destination
Delivery destination details
object
object
Latitude coordinate
Longitude coordinate
Line items for the order
object
ID of the product
Quantity to deliver
Start of the delivery time window
End of the delivery time window
ID of the pickup/terminal location
ID of the assigned driver shift (for pinned orders)
Whether this order is pinned to a specific driver
Priority label for the order
Priority value (string or number)
Task priority value
Whether this is a priority order
Cost penalty if this order is not assigned
Location reference
object
Location ID
List of driver shifts available for routing
object
Unique identifier for the shift
ID of the vehicle assigned to this shift
Shift start time
Shift end time
Starting location for the shift
object
Location ID
Latitude coordinate
Longitude coordinate
Ending location for the shift
object
Location ID
Latitude coordinate
Longitude coordinate
Driver/resource assigned to this shift
object
Resource ID
Vehicle details
object
Vehicle tank configuration
object
List of tanks on the vehicle
object
Tank capacity
Date of the scheduled shift
Timezone for the shift (e.g., America/New_York)
List of depot/terminal locations
object
Unique identifier for the depot
Name of the depot/terminal
Depot location coordinates
object
Location ID
Latitude coordinate
Longitude coordinate
Products available at this terminal
object
ID of the product
Product allocation limits
object
Allocation period
Allocation amount
Allocation percentage
Product pricing at this terminal
object
Price per unit
Pre-defined route legs with travel times to include in optimization
object
ID of the starting location
ID of the ending location
Travel time in minutes between locations
Matrix defining penalties for resource-location combinations
object
ID of the resource/driver
ID of the location
Penalty configuration
object
Penalty value for this resource-location pair
Whether to preserve existing driver-order assignments
Flow rate for pickup operations (gallons per minute)
Flow rate for delivery operations (gallons per minute)
Whether to use the closest terminal for pickups
Whether to allow pickups when vehicle is empty
Cost per unit of distance traveled
Cost per unit of time spent
Cost for adding an additional driver
Cost penalty per unit of driver overtime
Cost penalty for imbalanced workloads across drivers
Maximum allowed unallocated quantity
Cost penalty per unit of unallocated orders
Cost for unassigned high-priority orders
Cost for unassigned medium-priority orders
Cost for unassigned low-priority orders
Penalty for unused vehicle capacity
Penalty for each reload/refill trip
Whether to enforce product compatibility constraints
Whether to balance deliveries across the schedule
Responses
Section titled “ Responses ”Optimization job started