API接口文档

优惠券首页

创建于 2021-10-14 / 最近更新于 2021-10-14 / 89

简要描述

优惠券首页

接口版本

版本号 制定人 制定日期 修订日期
1.0.0 Devil 2020-09-29

请求URL

plugins/index&pluginsname=coupon&pluginscontrol=index&pluginsaction=index

请求方式

POST

公共参数

参数名 是否必须 类型 默认值 描述
application string web 请求应用、参考公共中详解
application_client_type string pc 请求客户端、参考公共中详解
token string token

请求参数

返回示例

正确时返回

{
    "msg": "处理成功",
    "code": 0,
    "data": {
        "base": {
            "application_name": "领劵中心",
            "banner_images": "https://d1.shopxo.vip/static/upload/images/plugins_coupon/2019/08/11/1565509481242251.jpg",
            "banner_bg_color": "",
            "banner_url": "",
            "banner_is_window_open": "1",
            "banner_images_old": "/static/upload/images/plugins_coupon/2019/08/11/1565509481242251.jpg"
        },
        "data": [
            {
                "id": "12",
                "name": "满600减60",
                "desc": "满减606060",
                "bg_color": "6",
                "type": "0",
                "discount_value": "60",
                "expire_type": "0",
                "expire_hour": "50",
                "fixed_time_start": "",
                "fixed_time_end": "",
                "where_order_price": "600.00",
                "use_limit_type": "0",
                "use_value_ids": "",
                "limit_send_count": "160",
                "already_send_count": "160",
                "sort": "0",
                "is_enable": "1",
                "is_user_receive": "1",
                "is_regster_send": "1",
                "add_time": "1622620952",
                "upd_time": "0",
                "is_operable": 0,
                "is_operable_name": "已领光",
                "type_name": "满减劵",
                "type_unit": "元",
                "bg_color_name": "咖啡色",
                "bg_color_value": "#795548",
                "expire_type_name": "领取生效",
                "use_limit_type_name": "全场适用",
                "use_value_ids_all": [],
                "use_value_ids_str": "",
                "is_enable_name": "是",
                "is_user_receive_name": "是",
                "is_regster_send_name": "是",
                "add_time_time": "2021-06-02 16:02:32",
                "upd_time_time": ""
            }
        ]
    }
}

错误时返回

{
    "msg": "error",
    "code": -1,
    "data": []
}

返回参数说明 -> data

参数名 是否必须 类型 描述
base array 插件基础配置
data array 优惠券列表

备注

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

0 人点赞过