优惠券接口数据描述
|10.1可领取优惠券列表接口
- 请求路径:com/smallprogapi/Coupon/GetLoadSiteCoupon
- 请求参数:
参数名称 | 必填 | 参数值说明 | 格式要求 |
openId | 是 | OpenID | String |
pageSize | 是 | 每页数量 | int |
pageIndex | 是 | 页数 | |
obtainWay | 否 | 类型(0:主动领取 1:指定发放 2:积分兑换) |
- 返回值说明:Json格式
返回结果:
{"success":true,"msg":"","code":0,"data":{"total":4,"Data":[{"CouponId":160,"CouponName":"test1","Price":6.0,"SendCount":6,"UserLimitCount":0,"OrderUseLimit":0.0,"StartTime":"2017.10.27","ClosingTime":"2017.11.27","ObtainWay":0,"NeedPoint":0,"UseArea":1,"Remark":null},{"CouponId":157,"CouponName":"10","Price":10.0,"SendCount":1111,"UserLimitCount":0,"OrderUseLimit":100.0,"StartTime":"2017.10.24","ClosingTime":"2017.11.24","ObtainWay":0,"NeedPoint":0,"UseArea":0,"Remark":null},{"CouponId":157,"CouponName":"10","Price":10.0,"SendCount":1111,"UserLimitCount":0,"OrderUseLimit":100.0,"StartTime":"2017.10.24","ClosingTime":"2017.11.24","ObtainWay":0,"NeedPoint":0,"UseArea":0,"Remark":null},{"CouponId":157,"CouponName":"10","Price":10.0,"SendCount":1111,"UserLimitCount":0,"OrderUseLimit":100.0,"StartTime":"2017.10.24","ClosingTime":"2017.11.24","ObtainWay":0,"NeedPoint":0,"UseArea":0,"Remark":null}]}} |
返回结果参数说明:
字段名称 | 字段编码 | 数据类型 | 是否可空 | 备注 |
总量 | totalCount | INT | 否 | |
数据 | Data | json | 是 |
数据列表 Data
字段名称 | 字段编码 | 数据类型 | 是否可空 | 备注 |
优惠券ID | CouponId | Int | 否 | |
优惠券名称 | CouponName | string | 否 | |
优惠价值 | Price | decimal | 否 | |
发放总量 | SendCount | int | 否 | |
用户限领数量 | UserLimitCount | int | 否 | |
订单使用条件 | OrderUseLimit | decimal | 否 | |
开始时间 | StartTime | datetime | 否 | |
结束时间 | ClosingTime | datetime | 否 | |
可使用商品 | CanUseProducts | string | 是 | |
领取方式 | ObtainWay | int | 否 | 0:主动领取 1:指定发放 2:积分兑换 |
需要积分 | NeedPoint | int | 否 |
0 Comments.