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订单)
  1. {
  2. "centre_code": "CKMD",
  3. "client_code": "test_shop(MY)",
  4. "attachments": [
  5. {
  6. "type": 1,
  7. "name": "sllh1.jpg",
  8. "attachment_number": "sllh1",
  9. "url_file_format": "pdf",
  10. "url": "http://testfilehw.oss-cn-shenzhen.aliyuncs.com/ERP111.pdf"
  11. },
  12. {
  13. "type": 2,
  14. "name": "sllh2.jpg",
  15. "attachment_number": "sllh2",
  16. "url_file_format": "pdf",
  17. "url": "http://testfilehw.oss-cn-shenzhen.aliyuncs.com/ERP111.pdf"
  18. }
  19. ],
  20. "order_number": "zxb-kdl-1010-001"
  21. }

返回示例

200 Response

  1. {
  2. "code": 200,
  3. "data": [
  4. {
  5. "attachment_number": "sllh1",
  6. "name": "sllh1.jpg",
  7. "type": 1,
  8. "url_file_format": "pdf",
  9. "url": "http://testfilehw.oss-cn-shenzhen.aliyuncs.com/ERP111.pdf"
  10. },
  11. {
  12. "attachment_number": "sllh2",
  13. "name": "sllh2.jpg",
  14. "type": 2,
  15. "url_file_format": "pdf",
  16. "url": "http://testfilehw.oss-cn-shenzhen.aliyuncs.com/ERP111.pdf"
  17. }
  18. ],
  19. "message": "success"
  20. }

3.返回结果

状态码 状态码含义 说明 数据模型
200 OK 成功 Inline

4.返回数据结构

状态码 200

名称 类型 必选 约束 中文名 说明
» code integer true none none
» data Array true none none
» message string true none none