查询换标
1、功能名称:查询换标
2、功能描述:查询一个换表单
3、请求地址:https://ssl.glitzcloud.com/agent/v1/relabel/relabel/query
测试地址:http://gztest.glitzcloud.com/agent/v1/relabel/relabel/query
4、请求方式:POST
5、请求参数
名称 | 类型 | 必填 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
order_sn | json | 是 | ["order_sn",] | 可查询多个 | 换标单号 |
6、请求示例
array( 'order_sn'=>'["order_sn",]', );
7、返回格式:JSON
8、返回示例:
正确时的返回JSON数据包如下:
{ "status": 200, "reqMsg": "ok", "result": { "5646": { "order_sn": "REL04202200002", "store_name": "SAV01", "status": "3", // 1未审核,2待换标,3已换标,4已取消,5审核不通过,6拣货中,7换标中,8上架中,9短缺待确认,10短缺已确认,11短缺取消 "is_take_pictures": "0", // 0否1是 "is_allow_shortage": "1", // 0否1是 "remark": "", "product": { "14350": { "product_sn_old": "6941327162566", "product_sn_new": "X0036OFQNT", "amount": "18" } }, "trouble": { "64": { "trouble_sign": "Out of stock", "trouble_detail": { "340632": { "75231": { "product_id": "340632", "product_sn": "6941327162566", "location_id": "75231", "location_no": "R92B19B02", "short_qty": "10" } } }, "trouble_status": "2" // 0待确认,1用户确认,2wms标记正常,4oms取消 }, "65": { "trouble_sign": "Out of stock", "trouble_detail": { "340632": { "75233": { "product_id": "340632", "product_sn": "6941327162566", "location_id": "75233", "location_no": "R92B19C02", "short_qty": "12" } } }, "trouble_status": "2" } }, "charges": [ { "id": "5639032", "cost_currency": "usd",//费用币种 "cost_price": "9.00",//费用价格 "cost_amount": "1.00",//数量 "real_cost": "9.00"//实际费用 } ] } } }
错误时的返回JSON数据包如下:
{"status":"1501","reqMsg":"SKU is compulsory","result":[]}