優惠券詳情接口源碼
- 請求路徑:com/smallprogapi/Coupon/GetCouponDetail
- 請求參數:
?
| 參數名稱 | 必填 | 參數值說明 | 格式要求 |
| openId | 是 | OpenID | String |
| couponId | 是 | 優惠券編號 | int |
?
- 返回值說明:Json格式
| 返回結果:
{"success":true,"msg":"","code":0,"data":{"CouponId":160,"CouponName":"test1","Price":6.0,"SendCount":6,"UserLimitCount":0,"OrderUseLimit":0.0,"StartTime":"2017.10.27","ClosingTime":"2017.11.27","CanUseProducts":"","ObtainWay":0,"NeedPoint":0,"UseWithGroup":false,"UseWithPanicBuying":false,"UseWithFireGroup":false,"UseArea":1,"Remark":null}} |
?
返回結果參數說明:
?
| 字段名稱 | 字段編碼 | 數據類型 | 是否可空 | 備注 |
| 優惠券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 | 否 | |
| 可用于團購 | UseWithGroup | bool | ||
| 可用于搶購 | UseWithPanicBuying | bool |

0 Comments.