文档
测试

查询优惠券-获取商城优惠券

POST
http://crm.houcaller.com/htest/openapi/v1/listCpnForShop

接口描述

获取所有商城券信息

请求头

参数名
类型
描述
必填
Content-Type
String
application/json
必填

请求参数

参数名
类型
描述
必填
channel
String
渠道名
必填
timestamp
String
时间戳
必填
param
String
参数(对json字符串进行DES加密,传入空json格式加密后的字符串即可)
必填

响应参数

参数名
类型
描述
必填
msg
string
响应说明
必填
code
number
响应code
必填
data
object
响应参数
必填
list
array
券信息列表
必填
content
string
券说明
必填
cpnName
string
券名称
必填
cpnType
string
券类别
必填
id
string
券ID
必填
picUrl
string
券图片地址
必填
posid
string
收银ID
必填
status
number
状态
必填

说明 / 示例

请求示例: ``` { "param": "9A0C7B1B7F89A90C", "channel": "hkl-test", "timestamp": "1581406877495" } ``` param明文示例: ``` {} ``` 响应示例: ``` { "msg": "操作成功", "code": 0, "data": { "list": [ { "barcode": "", "begSend": "2018-02-13", "begTime": "2018-02-13", "content": "1、本券满188可用1张;\n2、 福包优惠券每桌限用一张;\n3、 该福包优惠券不与其他优惠同时使用。\n4、 优惠券有效期:2018年2月13日-2月28日", "cpnName": "全国红包50元券", "cpnType": "2", "delay": 1, "endTime": "2018-02-28", "getLimit": 1, "getLimitAll": 1, "id": "I29F07KKQ0003", "maxCount": 1, "picUrl": "/upload_img/20180211/180211_151636650.jpg", "posid": "21116", "sendCount": 1, "seqName": "", "status": 0, "timeLimit": "", "validDays": 0, "weekLimit": "" }, { "barcode": "", "begSend": "2018-02-13", "begTime": "2018-02-13", "content": "1、本券消费满158可用1张;\n2、福包优惠券每桌限用一张;\n3、该福包优惠券不与其他优惠同时使用。\n4、优惠券有效期:2018年2月13日-2月28日\n", "cpnName": "全国红包20元券", "cpnType": "2", "delay": 1, "endTime": "2018-02-28", "getLimit": 1, "getLimitAll": 1, "id": "I29F07KLL0023", "maxCount": 1, "picUrl": "/upload_img/20180211/180211_151636620.jpg", "posid": "21118", "sendCount": 1, "seqName": "", "status": 0, "timeLimit": "", "validDays": 0, "weekLimit": "" }, { "barcode": "6410", "begSend": "2019-07-01", "begTime": "2019-07-01", "content": "1.本券仅限合肥豪客来餐厅使用;\n2.本券消费满120元使用一张;\n3.本券仅限堂食不可购买零售及外卖产品;\n4.本券不与其他优惠同时进行;\n5.食品以实物为准,图片仅供参考 。", "cpnName": "豪客来正大广场开业吃50送50", "cpnType": "2", "delay": 0, "endTime": "2019-07-31", "getLimit": 1, "getLimitAll": 1, "id": "J6RA2AU030155", "maxCount": 100000, "picUrl": "/upload_img/common/daijin.jpg", "posid": "27588", "sendCount": 1, "seqName": "", "status": 0, "timeLimit": "", "validDays": 0, "weekLimit": "" } ] } } ```