1.POST 订单附件按物流类型下发
GET {请求地址}/apicenter/api/order/attachmentUpload
2.请求参数
| 名称 | 位置 | 类型 | 必选 | 说明 |
|---|---|---|---|---|
| centre_code | body | string | 是 | 仓库码 |
| client_code | body | string | 是 | 店铺码 |
| attachments | body | array | 是 | 附件参数集合,多个用逗号隔开 |
| -type | body | int | 否 | 1:箱唛;2:卡板唛(装箱清单);3:提单(B/L) 0:其他 |
| -name | body | string | 否 | 附件名称 |
| -attachment_number | body | string | 是 | 附件编号 |
| -url_file_format | body | string | 是 | 附件文件格式,当 type=1/2/3 时只允许上传pdf文件 |
| -url | body | string | 是 | 附件地址 |
| order_number | body | string | 是 | 订单号(需要为2B订单) |
{"centre_code": "CKMD","client_code": "test_shop(MY)","attachments": [{"type": 1,"name": "sllh1.jpg","attachment_number": "sllh1","url_file_format": "pdf","url": "http://testfilehw.oss-cn-shenzhen.aliyuncs.com/ERP111.pdf"},{"type": 2,"name": "sllh2.jpg","attachment_number": "sllh2","url_file_format": "pdf","url": "http://testfilehw.oss-cn-shenzhen.aliyuncs.com/ERP111.pdf"}],"order_number": "zxb-kdl-1010-001"}
返回示例
200 Response
{"code": 200,"data": [{"attachment_number": "sllh1","name": "sllh1.jpg","type": 1,"url_file_format": "pdf","url": "http://testfilehw.oss-cn-shenzhen.aliyuncs.com/ERP111.pdf"},{"attachment_number": "sllh2","name": "sllh2.jpg","type": 2,"url_file_format": "pdf","url": "http://testfilehw.oss-cn-shenzhen.aliyuncs.com/ERP111.pdf"}],"message": "success"}
3.返回结果
| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | 成功 | Inline |
4.返回数据结构
状态码 200
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | none | |
| » data | Array | true | none | none | |
| » message | string | true | none | none |
