查询商家券详情
商户可通过该接口查询已创建的商家券批次详情信息。 官方文档
js
wxpay.v3.marketing.busifavor.stocks._stock_id_.get({
stock_id,
})
.then(
({
data: {
stock_name,
belong_merchant,
comment,
goods_name,
stock_type,
coupon_use_rule,
stock_send_rule,
custom_entrance,
display_pattern_info,
stock_state,
coupon_code_mode,
stock_id,
coupon_code_count,
notify_config,
send_count_information,
},
}) => ({
stock_name,
belong_merchant,
comment,
goods_name,
stock_type,
coupon_use_rule,
stock_send_rule,
custom_entrance,
display_pattern_info,
stock_state,
coupon_code_mode,
stock_id,
coupon_code_count,
notify_config,
send_count_information,
})
)
修改商家券基本信息
商户可以通过该接口修改商家券基本信息 官方文档
js
wxpay.v3.marketing.busifavor.stocks._stock_id_.patch({
custom_entrance,
comment,
goods_name,
out_request_no,
display_pattern_info,
coupon_use_rule,
stock_send_rule,
notify_config,
}, { stock_id, })
.then(({ status, }) => status === 204)