Appearance
业务下单 Business order
接口说明
接口地址
下单: https://track.ptemu.233trans.com/api/order/createForecast
请求方式: POST
请求参数
请求字段说明
字段名称 | 字段类型 | 字段长度 | 是否必需 | 字段说明 | |||
---|---|---|---|---|---|---|---|
authorization | JSONObject | 接口校验信息 | |||||
code | String | 5-20 | Y | 客户编码 | |||
token | String | 50 | Y | API授权码 | |||
datas | JSONObject | 本次提交数据集 | |||||
request | JSONObject | 预报下单入参 | |||||
packageSn | String | Y | 包裹号 | ||||
channelCode | String | Y | 渠道代码 | ||||
goodsCount | Int | Y | 商品数量 | ||||
packageWeight | Int | Y | 预估包裹总重量,单位:g | ||||
encryptedIossTaxNumber | Int | 加密的IOSS税号,仅欧洲需要 | |||||
totalPrice | Double | 总价值 | |||||
currencyCode | String | 申报币别 | |||||
consignee | JSONObject | 收件人信息 | |||||
countryCode | String | Y | 收件人所在国家,填写国际通用标准 2 位简码 | ||||
fullName | String | Y | 收件人姓名 | ||||
additionalName | String | 收件人别名 | |||||
taxcode | String | 税号 | |||||
address1 | String | Y | 地址1 | ||||
address2 | String | 地址2 | |||||
state | String | Y | 收件人洲 | ||||
city | String | Y | 城市 | ||||
district | String | 区 | |||||
phoneNumber | String | Y | 收件人手机号 | ||||
phoneCode | String | 收件人手机区号 | |||||
String | 收件人电子邮箱 | ||||||
postCode | String | Y | 收件人邮编 | ||||
shipper | JSONObject | 寄件人信息 | |||||
countryCode | String | Y | 寄件人所在国家,填写国际通用标准 2 位简码 | ||||
fullName | String | 寄件人姓名 | |||||
address1 | String | 地址1 | |||||
address2 | String | 地址2 | |||||
state | String | 寄件人洲 | |||||
city | String | 城市 | |||||
district | String | 区 | |||||
phoneNumber | String | 寄件人手机号 | |||||
phoneCode | String | 寄件人手机区号 | |||||
String | 寄件人电子邮箱 | ||||||
postCode | String | 寄件人邮编 | |||||
goodsList | Array | 申报物品信息 | |||||
importNameEn | String | Y | 进口国海关商品申报名称(英文) | ||||
importNameCh | String | 进口国海关商品申报名称(中文) | |||||
importHsCode | String | Y | 进口国海关编码 | ||||
quantity | Int | Y | 商品数量 | ||||
unitPrice | Double | Y | 商品单价 | ||||
unitWeight | Long | 单重:单位 g | |||||
currencyCode | String | Y | 申报币别 | ||||
goodsDeclUnitPrice | String | 国内报关单价 | |||||
goodsDeclCurrency | String | 商品报关币种 |
请求报文示例
json
{
"authorization": {
"code": "KJHB",
"token": "c60bf762-01f7-470e-8c8f-acde06c81fed"
},
"datas":{
"request": {
"packageSn": "BG-24061055XHK1M6LV-TEST1",
"channelCode": "AU001T",
"goodsCount": 5,
"packageWeight": 1810,
"encryptedIossTaxNumber": null,
"totalPrice": 85.36,
"currencyCode": "AUD",
"consignee": {
"countryCode": "AU",
"fullName": "Stan Sharpe",
"additionalName": null,
"taxcode": null,
"address1": "1 Musgrove Av",
"address2": "",
"state": "NSW",
"city": "KELSO",
"district": null,
"phoneNumber": "61485874427,7883#",
"phoneCode": "61",
"email": "tzdgctxghu1209c@us.shipping.temuemail.com",
"postCode": "2795"
},
"shipper":{
"countryCode": "AU",
"fullName": "Stan Sharpe",
"address1": "1 Musgrove Av",
"address2": "",
"state": "NSW",
"city": "KELSO",
"district": null,
"phoneNumber": "61485874427,7883#",
"phoneCode": "61",
"email": "tzdgctxghu1209c@us.shipping.temuemail.com",
"postCode": "2795"
},
"goodsList": [
{
"importNameEn": "storage bag",
"importNameCh": "收纳袋",
"importHsCode": "4202920000",
"quantity": 2,
"unitPrice": 13.15,
"unitWeight": 344,
"currencyCode": "AUD",
"goodsDeclUnitPrice": 29.58,
"goodsDeclCurrency": "CNY"
},
{
"importNameEn": "Nylon emergency kit",
"importNameCh": "急救包",
"importHsCode": "3006500000",
"quantity": 1,
"unitPrice": 20.45,
"unitWeight": 374,
"currencyCode": "AUD",
"goodsDeclUnitPrice": 29.7,
"goodsDeclCurrency": "CNY"
},
{
"importNameEn": "drone",
"importNameCh": "无人机",
"importHsCode": "9503008900",
"quantity": 1,
"unitPrice": 23.17,
"unitWeight": 383,
"currencyCode": "AUD",
"goodsDeclUnitPrice": 56.5,
"goodsDeclCurrency": "CNY"
},
{
"importNameEn": "backpack",
"importNameCh": "背包",
"importHsCode": "4202129000",
"quantity": 1,
"unitPrice": 15.44,
"unitWeight": 365,
"currencyCode": "AUD",
"goodsDeclUnitPrice": 19.8,
"goodsDeclCurrency": "CNY"
}
]
}
}
}
{
"authorization": {
"code": "KJHB",
"token": "c60bf762-01f7-470e-8c8f-acde06c81fed"
},
"datas":{
"request": {
"packageSn": "BG-24061055XHK1M6LV-TEST1",
"channelCode": "AU001T",
"goodsCount": 5,
"packageWeight": 1810,
"encryptedIossTaxNumber": null,
"totalPrice": 85.36,
"currencyCode": "AUD",
"consignee": {
"countryCode": "AU",
"fullName": "Stan Sharpe",
"additionalName": null,
"taxcode": null,
"address1": "1 Musgrove Av",
"address2": "",
"state": "NSW",
"city": "KELSO",
"district": null,
"phoneNumber": "61485874427,7883#",
"phoneCode": "61",
"email": "tzdgctxghu1209c@us.shipping.temuemail.com",
"postCode": "2795"
},
"shipper":{
"countryCode": "AU",
"fullName": "Stan Sharpe",
"address1": "1 Musgrove Av",
"address2": "",
"state": "NSW",
"city": "KELSO",
"district": null,
"phoneNumber": "61485874427,7883#",
"phoneCode": "61",
"email": "tzdgctxghu1209c@us.shipping.temuemail.com",
"postCode": "2795"
},
"goodsList": [
{
"importNameEn": "storage bag",
"importNameCh": "收纳袋",
"importHsCode": "4202920000",
"quantity": 2,
"unitPrice": 13.15,
"unitWeight": 344,
"currencyCode": "AUD",
"goodsDeclUnitPrice": 29.58,
"goodsDeclCurrency": "CNY"
},
{
"importNameEn": "Nylon emergency kit",
"importNameCh": "急救包",
"importHsCode": "3006500000",
"quantity": 1,
"unitPrice": 20.45,
"unitWeight": 374,
"currencyCode": "AUD",
"goodsDeclUnitPrice": 29.7,
"goodsDeclCurrency": "CNY"
},
{
"importNameEn": "drone",
"importNameCh": "无人机",
"importHsCode": "9503008900",
"quantity": 1,
"unitPrice": 23.17,
"unitWeight": 383,
"currencyCode": "AUD",
"goodsDeclUnitPrice": 56.5,
"goodsDeclCurrency": "CNY"
},
{
"importNameEn": "backpack",
"importNameCh": "背包",
"importHsCode": "4202129000",
"quantity": 1,
"unitPrice": 15.44,
"unitWeight": 365,
"currencyCode": "AUD",
"goodsDeclUnitPrice": 19.8,
"goodsDeclCurrency": "CNY"
}
]
}
}
}
响应数据
响应字段说明
字段名称 | 字段说明 | ||
---|---|---|---|
code | 接口请求是否通过 0:表示接口请求通过,其他表示失败 | ||
msg | 说明信息 | ||
data | |||
success | 判断是否调用成功 | ||
errorCode | 1000000 业务处理成功,不成功为 5000 | ||
errorMsg | 说明信息 | ||
res | |||
wayBillSn | 中性单号 |
响应数据示例 dog gate io
json
{
"code": 0,
"msg": "调用成功",
"data":{
"success": true,
"errorCode": 1000000,
"errorMsg": null,
"res": {
"wayBillSn": "AYH240611000017"
}
}
}
{
"code": 0,
"msg": "调用成功",
"data":{
"success": true,
"errorCode": 1000000,
"errorMsg": null,
"res": {
"wayBillSn": "AYH240611000017"
}
}
}