V2 0/longtour/get coupon list long
目录
功能说明
获取长线游优惠券列表 (目前长线优惠券使用规则:全品类,家庭旅行类,满减券,代金券可用)
URL
正式环境 http://api.fumubang.com/v1/user/get_coupon_list_long 测试环境 http://api.fumubang.net/v1/user/get_coupon_list_long
格式
json
HTTP请求方式
POST
输入参数说明
参数名称 | 是否必须 | 类型 | 描述 |
---|---|---|---|
uid | 是 | int | 用户UID |
sum_money |
是 |
int |
订单总金额 |
app_sub_money |
否 |
int |
下单立减金额,目前产品暂不使用,默认传0 |
version |
是 |
int |
版本号 |
product_id |
是 |
int |
产品id |
请求示例
返回方式说明
xml或json
正确返回说明
{
"status": "success",
"data": [
{
"min_amount": "满1.01可用", //满多少钱使用
"use_status": "0", //使用状态 0为未使用 1为使用中 2为已使用 3是已冻结
"coupon_type": "1", //类型
"coupon_name": "家庭旅行", //优惠券名称
"plat_id": "0",//限平台id
"limit_type": "0",//限分类
"activity_id": "0",//限活动id
"coupon_sn": "DFjTbWDSJXUc",//优惠券号
"use_limit": "0",//优惠券使用范围 0为无限制
"coupon_money": "1",//优惠券金额
"coupon_start_time": "2016-01-01 00:00:00",//代金券使用开始时间
"coupon_end_time": "2016-02-29 23:59:59",//优惠券使用截至时间
"order_sn": "",//代金券使用时绑定的订单
"use_time": "0000-00-00 00:00:00",//代金券使用时间
"use_time_stamp": "0",
"coupon_tag": "",//代金券标签
"is_use_status": 1,//当前订单是否可用:0否1可用(2.6增加)
"is_kdq": 0,//过期状态:0正常,1快过期,2已过期(2.6增加)
"plat": "",//限平台名称
"coupon_type_cn": "代金券",//代金券类型名字
"coupon_status_cn": "未使用",//代金券状态
"start_time": "2016-01-01",//有效期开始时间
"end_time": "2016-02-29",//有效期结束时间
"selected":1//是否默认选中:1是;0否
},
{
"min_amount": "满1.01可用",
"use_status": "0",
"coupon_type": "1",
"coupon_name": "全品类",
"plat_id": "0",
"limit_type": "0",
"activity_id": "0",
"coupon_sn": "2C77TpVQfJmp",
"use_limit": "0",
"coupon_money": "1",
"coupon_start_time": "2015-09-15 14:03:40",
"coupon_end_time": "2016-10-06 23:59:59",
"order_sn": "",
"use_time": "0000-00-00 00:00:00",
"use_time_stamp": "0",
"coupon_tag": "萨嘎",
"is_use_status": 1,
"is_kdq": 0,
"plat": "",
"coupon_type_cn": "代金券",
"coupon_status_cn": "未使用",
"start_time": "2015-09-15",
"end_time": "2016-10-06"
},
{
"min_amount": "满1.01可用",
"use_status": "0",
"coupon_type": "2",
"coupon_name": "1元优惠券",
"plat_id": "0",
"limit_type": "0",
"activity_id": "0",
"coupon_sn": "abrxUWpKmJCB",
"use_limit": "0",
"coupon_money": "1",
"coupon_start_time": "2015-11-23 00:00:00",
"coupon_end_time": "2016-11-23 23:59:59",
"order_sn": "",
"use_time": "0000-00-00 00:00:00",
"use_time_stamp": "0",
"coupon_tag": "",
"is_use_status": 1,
"is_kdq": 0,
"plat": "",
"coupon_type_cn": "满减券",
"coupon_status_cn": "未使用",
"start_time": "2015-11-23",
"end_time": "2016-11-23"
}
]
}
错误返回示例
参数不全
<error_code>300001</error_code> <error_msg>参数有误</error_msg>