简要描述:

请求域名:

  • http://xx.com

请求URL:

route=plugin.coupon-store.frontend.store-manage.examineCoupon

参数:

参数名 是否必须 类型 说明
cstore_id int 商户ID
coupon_sn string 消费券码
request_type int 请求类型,固定为1

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "order_goods": {
            "title": "消费券商品20220623",
            "total": 2,
            "thumb": "https://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/5d5feaadb110164c2aa168ec76c677a1.jpg",
            "price": "99.00"
        },
        "coupon_sn": "CS477218FCAE06F",
        "offline_price": "0.00",
        "package_detail": [
            {
                "name": "套餐1",
                "list": [
                    {
                        "name": "内容1",
                        "count": "1",
                        "unit": "个个个",
                        "price": "99"
                    }
                ]
            }
        ],
        "buy_notice": [
            {
                "name": "有效期",
                "list": [
                    {
                        "status": 1,
                        "text": "2022.04.01 至 2022.05.30(周末、法定节假日通用)"
                    }
                ]
            },
            {
                "name": "不可用日期",
                "list": [
                    {
                        "status": 1,
                        "text": "2022.05.01 至 2022.05.03"
                    }
                ]
            },
            {
                "name": "可用时间",
                "list": [
                    {
                        "status": 1,
                        "text": "商家营业时间可用"
                    }
                ]
            },
            {
                "name": "预约消费",
                "list": [
                    {
                        "status": 1,
                        "text": "无需预约,高峰期可能需要排队"
                    }
                ]
            },
            {
                "name": "使用规则",
                "list": [
                    {
                        "status": 1,
                        "text": "仅适用于:本套餐内容"
                    },
                    {
                        "status": 1,
                        "text": "单词可使用数量:1张"
                    },
                    {
                        "status": 1,
                        "text": "不支持包间使用"
                    },
                    {
                        "status": 1,
                        "text": "仅限堂食,不提供餐前外带,餐毕未吃完可打包,打包费详情咨询商家"
                    },
                    {
                        "status": 1,
                        "text": "发票问题请咨询商家"
                    },
                    {
                        "status": 1,
                        "text": "周围1km内有停车场,高峰时间请提前到达"
                    }
                ]
            }
        ],
        "notice_desc": "<p>法人发发发</p>",
        "price_desc": "<p>发发发发</p>"
    }
}

错误时返回:

  {
  }

返回参数说明:

参数名 类型 说明
名称 类型 说明
data.order_goods object 商品信息
data.coupon_sn string 消费券号
data.offline_price float 到店付价格
data.package_detail arr 套餐详情
data.buy_notice arr 购买须知
data.notice_desc string 温馨提示,富文本
data.price_desc string 价格说明,富文本