Chuyển đến nội dung chính
Mục lục tài liệu
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.

Mở trong ChatGPTMở trong Claude

Đường dẫn

GET/api/v1/partners/addons/route-optimization/jobs/plan-counts
Xác thực yêu cầuapi-key

Ví dụ gọi bằng curl

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

Tham số

TênVị tríKiểuBắt buộcMô tả
portal_idqueryintegerKhôngA workspace: only this portal of the key's client
date_fromquerystringCóFirst date (YYYY-MM-DD)
date_toquerystringCóLast date (YYYY-MM-DD), at most 62 days after date_from

Nội dung gửi lên

Endpoint này không nhận nội dung gửi lên.

Kết quả trả về

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

Về nhóm: Tối ưu tuyến đường

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