Chuyển đến nội dung chính
Mục lục tài liệu
GET

/addons/route-optimization/usage

Monthly usage of the API-key client

Jobs that ended SUCCEEDED or PARTIAL and their optimised (billable) orders, per Asia/Ho_Chi_Minh month and key environment. Only the client of the API key is ever reported.

Mở trong ChatGPTMở trong Claude

Đường dẫn

GET/api/v1/partners/addons/route-optimization/usage
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/usage" \
  -H "api-key: YOUR_API_KEY"

Tham số

TênVị tríKiểuBắt buộcMô tả
fromquerystringKhôngFirst month of the range (YYYY-MM, Asia/Ho_Chi_Minh), inclusive; defaults to `to`
toquerystringKhôngLast month of the range (YYYY-MM, Asia/Ho_Chi_Minh), inclusive; defaults to the current month. The range may span at most 12 months
environmentquerysandbox | production | measurementKhôngOnly count jobs submitted with keys of this environment

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ề

200Usage summary wrapped in the success envelope; read it at data
400ROUTE_OPT_USAGE_RANGE_INVALID (from after to, or more than 12 months) or a validation error on the month format or environment
401ROUTE_OPT_API_KEY_REQUIRED
403ROUTE_OPT_NOT_ENABLED

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

GET /addons/route-optimization/usage | Route4Green