文档目录

双清专线运价 API

查询与官网双清专线页同源的报价。按重量获取渠道运费,按体积获取目的国运价和参考总价。清关、税费和派送范围以报价条款为准。

按重量查询(kg)#

按目的国、货物重量和类型查询双清渠道。返回官网对外费用及预计时效。

有结果时扣 3 积分/次。

HTTP
POST /api/openapi/v1/freight/line/weight/search

请求参数#

字段类型说明
destination_countrystring必填。两位国家代码,如 US、GB。
weightnumber必填。货物实重,单位 kg,须大于 0。
cargo_typeint可选。0 文件,1 包裹(默认),2 防水袋。
BASH
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}'

响应字段#

字段类型说明
resolvedobject本次解析后的国家代码、重量和货物类型。
listarray启用双清专线的官网渠道报价,每条包含下列字段。
channel_namestring对外展示的渠道名称。
chargeable_weightnumber渠道计费重,单位 kg。
unit_pricenumber每公斤参考单价。
freightnumber基础运费。
fuel_feenumber燃油附加费金额。
fuel_ratestring燃油费率,可能为空。
surchargenumber其他附加费。
total_amountnumber官网对外报价合计,按返回金额使用。
currencystring币种,CNY。
ttstring预计时效。
remarksstring渠道服务和计价说明。
JSON
{
  "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 积分/次。

HTTP
POST /api/openapi/v1/freight/line/volume/search

请求参数#

字段类型说明
destination_countrystring必填。两位国家代码,如 US、GB。
volumenumber必填。货物体积,单位 CBM(立方米),须大于 0。
service_typestring可选。ddu 查不含税报价,ddp 查含税报价,大小写均可。省略或留空可查全部服务。
pageint可选。页码,默认 1。
limitint可选。每页条数,默认 20,最多 50。
BASH
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_codeservice_type 筛选值说明
clearanceddp双清含税派送
nodeliveyddp双清含税不派送
dduddu监管仓(DDU)
noclearanceddu双清不含税派送
deliveryddu双清不含税含派送
nodeliveryddu双清不含税不派送

DDP 表示报价含税,DDU 表示报价不含税。两组都有不派送的服务。监管仓报价的末端派送范围和费用请查看具体报价条款。

响应字段#

字段类型说明
resolvedobject本次查询的国家代码和体积。传入服务类型时,service_type 返回小写 ddu 或 ddp。
totalint符合本次查询条件的报价总数。
per_pageint每页条数。
current_pageint当前页码。
last_pageint总页数。
dataarray当前页报价列表,每条包含下列字段。
idint运价记录编号。
country_namestring目的国名称。
portstring港口或线路名称。
service_typestring传了筛选时,每条报价返回 ddu 或 ddp。省略筛选时,沿用原接口,返回与 service_code 相同的明细码。
service_codestring具体服务的原始代码,对应上表,可用于区分监管仓、含派送和不派送。
service_type_namestring | null可直接展示的完整中文服务名称,例如「双清不含税含派送」。筛选或查询全部时均返回。没有已知名称时为 null。
cargo_typestring适用货物类型。
ttstring预计时效。
currencystring报价币种,未配置时按 USD。
minimum_volumenumber最低计费量,单位 CBM。
chargeable_volumenumber输入体积与最低计费量的较大值,单位 CBM。
unit_pricenumber | null纯数字报价的每立方米单价。文字报价为 null。
total_amountnumber | null纯数字报价按单价乘计费体积估算,保留两位小数。文字报价为 null。
price_textstring | null文字报价或分段计价条款,按原文展示。纯数字报价为 null。
remarksstring报价备注。
exceedstring超长、超重或超限条件。
remotestring偏远地区说明。
areastring派送区域说明。
productstring品类说明。
deliverystring派送条件。
scopestring服务范围。
referencestring其他报价参考说明。
updated_atnumber | string | null运价记录更新时间。
JSON
{
  "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 为剩余积分。