简要描述:
- 地址校验(订单数据校验)
方法名称:
- addressValidate
请求JSON:
{
"reference_no": "FZC276489282042",
"shipping_method_no": "",
"order_weight": "0.2",
"shipping_method": "101",
"country_code": "AD",
"consignee": {
"consignee_company": "",
"consignee_province": "",
"consignee_city": "",
"consignee_street": "عبدالملك بن مروان",
"consignee_street2": "",
"consignee_street3": "",
"consignee_postcode": "119321",
"consignee_name": "aaa",
"consignee_telephone": "13800138000",
"consignee_mobile": "",
"consignee_email": "",
"consignee_certificatetype": "",
"consignee_certificatecode": "",
"consignee_doorplate": "",
"consignee_taxno": "CN",
"consignee_credentials_period": "",
"buyer_id": ""
},
"invoice": [
{
"invoice_enname": "Adapter",
"invoice_cnname": "电源转换器",
"invoice_weight": 0.063,
"invoice_quantity": 1,
"unit_code": "Adapter",
"invoice_unitcharge": 0.5,
"invoice_currencycode": "USD",
"hs_code": "D1536",
"invoice_note": "",
"invoice_url": "",
"sku": "D1536"
}
]
}
响应JSON:
成功:
{"ask":"Success","message":"检验通过","time_cost(s)":"0.29274892807007"}
失败:
{
"ask": "Failure",
"message": "信息不合法",
"Error": {
"errCode": "50048",
"errMessage": " 收件人省州 必填; 货物重量 重量不能超20"
},
"time_cost(s)": "0.2546010017395"
}
paramsJson参数:
参数名 | 数据类型 | 是否必填 | 说明 |
---|---|---|---|
reference_no | string | require | 客户单号 |
shipping_method_no | string | option | 跟踪单号 |
order_weight | string | require | 订单重量 |
shipping_method | string | require | 运输方式 |
country_code | string | require | 国家二字码 |
consignee | object | require | 收件人信息参考consignee参数 |
invoice | object | require | 申报信息参考itemArr参数 |
response参数:
参数名 | 数据类型 | 说明 | |
---|---|---|---|
ask | string | 参考response公共参数 |
|
message | string | 参考response公共参数 |
|
Error | object | 参考Error格式 |