Updated on 2025-11-13 GMT+08:00

Pushing an Authorization Change Notification on WeChat

Function

This interface is invoked to push a notification in POST mode to the authorization event receiving URL (entered by the third-party platform during creation) of the third-party platform on the WeChat server, after an official account or mini program authorizes, cancels the authorization, or updates the authorization of a third-party platform.

Usage Description

This interface needs to be configured on the WeChat open platform. For details, see Commissioning the Access Through the WeChat Channel.

Interface Authentication

For details, see https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/creat_token.html.

Interface Prototype

Table 1 Interface prototype description

Method

POST

URL

https://{IP address}:{Port number}/social/with/wechat/receiveEvent

{IP address}:{Port number} indicates the IP address and port number of the NSLB exposed externally.

Request Parameters

For details, see https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/authorize_event.html and https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/component_verify_ticket.html.

Response Parameters

For details, see https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/authorize_event.html and https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/component_verify_ticket.html.

Example

For details, see https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/authorize_event.html and https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/component_verify_ticket.html.