Pre-fill Store Information

View Markdown

Last edited on 2026-09-10

This API should be called on the server side and cannot be called directly on the client side (Mini Program, web page, APP, etc.). For details, please refer to API Call Guide.

API English Name: batchcreateretail

This API allows for the pre-filling of store information.

Scenario Description: For users who have pre-filled store information, when logging into Mini Program to initiate the store authentication and authorization process, the pre-filled store information is displayed by default. Users can complete the authentication and authorization with a single confirmation, reducing operational costs and improving the success rate of authentication and authorization.

1. Call Method

HTTPS Call

POST https://api.weixin.qq.com/wxa/business/batchcreateretail?access_token=ACCESS_TOKEN

Cloud Call

  • This API does not support cloud call.

Third-party Call

  • This API supports third-party platforms on behalf of Merchant call.

  • The permission set ID of this API is: 158

  • After the service provider obtains one of the permission set authorizations, it can use authorizer_access_token to call on behalf of Merchant, for details please refer to Third-party Call documentation.

2. Request Parameters

Query Parameters Query String Parameters

ParameterTypeRequiredExampleDescription
access_tokenstringYesACCESS_TOKENAPI call credential, you can use access_token, authorizer_access_token

Request Body Request Payload

ParameterTypeRequiredDescription
retail_info_listobjarrayYesStore information list. A maximum of 100 stores can be imported per call.

Body.retail_info_list(Array) Object Payload

Store information list. A maximum of 100 stores can be imported per call.

ParameterTypeRequiredDescription
mobile_phonestringYesPhone Number
retail_namestringYesStore Name. Length limit: 1-100 characters, where one Chinese character counts as 2 characters.
retail_typestringNoLevel 1 Store Type. Options: "Grocery", "Convenience Store", "Supermarket", "Restaurant", "Maternity & Baby", "Tobacco & Alcohol", "Other"
sub_retail_typestringNoLevel 2 Store Type. Required if Level 1 type is "Other".
address_provincestringYesStore Address, Province
address_citystringYesStore Address, City
address_regionstringYesStore Address, District
address_streetstringYesStore Address, Detailed Street Address
registration_numberstringNoBusiness License Registration Number
biz_namestringNoEnterprise Name
corporation_namestringNoLegal Representative Name
latitudenumberNoLatitude
longitudenumberNoLongitude
business_typearrayNoLevel 1 Main Product. Options: "Food & Beverage", "Catering", "Fresh Produce (including Flowers)", "Tobacco & Alcohol", "Footwear & Underwear", "Personal Care & Beauty", "3C Digital", "Home Appliances", "Auto Repair/Parts", "Medical/Devices", "Home Decoration/Hardware/Building Materials", "Home Textiles", "Stationery & Toys", "Maternity & Baby", "Pets", "Other"
other_business_typestringNoLevel 2 Main Product. Required if Level 1 Main Product includes "Other".

3. Response Parameters

Response Body Response Payload

ParameterTypeDescription
errcodenumberError Code
errmsgstringError Message
num_successnumbernum_success
num_failurenumbernum_failure
failure_record_listobjarrayfailure_record_list

Res.failure_record_list(Array) Object Payload

failure_record_list

ParameterTypeDescriptionEnum
mobile_phonestringPhone Number-
registration_numberstringBusiness License Registration Number-
failure_codenumberfailure_codeEnum Values

4. Enum Information

Res.failure_record_list(Array).failure_code Enum

failure_code

Enum ValueDescription
2Invalid phone number
3Invalid store type
4Address parsing failed
5Phone number already associated with store information
6Invalid store name (Length limit is 1-100 characters, where one Chinese character counts as 2 characters)
7Invalid main product

5. Notes

If the call to this interface returns the failure code 4: Address Parsing Failed, you can pass the address data that failed to import into the Address Parsing Interface (Address Parsing Interface Documentation) to obtain the standardized province, city, and district, and then re-import it. Attachment: Valid Address Combinations for Store Assistant

Common QA

  1. After pre-filling store information, what is the correct way to retrieve the information to complete authentication, and why might errors occur?

Answer: ① Brand pre-fills store information: Suppose Phone A has store information pre-filled by a brand. Any WeChat ID can log into Phone A + verification code to retrieve the store information. Once the store information is retrieved, the same WeChat ID that originally logged into Phone A to retrieve the information must be used to continue completing the authentication; otherwise, using a different WeChat ID will result in an error.

② Store pre-fills store information itself: Suppose WeChat ID A logs into Phone B + verification code to pre-fill some store information, then exits the plugin. Later, if another WeChat ID logs into Phone B + verification code to retrieve the previously pre-filled information and continue authentication, an error will occur. You must use the original WeChat ID A to log into Phone B + verification code to retrieve the information.

Note: Regardless of the pre-filling method, once the store authentication process is completed and authentication is successful, any WeChat ID can use the same phone number + verification code to retrieve the authenticated store information and make modifications to the store information.

6. Code Example

Request Example

{
    "retail_info_list": [
        {
            "mobile_phone": "12345678910",
            "retail_name": "Zhang San BBQ",
            "retail_type": "Restaurant",
            "address_province": "Guangdong Province",
            "address_city": "Guangzhou City",
            "address_region": "Haizhu District",
            "address_street": "No. 397 Xingang Middle Road, TIT Creative Park",
            "longitude": 113.32531,
            "latitude": 23.0996132
        },
        {
            "mobile_phone": "a123456789",
            "retail_type": "Convenience Store",
            "address_province": "Guangdong Province",
            "address_city": "Guangzhou City",
            "address_region": "Haizhu District",
            "address_street": "No. 397 Xingang Middle Road, TIT Creative Park",
            "registration_number": "xxxxx",
            "biz_name": "xxxxx",
            "corporation_name": "xxxxx"
        }
    ]
}

Response Example

{
    "errcode": 0,
    "errmsg": "ok",
    "num_success": 1,
    "num_failure": 1,
    "failure_record_list": [
        {
            "mobile_phone": "a123456789",
            "registration_number": "",
            "failure_code": 6
        }
    ]
}

7. Error Codes

The following is the error code list of this API, other error codes can refer to Common Error Codes; When encountering errors in calling the API, you can use the official API Diagnostic Tool to assist in locating and analyzing problems.

Error CodeError Description
-1System is busy, please try again later
0Success
40001invalid credential, access_token is invalid or not latest. Invalid token.
41001access_token missing
47001data format error
48001api unauthorized Mini Program does not have permission for this API. Please contact the point of contact to enable it.
61004access clientip is not registered, not in ip-white-list
61007api is unauthorized to component
9404000Too many uploads
9404001Missing store information parameters

8. Applicable Scope

The callable account types for this API are not yet clear, or are determined by the calling parameters in business. Please refer to the actual calling situation.