创建客户信息
| HTTP Verb | URL |
|---|---|
| POST | /api/supplier-service/v1/b2b/shipper/shipperCreate |
Example:
POST /api/supplier-service/v1/b2b/OrderSearch HTTP/1.1 Content-Type: application/json Accept: application/json Host: http://cfs-qa.etowertech.com/ X-WallTech-Date: Thu, 06 Aug 2020 06:44:25 GMT Authorization: WallTech testLvs2jdug2qIoRsJyuxs:F714XG5EBjslUUdx5xJrTCVb9Xs= UserToken:true |
UserToken 请注意这个接口调用需要在head中加入这个参数,并且需要为true。
使用JSON列表格式创建客户信息
样例:
{
"shipperType": "1",
"attribute": "",
"nameCN": "",
"nameEN": "",
"shortName": "",
"contact": "",
"email": "",
"phone": "",
"document": "",
"country": "",
"province": "",
"city": "",
"addressLine1": "",
"addressLine2": "",
"postCode": "",
"language": "",
"seller": "",
"customerService": ""
} |
字段名 | 必填性 | 类型 | 描述 |
trackingNo | M | 订单号 | 订单号 |
fileList | M | List | 附件列表 |
fileList[].fileBase64 | M | String | 附件进行BASE64编码后的数据 |
| fileList[].fileName | M | String | 附件名称 |
| fileList[].fileType | O | Integer | 不传递默认是:1 1 : 装箱单 |
{
"code": "0",
"success": true,
"errors": null
} |
{
"code": "1003",
"success": false,
"errors": [
{
"code": 100009,
"message": "Order 13344389 not found"
}
],
"data": [
{
"status": "Failure",
"errors": [
{
"code": 100009,
"message": "Order 13344389 not found"
}
],
"orderId": "13344389",
"trackingNo": null
}
]
} |
字段名 | 类型 | 最大长度 | 描述 |
| code | int | 0成功,其他失败 | |
| errors | varchar | 256 | 查询报错 |
data | 返回信息 |