领取优惠券代码教程

  • 请求路径:com/smallprogapi/Coupon/GetUserCoupon

 

  • 请求参数:

 

参数名称 必填 参数值说明 格式要求
openId OpenID String
couponId 优惠券编号 int

 

  • 返回值说明:Json格式
返回结果:{"success":true,"msg":"领取成功","code":0,"data":0}

 

 

10.4用户优惠券列表

  • 请求路径:com/smallprogapi/Coupon/GetLoadCoupon

 

  • 请求参数:

 

参数名称 必填 参数值说明 格式要求
openId OpenID String
pageSize 每页数量 int
pageIndex 页数
couponType 类型(1=可用 2=不可用)

 

  • 返回值说明:Json格式
返回结果:

{"success":true,"msg":"","code":0,"data":{"total":4,"Data":[{"CouponId":160,"RedEnvelopeId":"","CouponName":"test1","ClaimCode":"ea9dd38f242e48d08c12eb5ec63df7c0","UserId":664,"UserName":"viange","ShopId":351,"GetDate":"2017.11.16","Price":6.0,"StartTime":"2017.10.27","ClosingTime":"2017.11.27","OrderUseLimit":0.0,"CanUseProducts":"","UseWithGroup":false,"UseWithPanicBuying":false,"UseWithFireGroup":false,"RowNumber":1,"ShopName":"uliwsky","UseArea":1,"Remark":null,"CounponStatus":0},{"CouponId":157,"RedEnvelopeId":"","CouponName":"10","ClaimCode":"2ed75039d26746d7baabe30e5394e3fb","UserId":664,"UserName":"viange","ShopId":1,"GetDate":"2017.11.15","Price":10.0,"StartTime":"2017.10.24","ClosingTime":"2017.11.24","OrderUseLimit":100.0,"CanUseProducts":"","UseWithGroup":false,"UseWithPanicBuying":false,"UseWithFireGroup":false,"RowNumber":1,"ShopName":"官方自营店","UseArea":0,"Remark":null,"CounponStatus":0},{"CouponId":157,"RedEnvelopeId":"","CouponName":"10","ClaimCode":"5a19f37a85ee4081a4306a59cf5636b9","UserId":664,"UserName":"viange","ShopId":1,"GetDate":"2017.11.15","Price":10.0,"StartTime":"2017.10.24","ClosingTime":"2017.11.24","OrderUseLimit":100.0,"CanUseProducts":"","UseWithGroup":false,"UseWithPanicBuying":false,"UseWithFireGroup":false,"RowNumber":1,"ShopName":"官方自营店","UseArea":0,"Remark":null,"CounponStatus":0},{"CouponId":157,"RedEnvelopeId":"","CouponName":"10","ClaimCode":"ce55dd7b73b1496ca26a663c8cb68ac9","UserId":664,"UserName":"viange","ShopId":1,"GetDate":"2017.11.15","Price":10.0,"StartTime":"2017.10.24","ClosingTime":"2017.11.24","OrderUseLimit":100.0,"CanUseProducts":"","UseWithGroup":false,"UseWithPanicBuying":false,"UseWithFireGroup":false,"RowNumber":1,"ShopName":"官方自营店","UseArea":0,"Remark":null,"CounponStatus":0}]}}

 

返回结果参数说明:

 

字段名称 字段编码 数据类型 是否可空 备注
优惠券Id CouponId INT
优惠券号 ClaimCode
领取日期 GetDate
订单满多少可用 OrderUseLimit
优惠券名称 CouponName
金额 Price
使用范围 UseArea 1=全场,2=部分商品
部分商品可用说明 Remark

 

更多
  • 该日志由 于2020年05月30日发表在 未分类 分类下, 你可以发表评论,并在保留原文地址 及作者的情况下引用到你的网站或博客。
  • 本文链接: 领取优惠券代码教程 | 帮助信息-动天数据
  • 版权所有: 帮助信息-动天数据-转载请标明出处
  • 【上一篇】 【下一篇】

    0 Comments.