简要描述:

-会员卡升级

请求URL:

POST:一级域名/wapapi/addons/membercard/membercard/upgradeMembercard

参数:

参数名 是否必须 类型 说明

返回示例:

正确时返回:

{
    "data": {
		content: "<p>协议内容</p>"
		content_title: "协议名称"
		membercard_list:[
			0:{
               circle_coupon_list:[
					0{
						at_least: "0.00"
						count: 0
						coupon_genre: 1
						coupon_name: "888"
						coupon_type_id: 70
						create_time: 1589595642
						desc: ""
						discount: "0.00"
						end_receive_time: 1589990399
						end_time: 1590681599
						is_fetch: 1
						max_fetch: 0
						money: "500.00"
						range_type: 1
						shop_id: 0
						shop_range_type: 1
						start_receive_time: 1589299200
						start_time: 1589299200
						update_time: 0
						website_id: 26
					}
				]
				circle_num: 15
				commissionA: "11.00"
				commissionB: "22.00"
				commissionC: "33.00"
				commission_type: 1
				coupon_list:[
					0{
						at_least: "0.00"
						count: 0
						coupon_genre: 1
						coupon_name: "888"
						coupon_type_id: 70
						create_time: 1589595642
						desc: ""
						discount: "0.00"
						end_receive_time: 1589990399
						end_time: 1590681599
						is_fetch: 1
						max_fetch: 0
						money: "500.00"
						range_type: 1
						shop_id: 0
						shop_range_type: 1
						start_receive_time: 1589299200
						start_time: 1589299200
						update_time: 0
						website_id: 26
					}
				]
				create_time: 1589772084
				id: 1
				is_become_distributor: 1
				is_circle_coupon: 1
				is_default: 0
				is_free_shipping: 1
				is_give_commission: 1
				is_give_coupon: 1
				is_give_point: 1
				is_member_discount: 1
				is_online: 1
				member_discount: "9.00"
				membercard_logo: "https://vslai-com-cn.oss-cn-hangzhou.aliyuncs.com/upload/26/2019/09/26/16/1569485199980.jpg"
				membercard_name: "金卡"
				membercard_payment: 1
				point_num: "88.00"
				point_type: 1
				spec_list:[
					0{
						first_buy_price: "300.00"
						spec_id: 26
						is_first_buy: 1
						limit_time: "3.00"
						market_price: "300.00"
						membercard_id: 1
						price: "300.00"
						time_type: 3
						website_id: 26
					}
				]
				website_id: 26
				weight: 4
				wx_membercard_id: "" 
           }
		]
	}
    "code": 1,
	"message": "获取成功",
}

错误时返回:

{
    "code": -1,
    "message": "系统繁忙"
}

返回参数说明:

参数名 类型 说明
content_title string 协议名称
content string 协议内容
membercard_list array 会员卡列表
id int 会员卡id
membercard_name string 会员卡名称
membercard_logo string 会员卡logo
is_member_discount int 是否有会员折扣权益
0:没有
1:有
member_discount int 折扣值
is_free_shipping int 是否有全场包邮权益
0:没有
1:有
is_give_coupon int 是否有开通送优惠券权益
0:没有
1:有
coupon_list array 开通送优惠券的优惠券信息集合
coupon_type_id int 优惠券id
coupon_name string 优惠券名称
coupon_genre int 优惠券类型
1:无门槛
2:满减
3:折扣
at_least float 满多少可用
money float 1,2类型的优惠金额
discount float 0.00-10.00折扣
start_time int 优惠券有效起始时间
end_time int 优惠券有效结束时间
shop_range_type int 优惠券适用范围
1:直营店
2:全平台
range_type int 使用范围
0:部分产品使用
1:全场产品使用
is_circle_coupon int 是否有周期送优惠券权益
0:没有
1:有
circle_num int 周期天数
circle_coupon_list array 周期送优惠券的优惠券信息集合
is_give_point int 是否有额外赠送积分权益
0:没有
1:有
point_type int 赠送积分类型
1:倍数
2:固定
point_num int 赠送的积分数
is_become_distributor int 是否有成为分销商权益
0:没有
1:有
is_give_commission int 是否有额外赠送佣金权益
0:没有
1:有
commission_type int 赠送佣金类型
1:固定
2:比例
commissionA int 一级返佣
commissionB int 二级返佣
commissionC int 三级返佣
spec_list array 售价规格集合
spec_id int 会员卡售价规格id
time_type int 粒度
1:按年
2:按季
3:按月
4:按天
limit_time int 有限期
price float 售价
market_price float 划线价
is_first_buy int 是否有首次购买价
0:没有
1:有
first_buy_price float 首次购买价