简要描述:

  • 专属礼券列表

请求域名:

  • http://xx.com

请求URL:

GET:plugin.universal-card.frontend.index.couponList.index

参数:

参数名 是否必须 类型 说明
page int 分页 - 页码

返回示例:

正确时返回:

  {
    "result":1,
    "msg":"成功",
    "data":{
        "total":2,
        "per_page":15,
        "current_page":1,
        "last_page":1,
        "next_page_url":null,
        "prev_page_url":null,
        "from":1,
        "to":2,
        "data":[
            {
                "id":11,
                "name":"优惠券",
                "coupon_method":1,
                "deduct":"10.00",
                "discount":"0.00",
                "enough":0,
                "store":{
                    "id":13,
                    "store_name":"门店",
                    "thumb":"https://dev4.yunzshop.com/attachment/images/8/2018/09/Rc9cHqZwtTX77fc6hT6tZFvwT7vvqv.jpg",
                    "full_address":"",
                    "dispatch":"支持",
                    "average_score":0,
                    "order_total":1,
                    "pivot":{
                        "coupon_id":11,
                        "store_id":13
                    }
                }
            },
            {
                "id":10,
                "name":"优惠券测试",
                "coupon_method":1,
                "deduct":"20.00",
                "discount":"0.00",
                "enough":0,
                "store":{
                    "id":13,
                    "store_name":"门店",
                    "thumb":"https://dev4.yunzshop.com/attachment/images/8/2018/09/Rc9cHqZwtTX77fc6hT6tZFvwT7vvqv.jpg",
                    "full_address":"",
                    "dispatch":"支持",
                    "average_score":0,
                    "order_total":1,
                    "pivot":{
                        "coupon_id":10,
                        "store_id":13
                    }
                }
            }
        ]
    }
}

错误时返回:

  {
    "result": 0,
    "msg": "获取失败"
  }

返回参数说明:

参数名 类型 说明
id int(10) 优惠券id
name string 优惠券名
coupon_method int 1立减2折扣
deduct float 立减金额
discount float 折扣
enough float 限额
received int 1已领取2未领取
store object 门店信息
store参数名 类型 说明
id int(10) 门店id
store_name int(10) 门店名称
thumb int(10) 门店缩略图

备注:

  • 更多返回错误代码请看首页的错误代码描述