跳到主要内容
开发者文档API 参考车辆

列出车辆

所有可通过 vehicle_id 引用的车辆:先列出预设车辆(您组织可用类型的集装箱、挂车、卡车和托盘),再列出您组织自己的车辆。

GEThttps://runner.cargoduo.com/v1/vehicles

免费,不扣积分。

认证

Bearer API 密钥 · 所需权限范围resources:read了解更多

查询参数

名称类型必填说明
limitinteger
integer
否

每页条数。

默认值 201–100
cursorstring
string
否

上一页返回的 next_cursor。

kindstring
string
否

仅返回预设车辆(preset),或仅返回您自己的车辆(custom)。

presetcustom
typestring
string
否

仅返回该类型的车辆。

trucktrailerflatbedcontainerpalletaircraftship
qstring
string
否

仅返回名称包含此文本的车辆。

created_bystring
string
否

仅返回该成员创建的记录:me(密钥的创建者)或成员 ID(usr_…)。

请求示例

curl -X GET "https://runner.cargoduo.com/v1/vehicles?type=trailer" \
  -H "Authorization: Bearer $CARGODUO_API_KEY"

响应示例

200 OK · SavedVehicleList
{
  "data": [
    {
      "id": "standard-trailer-13-6m",
      "object": "vehicle",
      "kind": "preset",
      "name": "Standard Trailer (13.6m)",
      "type": "trailer",
      "length": 1362,
      "width": 248,
      "height": 270,
      "max_weight": 24000,
      "floor_load_capacity": 1800,
      "axle_positions": [
        30,
        938,
        1069,
        1200
      ],
      "axle_max_loads": [
        10000,
        8000,
        8000,
        8000
      ],
      "cog_range_x": 50,
      "cog_range_y": 20,
      "aux_deck": false,
      "aux_deck_height": null,
      "aux_deck_max_weight": null,
      "tractor_weight": null,
      "empty_trailer_weight": null,
      "front_axle_to_middle_axle": null,
      "front_axle_to_tractor_cog": null,
      "front_axle_to_kingpin": null,
      "kingpin_to_rear_axle": null,
      "trailer_cog_to_rear_axle": null,
      "trailer_start_to_kingpin": null,
      "max_middle_axle_weight": null,
      "max_rear_axle_weight": null,
      "blocked_areas": [],
      "created_by": null,
      "updated_by": null,
      "created_at": null
    },
    {
      "id": "veh_118",
      "object": "vehicle",
      "kind": "custom",
      "name": "Mega trailer 13.6 m",
      "type": "trailer",
      "length": 1360,
      "width": 248,
      "height": 300,
      "max_weight": 24000,
      "floor_load_capacity": null,
      "axle_positions": [],
      "axle_max_loads": [],
      "cog_range_x": null,
      "cog_range_y": null,
      "aux_deck": false,
      "aux_deck_height": null,
      "aux_deck_max_weight": null,
      "tractor_weight": null,
      "empty_trailer_weight": null,
      "front_axle_to_middle_axle": null,
      "front_axle_to_tractor_cog": null,
      "front_axle_to_kingpin": null,
      "kingpin_to_rear_axle": null,
      "trailer_cog_to_rear_axle": null,
      "trailer_start_to_kingpin": null,
      "max_middle_axle_weight": null,
      "max_rear_axle_weight": null,
      "blocked_areas": [],
      "created_by": {
        "id": "usr_7",
        "name": "Elif Kaya"
      },
      "updated_by": {
        "id": "usr_7",
        "name": "Elif Kaya"
      },
      "created_at": "2026-10-02T08:41:17Z"
    }
  ],
  "next_cursor": ""
}

已节选:仅显示一辆预设车辆和一辆您自己的车辆。

响应

  • 200OK一页车辆。
    名称类型必填说明
    dataSavedVehicle[]
    SavedVehicle[]
    否

    先列出预设车辆,再按创建时间正序列出您自己的车辆。

    next_cursorstring
    string
    否

    作为 ?cursor= 传入以获取下一页;最后一页为空。

  • 401Unauthorizedunauthorizedkey_revokedkey_expired
    • unauthorizedAPI 密钥缺失、格式错误或无法识别。
    • key_revoked密钥已被撤销。
    • key_expired密钥已过期。
    名称类型必填说明
    errorErrorBody必填
    ErrorBody
    是
    全部错误码
  • 403Forbiddenip_not_allowedsubscription_inactiveaccount_inactivescope_missing
    • ip_not_allowed调用方 IP 不在该密钥的 IP 白名单中。
    • subscription_inactive组织没有包含 API 的有效订阅。
    • account_inactive组织已被暂停使用,或其所有者的账户均未处于有效状态。
    • scope_missing密钥缺少此接口所需的权限范围。
    名称类型必填说明
    errorErrorBody必填
    ErrorBody
    是
    全部错误码
  • 422Unprocessable entityvalidation_failed
    • validation_failed请求是格式正确的 JSON,但描述的任务无效。details[] 列出了所有问题。
    名称类型必填说明
    errorErrorBody必填
    ErrorBody
    是
    全部错误码
  • 429Too many requestsrate_limited
    • rate_limited当前分钟、小时或天内的请求过多(按密钥或按组织计),或您的 IP 地址每分钟认证失败超过 60 次。
    名称类型必填说明
    errorErrorBody必填
    ErrorBody
    是
    全部错误码
  • 500Internal server errorinternal_error
    • internal_error服务端发生内部错误。
    名称类型必填说明
    errorErrorBody必填
    ErrorBody
    是
    全部错误码
  • 503Service unavailableapi_disabled
    • api_disabledAPI 暂时停用(维护中),或已对该组织关闭。
    名称类型必填说明
    errorErrorBody必填
    ErrorBody
    是
    全部错误码