修改换标
1、功能名称:修改换标
2、功能描述:修改一个换表单
3、请求地址:https://ssl.glitzcloud.com/agent/v1/relabel/relabel/edit
测试地址:http://gztest.glitzcloud.com/agent/v1/relabel/relabel/edit
4、请求方式:POST
5、请求参数
名称 | 类型 | 必填 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
order_sn | String | 是 | REL14011600001 | 换标单号 | |
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( 'order_sn'=>'REL14011600001', '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":{}}
错误时的返回JSON数据包如下:
{"status":"1501","reqMsg":"SKU is compulsory","result":[]}