开放平台

获取已发送优惠券

请求地址(POST)

https://openapi.1card1.cn/OpenApi/Get_CoupnSendPagedV2?openId=[OpenId]&signature=[Signature]&timestamp=[TimeStamp]

字段 说明
OpenId 登陆开放平台生成的OpenId
Signature 签名=md5(OpenId+Secret+Timestamp+data),格式:32位md5大写加密
TimeStamp 发起请求的时间戳,查看标准timestamp

请求说明

data={"userAccount":"10003","where":" 1=1 and mobile='13632651195' ", "pageIndex":0,"pageSize":10,"orderBy":" cardId desc"}

字段 是否必须 说明
userAccount 工号
where 查询条件
pageIndex 页码
pageSize 页大小
orderBy 排序规则

返回说明

成功时返回:

{ "status":0, "total":2, "data":[ { "Guid": "a13ea1b4-3fe6-e311-8b81-90b11c47b4da", "MemberGuid":"0f3d7bdf-13db-11e9-917f-0010184dbd22", "CouponGuid":"2BC1F5DB-76EA-E511-A501-0010186C5BC6", "CardId": "cardIdTest", "UserAccount": "10003", "ChainStoreGuids":"3b06c943-6fcc-e211-81c9-90b11c47e696", "goodsItemGuidLimit":"801acae6-36f4-e211-a8f8-0013d4497493", "goodsItemTypeGuidLimit":null, "limitType":"1" "Title": "8折券", "TypeName": "折扣券", "CouponValue": "100", "MinConsumeValue":"0", "Content": "到店有更多优惠!", "StartDate": "2014-05-28 16:11:45", "EndDate": "2014-06-28 16:11:45", "SendCount": 5, "Mobile": "13632651195", "Flag": "true", "CouponCode": "895741", "EnableCount": 2, "UsedCount": 3, "SendFissionCount":2, "FissionCount":10, "OperateTime": "2014-05-28 16:11:45" }, { "Guid": "a13ea1b4-3fe6-e311-8b81-90b11c47b4da", "MemberGuid":"0f3d7bdf-13db-11e9-917f-0010184dbd22", "CouponGuid":"2BC1F5DB-76EA-E511-A501-0010186C5BC6", "CardId": "cardIdTest", "UserAccount": 10003, "ChainStoreGuids": "3b06c943-6fcc-e211-81c9-90b11c47e696", "goodsItemGuidLimit":null, "goodsItemTypeGuidLimit":"0a2efee1-d2ff-e211-b9ad-90b11c47c1da", "limitType":"3" "Title": "10元券", "TypeName": "普通券", "CouponValue": "0", "MinConsumeValue":"1000", "Content": "到店有更多优惠!", "StartDate": "2014-05-28 16:11:45", "EndDate": "2014-06-28 16:11:45", "SendCount": 2, "Mobile": "13632651195", "Flag": "true", "CouponCode": "546723", "EnableCount": 1, "UsedCount": 1, "SendFissionCount":3, "FissionCount":10, "OperateTime": "2014-05-28 16:11:45" } ] }

字段 是否必须 说明
Guid 优惠券发送记录唯一标识
MemberGuid 会员唯一标识
CouponGuid 优惠券唯一标识
CardId 会员卡号
ChainStoreGuids 优惠券核销限制店面
goodsItemGuidLimit 优惠券核销限定使用商品(为空时表示不限)
goodsItemTypeGuidLimit 限定使用消费项目类别唯一标识
limitType 限定类型(0:未限定,1:限定消费项目可用,2:限定消费项目不可用,3:限定消费项目类别可用,4:限定消费项目类别不可用)
Title 优惠券标题
TypeName 优惠券类型
CouponValue 额度(代金券单位:元,折扣券单位:百分比)
MinConsumeValue 最低消费金额
Content 优惠详情(请用Unicode解码)
StartDate 已发送优惠券有效期起始时间
EndDate 已发送优惠券有效期截止时间
SendCount 优惠券发送数量
Mobile 会员手机号码
Flag 该优惠券当前是否可用
CouponCode 券号
EnableCount 优惠券可用张数
UsedCount 优惠券已核销张数
SendFissionCount 优惠券已裂变张数
FissionCount 优惠券可裂变张数
OperateTime 优惠券发送时间

失败时返回:

{"status":-1,"message":"查询失败及原因"}

字段 是否必须 说明
status 状态(0,成功;-1,失败)
message 查询失败及原因

获取已发送优惠券 调试