# 费用试算

接口地址:/api/exp/rate

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求示例:

{
  "customerRef": "",
  "channelCode": "",
  "cargoName": "",
  "cargoNameEn": "",
  "destNo": "",
  "receiverAddress": {
    "address": "",
    "address2": "",
    "address3": "",
    "city": "",
    "company": "",
    "contact": "",
    "countryCode": "",
    "district": "",
    "email": "",
    "phone": "",
    "reTaxNo1": "",
    "reTaxNo2": "",
    "reTaxNo3": "",
    "reTaxType1": "",
    "reTaxType2": "",
    "reTaxType3": "",
    "state": "",
    "zipCode": ""
  },
  "senderAddress": {
    "address": "",
    "address2": "",
    "address3": "",
    "city": "",
    "company": "",
    "contact": "",
    "countryCode": "",
    "email": "",
    "phone": "",
    "reTaxNo1": "",
    "reTaxNo2": "",
    "reTaxNo3": "",
    "reTaxType1": "",
    "reTaxType2": "",
    "reTaxType3": "",
    "state": "",
    "zipCode": ""
  },
  "pcs": 0,
  "weight": 0,
  "packageType": 0,
  "goodsType": 0,
  "cartons": [
    {
      "height": 0,
      "length": 0,
      "weight": 0,
      "width": 0
    }
  ],
  "cartonDetails": [
    {
      "currency": "",
      "grossWeight": "",
      "hsCode": "",
      "material": "",
      "origin": "",
      "pcs": 0,
      "purpose": "",
      "remark": "",
      "sku": "",
      "skuNameCn": "",
      "skuNameEn": "",
      "skuQty": 0,
      "skuWeight": 0,
      "totalPrice": "",
      "unit": "",
      "unitPrice": 0
    }
  ],
  "pickUpTime": "",
  "payType": 0,
  "payment": 0,
  "declareType": 0,
  "declareMethod": 0,
  "remark": ""
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84

请求参数:

参数名称 参数说明 请求类型 是否必须 数据类型 schema
createOrderRequest createOrderRequest body true 创建国际快递订单Request 创建国际快递订单Request
  customerRef 参考编号 true string
  channelCode 渠道代码(登录系统 API设置 可以查看) true string
  cargoName 中文品名 true string
  cargoNameEn 英文品名 false string
  destNo 目的地国家/地区 true string
  receiverAddress 收件人信息 true ReceiverAddress ReceiverAddress
    address 地址 true string
    address2 地址2 false string
    address3 地址3 false string
    city 城市 true string
    company 公司名称 true string
    contact 收件人 true string
    countryCode 国家 true string
    district 收件区县 true string
    email 邮箱 false string
    phone 收件电话 true string
    reTaxNo1 收件税号1 false string
    reTaxNo2 收件税号2 false string
    reTaxNo3 收件税号3 false string
    reTaxType1 收件税号类型1 false string
    reTaxType2 收件税号类型2 false string
    reTaxType3 收件税号类型3 false string
    state 州/省 true string
    zipCode 邮编 true string
  senderAddress 发件人信息 false 发件人信息 发件人信息
    address 地址 false string
    address2 地址2 false string
    address3 地址3 false string
    city 城市 false string
    company 公司名称 false string
    contact 联系人 false string
    countryCode 国家 false string
    email 邮箱 false string
    phone 电话 false string
    reTaxNo1 寄件税号1 false string
    reTaxNo2 寄件税号2 false string
    reTaxNo3 寄件税号3 false string
    reTaxType1 寄件税号类型1 false string
    reTaxType2 寄件税号类型2 false string
    reTaxType3 寄件税号类型3 false string
    state 州/省 false string
    zipCode 邮编 false string
  pcs 总件数 true integer(int32)
  weight 预报实重 true number(double)
  packageType 包装类型(1: WPX, 2: DOC, 3: PAK) true integer(int32)
  goodsType 货物类型(1: 普货, 2: 带电, 3: 纯电, 4: 危险品) true integer(int32)
  cartons 预报材重集合 true array 预报材重
    height true number
    length true number
    weight 重量 true number
    width true number
  cartonDetails 发票集合 true array 发票信息
    currency 币别 true string
    grossWeight 毛重 false string
    hsCode 海关编码 true string
    material 材质 true string
    origin 原产地 false string
    pcs 包装件数 false integer
    purpose 用途 true string
    remark 备注 false string
    sku 商品sku false string
    skuNameCn 中文名称 true string
    skuNameEn 英文名称 true string
    skuQty 数量 true integer
    skuWeight 净重 false number
    totalPrice 总价 false string
    unit 计量单位 true string
    unitPrice 单价 true number
  pickUpTime 上门揽件时间 false string(date-time)
  payType 付款方式(1: PP, 2: CC, 3: TP ) true integer(int32)
  payment 税金支付(1: PP, 2: CC, 3: TP ) true integer(int32)
  declareType 报关类型(1: 出口, 2: 进口) false integer(int32)
  declareMethod 报关方式(1: EDI, 2: 正式报关, 3: 非正式报关, 4: 快件, 5: 其他) true integer(int32)
  remark 备注 false string

响应参数:

参数名称 参数说明 类型 schema
data 响应数据 国际快递试算报价Data 国际快递试算报价Data
  channelCode 渠道代码 string
  totalAmount 总价 string
  txs 报价试算项 array 试算报价Value
    amount 报价 string
    chargeName 报价项名称 string
    currency 币别 string
message message string
success 是否成功 boolean
total 总记录数 integer(int32) integer(int32)

响应示例:

{
	"data": {
		"channelCode": "",
		"totalAmount": "",
		"txs": [
			{
				"amount": "",
				"chargeName": "",
				"currency": ""
			}
		]
	},
	"message": "",
	"success": true,
	"total": 0
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Last Updated: 5/11/2023, 5:51:57 PM