创建活动
创建会员活动,可以创建支付后开卡有礼&老会员有礼、以及小程序开卡有礼&老会员有礼,共四种类型的活动。 官方文档 官方文档
js
wxpay.v3.marketing.membercardActivity.activities.post({
card_id,
activity_name,
activity_type,
begin_time,
end_time,
award_send_period,
stock_list,
out_request_no,
pay_activity_setting,
miniprogram_activity_setting,
})
.then(
({
data: {
activity_id,
activity_status,
create_time,
update_time,
card_id,
activity_name,
activity_type,
begin_time,
end_time,
award_send_period,
stock_list,
out_request_no,
pay_activity_setting,
miniprogram_activity_setting,
},
}) => ({
activity_id,
activity_status,
create_time,
update_time,
card_id,
activity_name,
activity_type,
begin_time,
end_time,
award_send_period,
stock_list,
out_request_no,
pay_activity_setting,
miniprogram_activity_setting,
})
)
查询活动列表
js
wxpay.v3.marketing.membercardActivity.activities.get({
params,
})
.then(
({
data: {
data,
offset,
limit,
total_count,
},
}) => ({
data,
offset,
limit,
total_count,
})
)