修改换标
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 | Integer | 否 | 0 | 0否1是 | 是否允许拍照 |
| is_allow_shortage | Integer | 否 | 0 | 0否1是 | 是否允许短缺 |
| product | String | 否 | [{'product_sn_old':string,'product_sn_new': string,'amount':int}] | 换标产品 | |
| remark | String | 否 | remark | 小于1000字符 | 备注 |
6、请求示例
{
"order_sn": "REL14011600001",
"store_name": "TWUSA01",
"is_take_pictures": 0,
"is_allow_shortage": 0,
"product": [
{
"product_sn_old": "old_sku",
"product_sn_new": "new_sku",
"amount": 1
}
],
"remark": "remark"
}
7、返回格式:JSON
8、返回示例:
正确时的返回JSON数据包如下:
{"status":200,"reqMsg":"ok","result":{}}
错误时的返回JSON数据包如下:
{"status":"1501","reqMsg":"SKU is compulsory","result":[]}