简要描述:

  • 运费试算

方法名称:

  • feeTrail

请求JSON:

{
	"country_code": "US",
	"weight": "1.35",
	"length": "",
	"width": "",
	"height": "",
	"shipping_type_id": "W",
	"group": "PY"
}

响应JSON:

{
	"ask": "Success",
	"message": "Success",
	"data": [{
		"ServiceCode": "PK0071",
		"ServiceCnName": "测试产品",
		"ServiceEnName": "test product",
		"FreightFee": "1575.00",
		"FuelFee": "0.00",
		"RegisteredFee": "0.00",
		"OtherFee": "25.00",
		"TotalFee": 1600,
		"Effectiveness": "3-7",
		"Traceability": "N",
		"VolumeCharge": "5000",
		"Remark": "测试",
		"ChargeWeight": "10",
		"ProductSort": 1,
		"ChargeWeightUnit": "KG",
		"Formula": "((200.00 * 8.000 + 150.00) * 0.900) * 1.000"
	}, {
		"ServiceCode": "PK0140",
		"ServiceCnName": "oo",
		"ServiceEnName": "oo",
		"FreightFee": "0.90",
		"FuelFee": "0.00",
		"RegisteredFee": "0.00",
		"OtherFee": "0.00",
		"TotalFee": 0.9,
		"Effectiveness": "",
		"Traceability": "N",
		"VolumeCharge": "5000",
		"Remark": "",
		"ChargeWeight": "1.35",
		"ProductSort": 0,
		"ChargeWeightUnit": "KG",
		"Formula": "(1.00 * 0.900) * 1.000"
	}],
	"time_cost(s)": 0.4384100437164
}

字段说明:

参数名 数据类型 是否必填 说明
weight float require 订单重量(KG)
shipping_type_id string require 货物类型,D-文件,L-信封,W-包裹
country_code string option 国家简码,和仓库代码不能同时为空
city string option 城市
postcode string option 邮编
length float option 包裹长(CM)
width float option 包裹宽(CM)
height float option 包裹高(CM)
group string option 产品组
cube float option 立方
product_code string option 产品代码,传入产品代码则只查询对应产品的费用
warehouse_code string option 仓库代码,传入仓库代码则忽略国家、城市、邮编信息
volume_list array option 材积信息参考 volume_list表

volume_list字段说明:

参数名 数据类型 是否必填 说明
box_count int require 箱数
length float require 箱子长度,单位CM
width float require 箱子高度,单位CM
height float require 箱子宽度,单位CM
weight float require 箱子重量,单位KG

response参数:

参数名 数据类型 说明
ask string
参考response公共参数
message string
参考response公共参数
data object 数据内容(2维数组)
Error object
参考Error格式

Data参数:

参数名 数据类型 说明
ServiceCode string 运输方式代码
ServiceCnName string 运输方式中文名称
ServiceEnName string 运输方式英文名称
FreightFee float 运费
FuelFee float 燃油费
RegisteredFee float 挂号费
OtherFee float 其他费用
TotalFee float 总费用
Effectiveness string 时效
Traceability string 是否可追踪
VolumeCharge float 体积重计费
Remark string 备注
ChargeWeight float 计费重量
ProductSort int 产品排序权重值
Formula string 计费公式
ChargeWeightUnit string 计费单位