添加换标
1、功能名称:添加换标
2、功能描述:添加一个换表单
3、请求地址:https://ssl.glitzcloud.com/agent/v1/relabel/relabel/add
测试地址:http://gztest.glitzcloud.com/agent/v1/relabel/relabel/add
4、请求方式:POST
5、请求参数
| 名称 | 类型 | 必填 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| store_name | String | 是 | TWUSA01 | 仓库名称 | |
| is_take_pictures | int | 是 | 0 | 0否1是 | 是否拍照 |
| is_allow_shortage | int | 是 | 0 | 0否1是 | 是否允许短缺 |
| product | json | 是 | [{'product_sn_old':string,'product_sn_new': string,'amount':int}] | 换标产品 | |
| remark | string | 否 | remark | 小于1000字符 | 备注 |
6、请求示例
array(
'store_name'=>'TWUSA01',
'is_take_pictures'=>0,
'is_allow_shortage'=>0,
'product'=>[{
'product_sn_old':string,
'product_sn_new':string,
'amount':int
},],
'remark'=>'remark',
);
7、返回格式:JSON
8、返回示例:
正确时的返回JSON数据包如下:
{"status":200,"reqMsg":"ok","result":{"relabel_id": "698","order_sn": "REL20110200044"}}
错误时的返回JSON数据包如下:
{"status":"1501","reqMsg":"SKU is compulsory","result":[]}
