# Create a store Weixin Mini Program
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 Name | type | Required to fill in | Introductions |
---|---|---|---|
access_token | string | yes | Interface invocation credentials, using access_token , authorizer_access_token |
# Request BodyRequest Payload
Parameter Name | type | Required to fill in | Introductions |
---|---|---|---|
first_catid | number | yes | Primary category id |
second_catid | number | yes | Secondary category id |
headimg_mediaid | string | yes | Avatar mediaid (images in jpg and png formats) |
nickname | string | yes | Store Weixin Mini Program nickname name length is 4-30 characters (Chinese count two characters) |
intro | string | yes | Weixin Mini Program |
qualification_list | string | yes | Category related documents, temporary material mediaid |
org_code | string | no | Business license or organization code, temporary material mediaid |
other_files | string | no | Supplementary material mediaid |
# 3. Return Parameters
# Response Payload
Parameter Name | type | Introductions |
---|---|---|
errcode | number | Error code |
errmsg | string | Error 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 code | Error Description | Solutions |
---|---|---|
40001 | invalid credential access_token isinvalid or not latest | AppSecret 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 |
43104 | this appid does not have permission | It 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). |
85024 | Additional information is needed | The org_code and other_files fields need to be filled in |
85025 | this phone reach bind limit | The number of administrators' mobile phone registrations has exceeded the maximum and cannot be used to open a store. |
85026 | this wechat account reach bind limit | This WeChat number has been bound to 5 managers, please use another WeChat ID to complete the information registration |
85027 | this idcard reach bind limit | Administrator ID has been registered 5 times. Please use another ID to complete user information registration |
85028 | this contractor reach bind limit | The number of registrations of this entity has exceeded the maximum, and the entity cannot be used to open stores. |
85029 | nickname has used | The name of the business has been occupied, please try again with a different one. |
85030 | invalid nickname size | The 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"" |
85031 | nickname is forbidden | This name cannot be used. |
85032 | nickname is complained | The name is under protection for infringement complaints and is not supportive of the application. Please resubmit a new name |
85033 | nickname 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" |
85034 | nickname is protected | The name of the business is protected for 15 days during the name change, please try a different name again. |
85035 | nickname is forbidden for different contractor | You need the same entity as that account to apply |
85036 | introduction 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. |
85049 | reach headimg or introduction quota limit | Profile or profile modification reaches a monthly limit |
85050 | verifying don't apply again | Please do not submit it repeatedly. It is under review. |
85053 | please apply merchant first | Please successfully create a store before invoking |
85056 | mediaid is invalid | Temporary mediaid is invalid |
# 7. Scope of application
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;