文档
测试

查询优惠券-批量获取优惠券明细信息

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

接口描述

根据券ID查询券详细信息

请求头

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

请求参数

参数名
类型
描述
必填
channel
String
渠道名
必填
timestamp
String
时间戳
必填
param
object
参数(对json字符串进行DES加密)
必填
cpnIds
array
券ID集合
必填

响应参数

参数名
类型
描述
必填
msg
string
响应说明
必填
code
number
响应code
必填
data
object
响应参数
必填
list
array
券信息集合
必填
begSend
string
发券开始时间
必填
begTime
string
有效开始时间
必填
content
string
券说明
必填
cpnName
string
券名称
必填
cpnType
string
券类别
必填
delay
int
延期天数
必填
endTime
string
有效结束时间
必填
id
string
券ID主键
必填
isBatch
int
支持批量发券
必填
isshow
int
领券中心展示
必填
picUrl
string
图片地址
必填
posid
string
券规则posid
必填
status
int
状态
必填

说明 / 示例

请求示例: ``` { "param": "94B976600215607506E9A7F6D030BEE9997BDFC70A8814C040CDB4DD200EE722", "channel": "hkl-test", "timestamp": "1581406512990" } ``` param明文示例: ``` { "cpnIds": [ "K1EB0IUDL1GE6", "J6RA2AU030155" ] } ``` 响应示例: ``` { "msg": "操作成功", "code": 0, "data": { "list": [ { "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", "isBatch": 0, "isshow": 0, "maxCount": 100000, "picUrl": "/upload_img/common/daijin.jpg", "posid": "27588", "sendCount": 1, "seqName": "", "status": 0, "timeLimit": "", "validDays": 0, "weekLimit": "" }, null ] } } ```