查询优惠券列表
POST
/open/v1/crm/fetchCoupInstanceList(下行接口)合作方查询优惠券列表
请求参数
Body 参数application/json
customerId
integer
顾客ID
couponStatus
array[integer]
必需
优惠券状态(1:未使用;2:已验证;3:已过期;4:作废;)
couponTypes
array[integer]
必需
优惠券类型(2:折扣券;3:礼品券;4:现金券;)
page
integer
第几页
pageSize
integer
每页查询数据条数
示例
{
"customerId": 888893406139,
"couponStatus": [
1,
2
],
"couponTypes": [
1
],
"page": 1,
"pageSize": 12
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
string
必需
返回编码,详见错误码
result
#/definitions/2356394必需
示例
{
"code": "1",
"result": {
"currentPage": 1,
"pageSize": 10,
"totalRows": 11,
"startRow": 0,
"totalPage": 2,
"items": [
{
"codeNumber": 3268120690040015,
"couponType": 1,
"id": 1657945,
"couponName": "oetuaoetn",
"ruleDesc": "满12减1",
"periodStart": "00:00:00",
"periodEnd": "23:59:00",
"week": "1111111",
"usableCommercialDesc": "仅限重庆冷锅鱼5,重庆冷锅鱼2,重庆冷锅鱼,重庆冷锅鱼1\",重庆冷锅鱼('小猪店),重庆冷锅鱼重庆冷锅4,重庆冷锅鱼1号店,重庆\"冷锅鱼2\"号店,重庆冷锅鱼4号店haohaohoa",
"usableCommercialIdList": [
880000880,
800000098,
800000096,
800000095,
810002316,
810004945,
810005934,
810005935,
810005937
],
"couponStatus": 3
},
{
"codeNumber": 3268125450090017,
"couponType": 3,
"id": 1659520,
"couponName": "aaaqqqq",
"ruleDesc": "满0元可用",
"periodStart": "00:00:00",
"periodEnd": "23:59:00",
"week": "1111111",
"usableCommercialDesc": "仅限重庆冷锅鱼5,重庆冷锅鱼2,重庆冷锅鱼,重庆冷锅鱼1\",重庆冷锅鱼('小猪店),重庆冷锅鱼重庆冷锅4,重庆冷锅鱼1号店,重庆\"冷锅鱼2\"号店,重庆冷锅鱼4号店haohaohoa",
"usableCommercialIdList": [
880000880,
800000098,
800000096,
800000095,
810002316,
810004945,
810005934,
810005935,
810005937
],
"couponStatus": 3
}
]
}
}
修改于 3 年前