優惠券接口數據描述
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.