请求URL:

POST/plugin.wechat-chat-sidebar.frontend.controller.customer.customer.couponsOfMemberByStatusV2

参数:

参数名 是否必须 类型 说明
client string 值是:work 代表是企业微信端
type int 值是:17 代表是企业微信端
page int 页码
status_request int 默认1 1未使用 2 优惠券已经过期 3 已经使用
coupon_type int 默认1 coupon_type 0:全部 1:平台 2:门店 3:酒店 4:指定商品 5:分类商品 6: 兑换劵 7:满减劵 8:折扣劵 9:平台商品和门店 10: 快过期

返回示例:

正确时返回:

{
	result: 1,
	msg: "",
	data: {
		set: {
			transfer: true
		},
		data: [{
				id: 155,
				coupon_id: 5,
				used: 0,
				use_time: 0,
				get_time: "2017-09-26 00:00:00",
				near_expiration: 0,
				time_start: "2017-09-26",
				time_end: "2017-09-27 23:59:59",
				belongs_to_coupon: {
					id: 5,
					name: "优惠券测试",
					coupon_method: 1,
					deduct: "10.00",
					discount: "0.00",
					enough: 100,
					use_type: 0,
					category_ids: null,
					categorynames: null,
					goods_ids: [
						"64"
					],
					goods_names: [
						"爱心值测试"
					],
					storenames: null,
					time_limit: 0,
					time_days: 1,
					time_start: "2017-09-26 00:00:00",
					time_end: "2017-10-03 00:00:00",
					total: -1,
					money: "0.00",
					credit: 0,
					plugin_id: 0,
					use_conditions: null,
					coupon_type_name: "平台商品"
				},
				api_limit: "商城通用"
			},
			{
				id: 150,
				coupon_id: 5,
				used: 0,
				use_time: 0,
				get_time: "2017-09-26 00:00:00",
				near_expiration: 0,
				time_start: "2017-09-26",
				time_end: "2017-09-27 23:59:59",
				belongs_to_coupon: {
					id: 5,
					name: "优惠券测试",
					coupon_method: 1,
					deduct: "10.00",
					discount: "0.00",
					enough: 100,
					use_type: 0,
					category_ids: null,
					categorynames: null,
					goods_ids: [
						"64"
					],
					goods_names: [
						"爱心值测试"
					],
					storenames: null,
					time_limit: 0,
					time_days: 1,
					time_start: "2017-09-26 00:00:00",
					time_end: "2017-10-03 00:00:00",
					total: -1,
					money: "0.00",
					credit: 0,
					plugin_id: 0,
					use_conditions: null,
					coupon_type_name: "平台商品"
				},
				api_limit: "商城通用"
			},
			{
				id: 146,
				coupon_id: 3,
				used: 0,
				use_time: 0,
				get_time: "2017-09-26 00:00:00",
				near_expiration: 0,
				time_start: "2017-09-26",
				time_end: "2017-09-27 23:59:59",
				belongs_to_coupon: {
					id: 3,
					name: "满100减10",
					coupon_method: 1,
					deduct: "10.00",
					discount: "0.00",
					enough: 100,
					use_type: 0,
					category_ids: null,
					categorynames: null,
					goods_ids: null,
					goods_names: null,
					storenames: null,
					time_limit: 0,
					time_days: 1,
					time_start: "2017-07-14 00:00:00",
					time_end: "2017-07-21 00:00:00",
					total: 100,
					money: "0.00",
					credit: 0,
					plugin_id: 0,
					use_conditions: null,
					coupon_type_name: "平台商品"
				},
				api_limit: "商城通用"
			},
			{
				id: 135,
				coupon_id: 3,
				used: 0,
				use_time: 0,
				get_time: "2017-09-26 00:00:00",
				near_expiration: 0,
				time_start: "2017-09-26",
				time_end: "2017-09-27 23:59:59",
				belongs_to_coupon: {
					id: 3,
					name: "满100减10",
					coupon_method: 1,
					deduct: "10.00",
					discount: "0.00",
					enough: 100,
					use_type: 0,
					category_ids: null,
					categorynames: null,
					goods_ids: null,
					goods_names: null,
					storenames: null,
					time_limit: 0,
					time_days: 1,
					time_start: "2017-07-14 00:00:00",
					time_end: "2017-07-21 00:00:00",
					total: 100,
					money: "0.00",
					credit: 0,
					plugin_id: 0,
					use_conditions: null,
					coupon_type_name: "平台商品"
				},
				api_limit: "商城通用"
			},
			{
				id: 134,
				coupon_id: 3,
				used: 0,
				use_time: 0,
				get_time: "2017-09-26 00:00:00",
				near_expiration: 0,
				time_start: "2017-09-26",
				time_end: "2017-09-27 23:59:59",
				belongs_to_coupon: {
					id: 3,
					name: "满100减10",
					coupon_method: 1,
					deduct: "10.00",
					discount: "0.00",
					enough: 100,
					use_type: 0,
					category_ids: null,
					categorynames: null,
					goods_ids: null,
					goods_names: null,
					storenames: null,
					time_limit: 0,
					time_days: 1,
					time_start: "2017-07-14 00:00:00",
					time_end: "2017-07-21 00:00:00",
					total: 100,
					money: "0.00",
					credit: 0,
					plugin_id: 0,
					use_conditions: null,
					coupon_type_name: "平台商品"
				},
				api_limit: "商城通用"
			},
			{
				id: 12,
				coupon_id: 4,
				used: 0,
				use_time: 0,
				get_time: "2017-08-16 00:00:00",
				near_expiration: 0,
				time_start: "2017-08-16",
				time_end: "2017-08-26 23:59:59",
				belongs_to_coupon: {
					id: 4,
					name: "12",
					coupon_method: 1,
					deduct: "10.00",
					discount: "0.00",
					enough: 0,
					use_type: 0,
					category_ids: null,
					categorynames: null,
					goods_ids: null,
					goods_names: null,
					storenames: null,
					time_limit: 0,
					time_days: 10,
					time_start: "2017-08-16 00:00:00",
					time_end: "2017-08-23 00:00:00",
					total: 0,
					money: "0.00",
					credit: 0,
					plugin_id: 0,
					use_conditions: null,
					coupon_type_name: "平台商品"
				},
				api_limit: "商城通用"
			}
		],
		search_array: [
			"全部",
			"平台",
			"门店",
			"酒店",
			"指定商品",
			"分类商品",
			"兑换券",
			"满减券",
			"折扣券",
			"平台商品和门店",
			"快过期"
		]
	}
}

###购物车集合数据说明

参数名 类型 说明
data[0][coupon_id] int 优惠卷id
data[0][name] string 优惠卷名称
data[0][deduct] int 优惠卷抵扣值
data[0][enough] int 满多少可用
data[0][coupon_type_name] int 优惠卷类型
data[0][time_start] int 开始时间
data[0][time_end] int 结束时间