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.
Đường dẫn
GET
/api/v1/partners/addons/route-optimization/usageXác thực yêu cầu
api-keyVí 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ên | Vị trí | Kiểu | Bắt buộc | Mô tả |
|---|---|---|---|---|
| from | query | string | Không | First month of the range (YYYY-MM, Asia/Ho_Chi_Minh), inclusive; defaults to `to` |
| to | query | string | Không | Last month of the range (YYYY-MM, Asia/Ho_Chi_Minh), inclusive; defaults to the current month. The range may span at most 12 months |
| environment | query | sandbox | production | measurement | Không | Only 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 data400ROUTE_OPT_USAGE_RANGE_INVALID (from after to, or more than 12 months) or a validation error on the month format or environment401ROUTE_OPT_API_KEY_REQUIRED403ROUTE_OPT_NOT_ENABLED