---
url: "https://pay.weixin.qq.com/doc/v3/partner/4016022266.md"
title: "开发指引"
doc_id: 4016022266
---

>更新时间：2025.09.16

在订阅某个消息主题后，当商户发生该主题下的业务变更时，微信支付会向预填写的服务器地址发送消息。



## 接收订阅消息

以「商户新增管控流水通知」为例，该主题的消息结构见：[点击查看消息结构详情](https://pay.weixin.qq.com/xdc/mchpartnerweb/index.php/extend/notify/provider_notify/topic_desc/20000)

当商户新增一条管控流水时，服务商将收到如下消息示例

```
{
    "id": "d1dbc742-f4a4-1111-9318-55e8a8bc4d20",
    "create_time": "2024-06-19T15:22:17+08:00",
    "resource_type": "encrypt-resource",
    "event_type": "MERCHANT_NOTIFY.NOTIFY",
    "summary": "订阅消息",
    "resource": {
        "original_type": "merchant_notify",
        "algorithm": "AEAD_AES_256_GCM",
        "ciphertext": "fiBrsqllJFsZy8110iJFzwlFPqHoWH/BQXpiSUTsiQZuiajEKqMXj5Yzqve5t4RCKIVupt/ILfyNRJkGwS9WbTc+OkfYrY+PQlcI25P0kKn0/bc+EKV9OK12NOVesOpjtU7RRMudjs1v+vp70Gr8mzubQ087plsee1x0hH84Qid+i1nyXfxaDpkDUJefHfRnBohosYjN6H7IrudENBt0ZQtAQTz0m8BqM29S6+YJRy0AUCBfQk27+xy3rxby5zZ5/rsjAp/Si7sSjk0BQw8/AfwU70e6FyLrU0u6f+nEisioaeePKayMmoDBA+4j/pFzvyFdp5JDcqbzX5u/35prIUrIzrtsnHsnZLAa0bf8fpSthkC6EQ8=",
        "associated_data": "merchant_notify",
        "nonce": "zeBlNx7MOy8s"
    }
}
```

解密后的消息内容如下

```
{
    "message_content": {
        "merchant_code": "00000000000",
        "merchant_company_name": "测试商户号",
        "business_time": "2024-06-19T15:22:17+08:00",
        "business_code": "空",
        "business_state": "TEST"
    },
    "topic_name": {
        "topic_english_name": "test",
        "topic_chinese_name": "测试消息"
    }
}
```

解密流程可参考：[如何解密证书和回调报文](https://pay.weixin.qq.com/doc/v3/partner/4012082320.md)

详情可参考：[支付通知](https://pay.weixin.qq.com/doc/v3/partner/4012085146.md)

## 进行后续处理

以「商户新增管控流水通知」为例，合作伙伴在接收到消息后，可通过 「特约商户管控状态查询接口」来进一步定位商户遇到的具体问题，该接口资料如下：

指引文档：[商户被管控能力及原因查询](https://pay.weixin.qq.com/doc/v3/partner/4012165270.md)

API 文档：[查询子商户管控情况](https://pay.weixin.qq.com/doc/v3/partner/4012803072.md)