1.优惠劵列表

接口

POST https://open.jisuapp.cn/business/Coupons/GetCouponList

请求参数说明

Content-Type: application/x-www-form-urlencoded

参数 类型 必填 说明
access_token String Y 用户授权的唯一票据
page int n 页码
page_size int n 每页多少
idx_arr array n 筛选条件

请求参数说明


idx_arr 可以用来筛选

其中搜索 优惠劵id
            'idx_arr' => array(
                "idx" => 'id',
                'value' => $id  
            ),

搜索优惠劵名字
            'idx_arr' => array(
                "idx" => 'title',
                'idx_value' => $title  //优惠劵名字
            ),

搜索优惠劵类型
            'idx_arr' => array(
                "idx" => 'type',
                'idx_value' => $type  //优惠劵类型
            ),

返回参数

参数 类型 说明
id int 优惠码自增id
app_id String 小程序id
user_token String 登录用户标识
app_name String 小程序名字
logo String 小程序log
title String 优惠卡标题
sub_title String 优惠卡副标题
background String 优惠卡背景颜色
type String 优惠券类型 0->满减 1-> 打折 2->代金券 3-> 兑换券 4->储值券 5->通用券
condition String 优惠券优惠条件
value String 优惠值
add_time String 添加时间
react String 生效时间,单位:天,默认0立即生效
expire String
consume_num String 消耗数量
recv_num String 送出数量
stock String 库存
limit_num String 领取上限
address String 地址
phone String 手机号
is_deleted String 是否删除 1删除 0未删除
enable_status String 上下架 0下架 1上架
start_get_time String 获取开始时间
end_get_time String 获取结束时间
start_use_date String 开始使用时间
end_use_date String 结束使用时间
start_use_time String 开始使用时间
end_use_time String 结束使用时间
exclude_holiday String 去掉假日
exclude_weekend String 去掉周末
in_show_list String 是否在优惠券列表显示
button_color String 按钮颜色
list_color String 列表颜色
extra_condition String 额外条件
extra_goods String 额外商品

参数返回示例

{
    "status": 0,
    "data": [
        {
            "id": "54346",
            "app_id": "AJz4hyOOT6",
            "user_token": "287141efd2ebfc2182d8abece57a1d04",
            "app_name": "我的应用8",
            "logo": "http://cdn.jisuapp.cn/zhichi_frontend/static/invitation/images/logo.png",
            "title": "111",
            "sub_title": "1111",
            "background": "#eaebed",
            "type": "1",
            "condition": "0.00",
            "value": "0.10",
            "add_time": "1536828010",
            "react": "0",
            "expire": "-1",
            "consume_num": "0",
            "recv_num": "0",
            "stock": "1",
            "limit_num": "1",
            "address": "111",
            "phone": "111",
            "is_deleted": "0",
            "enable_status": "1",
            "start_get_time": "2018-09-05",
            "end_get_time": "2018-09-14",
            "start_use_date": "2018-09-27",
            "end_use_date": "2018-09-30",
            "start_use_time": "00:00",
            "end_use_time": "23:59",
            "exclude_holiday": "0",
            "exclude_weekend": "0",
            "in_show_list": "1",
            "button_color": "#fd445b",
            "list_color": "#fb445b",
            "extra_condition": null,
            "extra_goods": "null"
        },
        {
            "id": "54332",
            "app_id": "AJz4hyOOT6",
            "user_token": "287141efd2ebfc2182d8abece57a1d04",
            "app_name": "我的应用8",
            "logo": "http://cdn.jisuapp.cn/zhichi_frontend/static/invitation/images/logo.png",
            "title": "11",
            "sub_title": "111",
            "background": "#eaebed",
            "type": "1",
            "condition": "0.00",
            "value": "1.00",
            "add_time": "1536823258",
            "react": "0",
            "expire": "-1",
            "consume_num": "0",
            "recv_num": "1",
            "stock": "0",
            "limit_num": "1",
            "address": "111",
            "phone": "11",
            "is_deleted": "0",
            "enable_status": "1",
            "start_get_time": "2018-09-05",
            "end_get_time": "2018-09-14",
            "start_use_date": "2018-09-25",
            "end_use_date": "2018-09-28",
            "start_use_time": "00:00",
            "end_use_time": "23:59",
            "exclude_holiday": "0",
            "exclude_weekend": "0",
            "in_show_list": "1",
            "button_color": "#fd445b",
            "list_color": "#fb445b",
            "extra_condition": "",
            "extra_goods": "null"
        }
    ],
    "is_more": 0,
    "current_page": 1,
    "count": "2",
    "total_page": 1
}

results matching ""

    No results matching ""