Skip to content

创建投诉通知回调

商户通过调用此接口创建投诉通知回调URL,当用户产生新投诉且投诉状态已变更时,微信支付会通过回 调URL通知商户。对于服务商、渠道商,会收到所有子商户的投诉信息推送。 官方文档

js
wxpay
.
v3
.
merchantService
.
complaintNotifications
.
post
({
url
,
}) .
then
(
({
data
: {
mchid
,
url
,
}, }) => ({
mchid
,
url
,
}) )

查询投诉通知回调

商户通过调用此接口查询投诉通知的回调URL。 官方文档

js
wxpay
.
v3
.
merchantService
.
complaintNotifications
.
get
()
.
then
(
({
data
: {
mchid
,
url
,
}, }) => ({
mchid
,
url
,
}) )

更新投诉通知回调

商户通过调用此接口更新投诉通知的回调URL。官方文档

js
wxpay
.
v3
.
merchantService
.
complaintNotifications
.
put
({
url
,
}) .
then
(
({
data
: {
mchid
,
url
,
}, }) => ({
mchid
,
url
,
}) )

删除投诉通知回调

当商户不再需要推送通知时,可通过调用此接口删除投诉通知的回调URL,取消通知回调。 官方文档

js
wxpay
.
v3
.
merchantService
.
complaintNotifications
.
delete
()
.
then
(({
status
, }) =>
status
=== 204)

Released under the MIT License. (SITEMAP)