Skip to content

查询红包记录

用于商户对已发放的红包进行查询红包的具体信息,可支持普通红包和裂变包。 官方文档 官方文档

js
const { 
Transformer
} =
require
('wechatpay-axios-plugin')
wxpay
.
v2
.
mmpaymkttransfers
.
gethbinfo
.
post
({
nonce_str
,
mch_billno
,
mch_id
,
appid
,
bill_type
,
}, {
security
,
transformResponse
: [
Transformer
.
toObject
], })
.
then
(
({
data
: {
return_code
,
return_msg
,
result_code
,
err_code
,
err_code_des
,
mch_billno
,
mch_id
,
detail_id
,
status
,
send_type
,
hb_type
,
total_num
,
total_amount
,
reason
,
send_time
,
refund_time
,
refund_amount
,
wishing
,
remark
,
act_name
,
hblist
,
openid
,
amount
,
rcv_time
,
}, }) => ({
return_code
,
return_msg
,
result_code
,
err_code
,
err_code_des
,
mch_billno
,
mch_id
,
detail_id
,
status
,
send_type
,
hb_type
,
total_num
,
total_amount
,
reason
,
send_time
,
refund_time
,
refund_amount
,
wishing
,
remark
,
act_name
,
hblist
,
openid
,
amount
,
rcv_time
,
}) )

Released under the MIT License. (SITEMAP)