1.优惠劵发放列表

接口

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

请求参数说明

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

参数 类型 必填 说明
access_token String Y 用户授权的唯一票据
page int n 页码
page_size int n 每页多少
status int n 1:未核销 2:已核销 3:已失效
coupon_id int n 优惠劵id
owner_token string n 优惠劵的主人
idx_arr array n 筛选条件

请求参数说明


idx_arr 可以用来筛选


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

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

返回参数

参数 类型 说明
id int 发放记录自增id
app_id String 小程序id
owner_token String 优惠劵主人
coupon_id String 优惠劵id
recv_time String 接收时间
react_time String 生效时间
consume_time String 使用时间
expire String 优惠卡标题
is_deleted String 是否删除
is_selected String 优惠券是否被选择
recv_type String 领取方式:0客户领取,1商家赠送
verify_code String 核销码
use_info String 用户信息
coupon_type String 优惠卡标题
parent_app_id String 多商家总店app_id
user_token String 见优惠劵列表
logo String 见优惠劵列表
title String 见优惠劵列表
sub_title String 见优惠劵列表
background String 见优惠劵列表
type String 见优惠劵列表
condition String 见优惠劵列表
value String 见优惠劵列表
add_time String 见优惠劵列表
react String 见优惠劵列表
consume_num String 见优惠劵列表
recv_num String 见优惠劵列表
stock String 见优惠劵列表
limit_num String 见优惠劵列表
address String 见优惠劵列表
phone String 见优惠劵列表
enable_status String 见优惠劵列表
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 见优惠劵列表
coupon_title String 优惠劵名字
status String 1:未核销 2:已核销 3:已失效

参数返回示例

{
    "status": 0,
    "data": [
        {
            "id": "15107",
            "app_id": "AJz4hyOOT6",
            "owner_token": "1fd06c8328597f5bdcc2414b7f0c0d54",
            "coupon_id": "54332",
            "recv_time": "2018-09-13 16:29:57",
            "react_time": "1536827397",
            "consume_time": "0",
            "expire": -1,
            "is_deleted": "0",
            "is_selected": "0",
            "verify_code": "cp352184247",
            "recv_type": "1",
            "use_info": {
                "user_info": {
                    "nickname": "k",
                    "phone": null
                }
            },
            "coupon_type": "1",
            "parent_app_id": "",
            "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",
            "consume_num": "0",
            "recv_num": "1",
            "stock": "0",
            "limit_num": "1",
            "address": "111",
            "phone": "11",
            "enable_status": "1",
            "start_get_time": "1536076800",
            "end_get_time": "1536940740",
            "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",
            "coupon_title": "11",
            "status": 1
        },
        {
            "id": "15094",
            "app_id": "AJz4hyOOT6",
            "owner_token": "cafcaa049fe227d5d3579d416f62cd31",
            "coupon_id": "54328",
            "recv_time": "2018-09-12 10:55:08",
            "react_time": "1536720908",
            "consume_time": "0",
            "expire": -1,
            "is_deleted": "1",
            "is_selected": "0",
            "verify_code": "cp1012288185",
            "recv_type": "1",
            "use_info": {
                "user_info": {
                    "nickname": "帆布鞋",
                    "phone": null
                }
            },
            "coupon_type": "1",
            "parent_app_id": "",
            "user_token": "287141efd2ebfc2182d8abece57a1d04",
            "app_name": "我的应用8",
            "logo": "http://cdn.jisuapp.cn/zhichi_frontend/static/invitation/images/logo.png",
            "title": "新建优惠券",
            "sub_title": "",
            "background": "#eaebed",
            "type": "1",
            "condition": "0.00",
            "value": "2.00",
            "add_time": "1536653726",
            "react": "0",
            "consume_num": "0",
            "recv_num": "2",
            "stock": "1108",
            "limit_num": "1",
            "address": "1131313123132131131",
            "phone": "321313213131",
            "enable_status": "0",
            "start_get_time": "1378224000",
            "end_get_time": "1541001540",
            "start_use_date": "2018-05-01",
            "end_use_date": "2019-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": "",
            "coupon_title": "新建优惠券",
            "status": 1
        },
        {
            "id": "15093",
            "app_id": "AJz4hyOOT6",
            "owner_token": "cafcaa049fe227d5d3579d416f62cd31",
            "coupon_id": "54328",
            "recv_time": "2018-09-12 10:34:18",
            "react_time": "1536719658",
            "consume_time": "0",
            "expire": -1,
            "is_deleted": "1",
            "is_selected": "0",
            "verify_code": "cp1383523081",
            "recv_type": "1",
            "use_info": {
                "user_info": {
                    "nickname": "帆布鞋",
                    "phone": null
                }
            },
            "coupon_type": "1",
            "parent_app_id": "",
            "user_token": "287141efd2ebfc2182d8abece57a1d04",
            "app_name": "我的应用8",
            "logo": "http://cdn.jisuapp.cn/zhichi_frontend/static/invitation/images/logo.png",
            "title": "新建优惠券",
            "sub_title": "",
            "background": "#eaebed",
            "type": "1",
            "condition": "0.00",
            "value": "2.00",
            "add_time": "1536653726",
            "react": "0",
            "consume_num": "0",
            "recv_num": "2",
            "stock": "1108",
            "limit_num": "1",
            "address": "1131313123132131131",
            "phone": "321313213131",
            "enable_status": "0",
            "start_get_time": "1378224000",
            "end_get_time": "1541001540",
            "start_use_date": "2018-05-01",
            "end_use_date": "2019-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": "",
            "coupon_title": "新建优惠券",
            "status": 1
        }
    ],
    "is_more": 0,
    "current_page": 1,
    "count": "3",
    "total_page": 1
}

results matching ""

    No results matching ""