计算某个直发包裹信息发指定服务的运费


GET https://openapi.chukou1.cn:83/v1/pricing/directExpress/package?ServiceCode={ServiceCode}&LocationId={LocationId}&Weight={Weight}&Length={Length}&Width={Width}&Height={Height}&Country={Country}&Postcode={Postcode}&Address={Address}&Province={Province}&City={City}
接口说明: 计算某个直发包裹信息发指定服务的运费

输入参数

URI Parameters
名称类型格式要求是否必须描述示例值
ServiceCode string

满足正则: ^[a-zA-Z0-9\-_]*$

长度: 0 ~ 30

必须

发货服务代码

CUE

LocationId string

满足正则: ^[a-zA-Z0-9\-_]*$

长度: 0 ~ 30

出口易处理点代码

GZ

Weight integer

范围: 1 ~ 2147483647

必须

包裹重量(g)

1000

Length decimal number

浮点数格式: 8,2

必须

长(cm)

20

Width decimal number

浮点数格式: 8,2

必须

宽(cm)

10

Height decimal number

浮点数格式: 8,2

必须

高(cm)

15

Country string

长度: 0 ~ 100

必须

发往国家(支持标准二字简称)

US

Postcode string

长度: 0 ~ 50

发往地区邮编

83301

Address string

长度: 0 ~ 200

收件人详细地址

172 Meadowview lane

Province string

长度: 0 ~ 100

发往地区城市

Idaho

City string

长度: 0 ~ 100

发往地区省/州

Twin Falls

返回结果

名称类型格式要求是否必须描述示例值
ServiceCode string

None.

服务代码

USRPP

ServiceName string

None.

服务名称

美国本地快捷签收派送

Success boolean

None.

是否计费成功

true

Message string

None.

计费信息(不成功原因)

ChargeInfo ChargeInfo

None.

费用信息

返回结果的json形式
{
  "ServiceCode": "sample string 1",
  "ServiceName": "sample string 2",
  "Success": true,
  "Message": "sample string 4",
  "ChargeInfo": {
    "Summary": [
      {
        "Currency": "sample string 1",
        "Amount": 2
      },
      {
        "Currency": "sample string 1",
        "Amount": 2
      }
    ],
    "Detail": [
      {
        "Currency": "sample string 1",
        "Amount": 2,
        "ChargeName": "sample string 3",
        "Remark": "sample string 4"
      },
      {
        "Currency": "sample string 1",
        "Amount": 2,
        "ChargeName": "sample string 3",
        "Remark": "sample string 4"
      }
    ]
  }
}