V2 0/activity/get activity coupon

来自技术开发小组内部wiki
跳转至: 导航搜索

功能说明

获取活动优惠券

URL

http://[域名]//v1/activity/get_activity_coupon

返回格式

支持json,xml.通过format参数来控制

HTTP请求方式

POST.可以post的数据为xml或json.

输入参数说明

参数名称 是否必须 类型 描述
uid
int 用户id
aid int 活动id
version

string
客户端版本号

请求示例

正式环境 
http://api.fumubang.com/v2_0/activity/get_activity_coupon
测试环境
http://api.fumubang.net/v2_0/activity/get_activity_coupon
本地环境
http://dev-api.fumubang.net/v2_0/activity/get_activity_coupon

返回参数说明

参数 说明
coupon_type
优惠券列表

正确返回示例

{

    "coupon_type": [
        {
            "coupon_id": "843",       //优惠券id
            "coupon_name": "领券下单2", //优惠券名称
            "coupon_tag": "领券下单", //优惠券标签
            "coupon_remark": "",
            "coupon_type": "1",
            "coupon_money": "50",   //可抵扣金额
            "use_times": "1",
            "use_rank": "0",
            "use_limit": "0",
            "start_time": "2016-08-02 00:00:00",   //优惠券开始时间
            "end_time": "2016-08-18 23:59:59",   //优惠券结束时间
            "min_amount": "50.01",   //优惠券限额
            "send_num": "20",
            "ext_info": null,
            "status": "1",
            "admin_uid": "179",
            "ctime": "2016-08-08 17:52:09",
            "plat_id": "0",
            "limit_type": "1",
            "limit_cate": "",
            "activity_id": "100151",
            "utime": "2016-08-08 17:52:09",
            "desc": "自贡市 shuwen测试活动20-二次确认活动---请勿动", //限制什么使用
            "get_coupon": 0   //是否领取:1是0否
        },
        {
            "coupon_id": "841",
            "coupon_name": "下单领卷",
            "coupon_tag": "领券下单",
            "coupon_remark": "",
            "coupon_type": "1",
            "coupon_money": "10",
            "use_times": "1",
            "use_rank": "0",
            "use_limit": "0",
            "start_time": "2016-08-03 00:00:00",
            "end_time": "2016-08-17 23:59:59",
            "min_amount": "10.01",
            "send_num": "20",
            "ext_info": null,
            "status": "1",
            "admin_uid": "179",
            "ctime": "2016-08-08 17:51:13",
            "plat_id": "0",
            "limit_type": "1",
            "limit_cate": "",
            "activity_id": "100151",
            "utime": "2016-08-08 17:51:13",
            "desc": "自贡市 shuwen测试活动20-二次确认活动---请勿动",
            "get_coupon": 0
        }
    ]

}

错误返回示例

{
    "error_code": "300001",
    "error_msg": "请求参数有误"
}