Skip to main content
Docs menu
GET

/addons/route-optimization/jobs/plan-counts

Finished plans per planning date, for a week strip

One row per date from date_from to date_to, 0 included: how many SUCCEEDED or PARTIAL jobs that are not hidden plan that date, optionally for one portal (a workspace). Every plan counts, whatever its origin.

Path

GET/api/v1/partners/addons/route-optimization/jobs/plan-counts
Authentication requiredapi-key

curl example

curl -X GET "https://api.route4green.com/api/v1/partners/addons/route-optimization/jobs/plan-counts" \
  -H "api-key: YOUR_API_KEY"

Parameters

NameInTypeRequiredDescription
portal_idqueryintegerNoA workspace: only this portal of the key's client
date_fromquerystringYesFirst date (YYYY-MM-DD)
date_toquerystringYesLast date (YYYY-MM-DD), at most 62 days after date_from

Request body

This endpoint takes no request body.

Responses

200data.items: [{ date: "YYYY-MM-DD", plan_count }], wrapped in the success envelope
400ROUTE_OPT_VALIDATION_ERROR: a date that is not YYYY-MM-DD, or a range that is backwards or longer than 62 days

Back to group: Route optimisation

GET /addons/route-optimization/jobs/plan-counts | Route4Green