ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 通过外箱码获取对应产品码 接口需要指定商户及ApiKey才能获取到数据,目前获取到的是当前用户所有的数据列表。 >[info] 接口`data`数据字段 ``` { "code" : "12位内包装码" } ``` ~~~[api] post:http://315.cuci.cc/code/api/getCodeByMax.html *code=默认值#商户编号,需要在平台获取 *sign=签名值#数据签名,需要使用签名规则进行签名 *time=时间戳#当前时间戳 *array:data=["code"=>"12位内包装码"]#需要提交数据(一维数组) <<< 接口成功 { "msg": "获取产品码列表成功", "code": "SUCCESS", "time": 1497424050, "sign": "5E10FC86B00AFB9C901CDBBB5BEE856B", "type": "JSON", "data": { "list": [ { "sn": "1000007252", "max": "100000000001", "code": "10001000020001", "verfiy": "0151", "url": "http:\/\/code.6-315.com\/query\/2ILD85Y24.html" }, { "sn": "1000007252", "max": "100000000001", "code": "10001000020002", "verfiy": "0302", "url": "http:\/\/code.6-315.com\/query\/2ILD85Y25.html" }, { "sn": "1000007252", "max": "100000000001", "code": "10001000020003", "verfiy": "0453", "url": "http:\/\/code.6-315.com\/query\/2ILD85Y26.html" }, { "sn": "1000007252", "max": "100000000001", "code": "10001000020004", "verfiy": "0604", "url": "http:\/\/code.6-315.com\/query\/2ILD85Y27.html" } ] } } <<< 非关联外箱码 { "msg": "外箱码对应为非关联类型", "code": "ERROR-UNRELATION", "sign": "32位数据签名", "type": "JSON", "data": [], } <<< 无效外箱码 { "msg": "无效的外箱码", "code": "ERROR-INVALID", "sign": "32位数据签名", "type": "JSON", "data": [], } <<< 商户异常 { "msg": "商户不存在, 请传入正确的商户!", "code": "ERROR", "sign": "32位数据签名", "type": "JSON", "data": [], } <<< 签名异常 { "msg": "签名错误, 请检查数据内容是否正确!", "code": "ERROR", "sign": "32位数据签名", "type": "JSON", "data": [], } <<< 验证异常 { "msg": "签名数据与商户ApiKey不匹配!", "code": "ERROR", "sign": "32位数据签名", "type": "JSON", "data": [], } <<< 数据异常 { "msg": "数据格式错误!", "code": "ERROR", "sign": "32位数据签名", "type": "JSON", "data": [], } ~~~