双清专线运价 API
查询与官网双清专线页同源的报价。按重量获取渠道运费,按体积获取目的国运价和参考总价。清关、税费和派送范围以报价条款为准。
按重量查询(kg)#
按目的国、货物重量和类型查询双清渠道。返回官网对外费用及预计时效。
有结果时扣 3 积分/次。
POST /api/openapi/v1/freight/line/weight/search请求参数#
| 字段 | 类型 | 说明 |
|---|---|---|
| destination_country | string | 必填。两位国家代码,如 US、GB。 |
| weight | number | 必填。货物实重,单位 kg,须大于 0。 |
| cargo_type | int | 可选。0 文件,1 包裹(默认),2 防水袋。 |
curl -X POST https://www.5688.cn/api/openapi/v1/freight/line/weight/search -H "Content-Type: application/json" -H "X-Awice-AppKey: AK_xxxxxxxxxxxxxxxx" -H "X-Awice-Timestamp: 1746086400" -H "X-Awice-Nonce: a1b2c3d4" -H "X-Awice-Signature: YOUR_SIGNATURE" -d '{"destination_country":"US","weight":21.5,"cargo_type":1}'响应字段#
| 字段 | 类型 | 说明 |
|---|---|---|
| resolved | object | 本次解析后的国家代码、重量和货物类型。 |
| list | array | 启用双清专线的官网渠道报价,每条包含下列字段。 |
| channel_name | string | 对外展示的渠道名称。 |
| chargeable_weight | number | 渠道计费重,单位 kg。 |
| unit_price | number | 每公斤参考单价。 |
| freight | number | 基础运费。 |
| fuel_fee | number | 燃油附加费金额。 |
| fuel_rate | string | 燃油费率,可能为空。 |
| surcharge | number | 其他附加费。 |
| total_amount | number | 官网对外报价合计,按返回金额使用。 |
| currency | string | 币种,CNY。 |
| tt | string | 预计时效。 |
| remarks | string | 渠道服务和计价说明。 |
{
"code": 0,
"msg": "success",
"request_id": "req_example",
"data": {
"resolved": {
"destination_country": "US",
"weight": 21.5,
"cargo_type": 1
},
"list": [
{
"channel_name": "美国双清专线(示例)",
"chargeable_weight": 21.5,
"unit_price": 20,
"freight": 400,
"fuel_fee": 30,
"fuel_rate": "7.5%",
"surcharge": 0,
"total_amount": 430,
"currency": "CNY",
"tt": "15–20 天",
"remarks": ""
}
]
},
"credit_used": 3,
"credit_balance": 997
}按体积查询(CBM)#
按目的国分页查询可用运价,每个有结果的页面单独计费。纯数字价格会按最低计费量和申报体积计算参考总价。分段或文字价格保持原文。
有结果时扣 1 积分/次。
POST /api/openapi/v1/freight/line/volume/search请求参数#
| 字段 | 类型 | 说明 |
|---|---|---|
| destination_country | string | 必填。两位国家代码,如 US、GB。 |
| volume | number | 必填。货物体积,单位 CBM(立方米),须大于 0。 |
| service_type | string | 可选。ddu 查不含税报价,ddp 查含税报价,大小写均可。省略或留空可查全部服务。 |
| page | int | 可选。页码,默认 1。 |
| limit | int | 可选。每页条数,默认 20,最多 50。 |
curl -X POST https://www.5688.cn/api/openapi/v1/freight/line/volume/search -H "Content-Type: application/json" -H "X-Awice-AppKey: AK_xxxxxxxxxxxxxxxx" -H "X-Awice-Timestamp: 1746086400" -H "X-Awice-Nonce: a1b2c3d4" -H "X-Awice-Signature: YOUR_SIGNATURE" -d '{"destination_country":"AU","volume":1.2,"service_type":"ddu","page":1,"limit":20}'DDU、DDP 与派送方式#
| service_code | service_type 筛选值 | 说明 |
|---|---|---|
| clearance | ddp | 双清含税派送 |
| nodelivey | ddp | 双清含税不派送 |
| ddu | ddu | 监管仓(DDU) |
| noclearance | ddu | 双清不含税派送 |
| delivery | ddu | 双清不含税含派送 |
| nodelivery | ddu | 双清不含税不派送 |
DDP 表示报价含税,DDU 表示报价不含税。两组都有不派送的服务。监管仓报价的末端派送范围和费用请查看具体报价条款。
响应字段#
| 字段 | 类型 | 说明 |
|---|---|---|
| resolved | object | 本次查询的国家代码和体积。传入服务类型时,service_type 返回小写 ddu 或 ddp。 |
| total | int | 符合本次查询条件的报价总数。 |
| per_page | int | 每页条数。 |
| current_page | int | 当前页码。 |
| last_page | int | 总页数。 |
| data | array | 当前页报价列表,每条包含下列字段。 |
| id | int | 运价记录编号。 |
| country_name | string | 目的国名称。 |
| port | string | 港口或线路名称。 |
| service_type | string | 传了筛选时,每条报价返回 ddu 或 ddp。省略筛选时,沿用原接口,返回与 service_code 相同的明细码。 |
| service_code | string | 具体服务的原始代码,对应上表,可用于区分监管仓、含派送和不派送。 |
| service_type_name | string | null | 可直接展示的完整中文服务名称,例如「双清不含税含派送」。筛选或查询全部时均返回。没有已知名称时为 null。 |
| cargo_type | string | 适用货物类型。 |
| tt | string | 预计时效。 |
| currency | string | 报价币种,未配置时按 USD。 |
| minimum_volume | number | 最低计费量,单位 CBM。 |
| chargeable_volume | number | 输入体积与最低计费量的较大值,单位 CBM。 |
| unit_price | number | null | 纯数字报价的每立方米单价。文字报价为 null。 |
| total_amount | number | null | 纯数字报价按单价乘计费体积估算,保留两位小数。文字报价为 null。 |
| price_text | string | null | 文字报价或分段计价条款,按原文展示。纯数字报价为 null。 |
| remarks | string | 报价备注。 |
| exceed | string | 超长、超重或超限条件。 |
| remote | string | 偏远地区说明。 |
| area | string | 派送区域说明。 |
| product | string | 品类说明。 |
| delivery | string | 派送条件。 |
| scope | string | 服务范围。 |
| reference | string | 其他报价参考说明。 |
| updated_at | number | string | null | 运价记录更新时间。 |
{
"code": 0,
"msg": "success",
"request_id": "req_example",
"data": {
"resolved": {
"destination_country": "AU",
"volume": 1.2,
"service_type": "ddu"
},
"total": 1,
"per_page": 20,
"current_page": 1,
"last_page": 1,
"data": [
{
"id": 123,
"country_name": "澳大利亚",
"port": "Sydney",
"service_type": "ddu",
"service_code": "delivery",
"service_type_name": "双清不含税含派送",
"cargo_type": "普货",
"tt": "15–20 天",
"currency": "CNY",
"minimum_volume": 1,
"chargeable_volume": 1.2,
"unit_price": 1500,
"total_amount": 1800,
"price_text": null,
"remarks": "",
"exceed": "",
"remote": "",
"area": "",
"product": "",
"delivery": "",
"scope": "",
"reference": "",
"updated_at": 1746086400
}
]
},
"credit_used": 1,
"credit_balance": 999
}空结果和错误#
- 目的国或当前页无可用报价时返回 code=0,报价列表为空,credit_used=0。
- 必填参数、国家代码、服务类型或分页参数无效时返回 HTTP 400 / 1001,并通过 data.field 指出字段。
- 按重量查询遇到上游不可用时返回 HTTP 502 / 5002,积分不扣减。
调用沿用开放平台应用签名、套餐余额预检和限速规则。包含报价的成功响应以 credit_used 为本次实际扣减,credit_balance 为剩余积分。