Skip to main content
Docs menu
GET

/addons/route-optimization/jobs/{jobId}/input

Get what a job was planned with

The job's orders, vehicles and optimization options, rebuilt from what was stored when it was planned, so a client can show each stop's weight and each vehicle's capacity or submit the day again with a change. Coordinates only: no addresses, names or phones. Vehicle working times and start points are those the engine planned with: when a vehicle was busy in another job, that is its remaining availability. Any status; not a run.

Path

GET/api/v1/partners/addons/route-optimization/jobs/{jobId}/input
Authentication requiredapi-key

curl example

curl -X GET "https://api.route4green.com/api/v1/partners/addons/route-optimization/jobs/{jobId}/input" \
  -H "api-key: YOUR_API_KEY"

Parameters

NameInTypeRequiredDescription
jobIdpathstring (uuid)Yes

Request body

This endpoint takes no request body.

Responses

200The input, wrapped in the success envelope; read it at data
404ROUTE_OPT_JOB_NOT_FOUND
409ROUTE_OPT_INPUT_UNAVAILABLE: the job was never queued (a submission that failed before it was stored)
410RESULT_PURGED: the job data was deleted after the retention period

Back to group: Route optimisation

GET /addons/route-optimization/jobs/{jobId}/input | Route4Green