简要描述:

  • 好友裂变活动详情-查询优惠券

请求域名:

  • http://xx.com

请求URL:

xx.com/business/{公众号id}/plugin/CustomerIncrease/searchCoupon

参数:

参数名 是否必须 类型 说明
kwd string 优惠券名或优惠券id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 2,
                "name": "优惠券测试",
                "coupon_type": 0,
                "coupon_type_name": "平台商品"
            },
            {
                "id": 3,
                "name": "优惠券",
                "coupon_type": 0,
                "coupon_type_name": "平台商品"
            },
            {
                "id": 4,
                "name": "优惠券1",
                "coupon_type": 0,
                "coupon_type_name": "平台商品"
            },
            {
                "id": 5,
                "name": "指定商品",
                "coupon_type": 0,
                "coupon_type_name": "平台商品"
            },
            {
                "id": 10,
                "name": "测试",
                "coupon_type": 0,
                "coupon_type_name": "平台商品"
            }
        ],
        "first_page_url": "http://zouye.yunzmall.com/business/1/plugin/CustomerIncrease/searchCoupon?page=1",
        "from": 1,
        "last_page": 2,
        "last_page_url": "http://zouye.yunzmall.com/business/1/plugin/CustomerIncrease/searchCoupon?page=2",
        "next_page_url": "http://zouye.yunzmall.com/business/1/plugin/CustomerIncrease/searchCoupon?page=2",
        "path": "http://zouye.yunzmall.com/business/1/plugin/CustomerIncrease/searchCoupon",
        "per_page": 5,
        "prev_page_url": null,
        "to": 5,
        "total": 6
    }
}

错误时返回:

  {
  }

返回参数说明:

参数名 类型 说明
名称 类型 说明
data.data[].id int 优惠券id
data.data[].name string 优惠券名