Real-name Information Verification in City Services

View Markdown

Last edited on 2026-07-04

When integrating WeChat City Services, developers Mini Program can utilize the real-name information verification interface. The primary function is to verify, with the user's consent, whether the real-name information input by the user (or the business party) is accurate and consistent with the real-name information reserved when the user "activated WeChat Pay." This interface falls within the same scope of open access as City Services. Permission application is required. Click here to view detailed instructions.

1. Business Process Description

Step 1: On the Mini Program interface of the business party, if real-name information verification is required, you must redirect to the Mini Program authorization page provided by WeChat City Services using the path specified in the API documentation.

Step 2: After the user clicks "Agree" and confirms on the WeChat authorization page, WeChat will redirect back to the business party's Mini Program, including the code parameter (the code parameter is contained in the returned extraData).

Step 3: Once the business party's page obtains the code, it must call the Backend API provided by WeChat through the backend to verify the real-name information. After verification is complete, the business party can proceed with its specific business workflow based on the situation.

2. Obtaining the code Parameter

When calling the backend API to verify real-name information, you must first obtain the code parameter. Follow these steps to obtain it:

1. Request Method

Redirect to the appid and path provided by WeChat City Services

appid: wx308bd2aeb83d3345 path: subPages/city/wxpay-auth/main

2. Response Method

After the user completes confirmation and agrees, the flow will return to the business party's Mini Program, and the code required for calling the backend API will be included in the extraData field, specifically the code field within extraData.

To learn how to handle the extraData field, click here to learn more.

3. Backend Verification of Real-Name Information

For details, please refer to the Verify Real-Name Information API documentation.