国际进口下单接口
POST
/outer/api/v1/order/push
接口描述
pdfInfo说明
2.部分用户解析pdfInfo取三段码困难,可在帮助中心搜索电子面单接口如何取出三段码,参考给出java示例
参数 | 参数说明 |
---|---|
position | 一段码 |
position_no | 二段码和三段码 |
tp_status | 四段码 |
package_wdjc | 集包地 |
附录
货币代码
货币 | 货币代码 |
---|---|
Australia | AUD |
Brazil | BRL |
Canada | CAD |
Switzerland | CHF |
China | CNY |
Denmark | DKK |
Eurozone | EUR |
United Kingdom | GBP |
Hong Kong | HKD |
Indonesia | IDR |
Israel | ILS |
India | INR |
Japan | JPY |
South Korea | KRW |
Malaysia | MYR |
New Zealand | NZD |
Philippines | PHP |
Russia | RUB |
Singapore | SGD |
Thailand | THB |
Taiwan | TWD |
United States | USD |
Vietnam | VND |
危险品代码
字段描述 | 危险品类别代码 |
---|---|
Does not contain Lithium Batteries | 00 |
Non Rechargeable batteries in Item | 01 |
Lithium Batteries packed with item | 02 |
Lithium Batteries Only | 03 |
Lithium Batteries in item | 04 |
Rechargeable Batteries packed with item | 05 |
Rechargeable Batteries only | 06 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://openapi.yundaex.com/openapi-api/outer/api/v1/order/push' \
--header 'app-key;' \
--header 'sign;' \
--header 'req-time;' \
--header 'Content-Type: application/json' \
--data-raw '{
"appid": "999999",
"partner_id": "201700101001",
"secret": "123456789",
"orders": [
{
"collect_branch": "",
"collection_value": 126.5,
"cus_area1": "",
"cus_area2": "",
"isProtectPrivacy": "",
"items": [
{
"name": "衣服",
"number": 1,
"remark": "袜子"
}
],
"khddh": 2012121715001,
"node_id": "350",
"order_serial_no": 2012121715001,
"order_type": "common",
"platform_source": "",
"receiver": {
"address": "上海市,青浦区,盈港东路 6679 号",
"city": "上海市",
"company": "",
"county": "青浦区",
"mobile": "17601206977",
"name": "李四",
"province": "上海市"
},
"remark": "",
"sender": {
"address": "上海市,青浦区,盈港东路 7766 号",
"city": "上海市",
"company": "",
"county": "青浦区",
"mobile": "17601206977",
"name": "张三",
"province": "上海市"
},
"size": "0.12,0.23,0.11",
"special": 0,
"value": 126.5,
"weight": 0,
"multi_pack": {
"mulpck": "",
"total": 0,
"endmark": 0
},
"markingInfos": [
{
"type": "INSURED",
"markingValue": {
"value": 2100
}
},
{
"type": "DF",
"markingValue": {
"value": 15
}
},
{
"type": "COD",
"markingValue": {
"value": 15
}
},
{
"type": "RETURN",
"markingValue": {
"value": "1,2"
}
},
{
"type": "PRI"
},
{
"type": "VIR"
},
{
"type": "MUL",
"markingValue": {
"value": 10
}
},
{
"type": "CONTACT"
}
]
}
]
}'
响应示例响应示例
200 - 成功 - 失败
{
"result": false,
"code": "7777",
"message": "内部接口服务失败",
"sub_code": "s10",
"sub_msg": "参数校验不合法"
}
请求参数
Header 参数
app-key
string
开放平台发放
默认值:
{{app-key}}
sign
string
必需
默认值:
{{sign}}
req-time
string
当前时间戳(毫秒)
默认值:
{{$timestamp}}
Body 参数application/json
返回响应
修改于 2021-11-10 04:26:26