添加换标单附件
1、功能名称:添加换标单附件
2、功能描述:添加换标单附件
3、请求地址:https://ssl.glitzcloud.com/agent/v1/relabel/relabel/addAttachment
测试地址:http://gztest.glitzcloud.com/agent/v1/relabel/relabel/addAttachment
4、请求方式:POST
5、请求参数
| 名称 | 类型 | 必填 | 示例值 | 描述 |
|---|---|---|---|---|
| order_sn | String | 是 | REL20092300001 | 换标单编号 |
| model | String | 是 | relabel | 文件model, 例如:快递面单shipping_label、包裹清单packing_list、其他other 等 |
| attachment | File | 是 | Chrysanthemum.jpg | 当前要上传的附件 |
6、请求示例
array(
'format'=>'json',
'apikey'=>'85082f5f62a811e684f500163e06045f',
'order_sn'=>'REL20092300001',
'model'=>'relabel',
'attachment'=>'file',
'sign'=>'656d6fbe6b7dec6c2e77ffe27f04bd6d',
);
7、返回格式:JSON
8、返回示例:
正确时的返回JSON数据包如下:
{
"status": 200,
"reqMsg": "ok",
"result": {
"relabel_id": "650",
"order_sn": "REL20092300001",
"attach_ids": [{
"Chrysanthemum.jpg": "2846"
}]
}
}
错误时的返回JSON数据包如下:
{
"status": 8001,
"reqMsg": "Invalid Relabel Sn",
"result": []
}
9、返回参数说明:
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| relabel_id | String | 650 | 换标单ID |
| order_sn | String | REL20092300001 | 换标单编号 |
| attach_ids | array | [{"Chrysanthemum.jpg": "2846"}] | 上传成功后, 附件名对应附件ID |
