# Create a store Weixin Mini Program

Debugging Tools

Interface should be called on the server side, not in the front end (Weixin Mini Program, web pages, APP, etc.) directly called, specific reference interface call guide

Interface name: applywxastore

This interface is used to create a store Weixin Mini Program principal information.

Official Account Manager must confirm before entering the audit process

# 1. How to call

# HTTPS calls

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

# Cloud Calls

  • This interface does not support cloud calls

# Third party invocation

  • This interface supports Third Party Platform generation business call.

  • This interface belongs to the permission set id: 8-10,13

  • When a service provider is authorized by one of the permissions set, it can call on behalf of the merchant by using authorizer_access_token , which can be viewed in the third-party call documentation.

# 2. Request parameters

# Query parametersQuery String parameters

Parameter NametypeRequired to fill inIntroductions
access_tokenstringyesInterface invocation credentials, using access_token , authorizer_access_token

# Request BodyRequest Payload

Parameter NametypeRequired to fill inIntroductions
first_catidnumberyesPrimary category id
second_catidnumberyesSecondary category id
headimg_mediaidstringyesAvatar mediaid (images in jpg and png formats)
nicknamestringyesStore Weixin Mini Program nickname name length is 4-30 characters (Chinese count two characters)
introstringyesWeixin Mini Program
qualification_liststringyesCategory related documents, temporary material mediaid
org_codestringnoBusiness license or organization code, temporary material mediaid
other_filesstringnoSupplementary material mediaid

# 3. Return Parameters

# Response Payload

Parameter NametypeIntroductions
errcodenumberError code
errmsgstringError Description

# 4. Note

There are no special considerations for this interface

# 5. Code examples

Example Requests

{
  "first_catid": 476,
  "second_catid": 477,
  "qualification_list": "RTZgKZ386yFn5kQSWLTxe4bqxwgzGBjs3OE02cg9CVQk1wRVE3c8fjUFX7jvpi-P",
  "headimg_mediaid": "RTZgKZ386yFn5kQSWLTxe4bqxwgzGBjs3OE02cg9CVQk1wRVE3c8fjUFX7jvpi-P",
  "nickname": "hardenzhang308",
  "intro": "hardenzhangtest",
  "org_code": "",
  "other_files": ""
}

Return an example

{
  "errcode" : 0,
  "errmsg" : "ok"
}

# 6. Error code

The following is a list of error codes for this interface, other error codes can refer to General error codes

Error codeError DescriptionSolutions
40001invalid credential  access_token isinvalid or not latestAppSecret error while getting access_token, or access_token is invalid.Developers should check that AppSecret is correct, or that they are calling interfaces for the appropriate Official Account
43104this appid does not have permissionIt does not have access rights, and is currently only open to e-commerce categories (specifically including the following categories: e-marketplace, merchant proprietary, cross-border e-business).
85024Additional information is neededThe org_code and other_files fields need to be filled in
85025this phone reach bind limit The number of administrators' mobile phone registrations has exceeded the maximum and cannot be used to open a store.
85026this wechat account reach bind limit This WeChat number has been bound to 5 managers, please use another WeChat ID to complete the information registration
85027this idcard reach bind limit Administrator ID has been registered 5 times. Please use another ID to complete user information registration
85028this contractor reach bind limit The number of registrations of this entity has exceeded the maximum, and the entity cannot be used to open stores.
85029nickname has used The name of the business has been occupied, please try again with a different one.
85030invalid nickname sizeThe name should be 4-30 characters long (one Chinese character takes up two characters). It should not contain special characters or reserved words such as "WeChat""
85031nickname is forbidden This name cannot be used.
85032nickname is complained The name is under protection for infringement complaints and is not supportive of the application. Please resubmit a new name
85033nickname is illegal The name shall not contain any content that violates the public platform agreement, relevant laws, regulations and policies, and shall not use reserved words such as "WeChat"
85034nickname is protected The name of the business is protected for 15 days during the name change, please try a different name again.
85035nickname is forbidden for different contractor You need the same entity as that account to apply
85036introduction is illegal The introduction must not contain anything that is false, impersonating, using another person's name, which is likely to constitute confusion, misidentification, and which is prohibited by law, regulations and policies.
85049reach headimg or introduction quota limit Profile or profile modification reaches a monthly limit
85050verifying  don't apply againPlease do not submit it repeatedly. It is under review.
85053please apply merchant first Please successfully create a store before invoking
85056mediaid is invalid Temporary mediaid is invalid

# 7. Scope of application

How this interface can be invoked under different account types:
Official Account Service Account
  • ✔: The account can call this interface
  • Other account types that are not expressly stated may not be called on this interface without special instructions;