# Create a store in a map
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: createnewpoid
This interface is used to create stores in Tencent Maps
# 1. How to call
# HTTPS calls
POST https://api.weixin.qq.com/wxa/create_map_poi?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,37
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 |
---|---|---|---|
name | string | yes | name |
longitude | string | yes | longitude |
latitude | string | yes | latitude |
province | string | yes | province |
city | string | yes | city |
district | string | yes | area |
address | string | yes | Detailed address |
category | string | yes | Categories, such as food: Chinese restaurants |
telephone | string | yes | Phone numbers, which may be multiple, using the English divisional spacing of 010-666666-111; 010-6666666; 010- 6666666-222 |
photo | string | yes | Store photo url |
license | string | yes | Business license url |
introduct | string | yes | introduce |
districtid | string | yes | Tencent map pulls the id returned by the provincial and urban information interface |
poi_id | string | yes | If you are moving stores, you must fill in the poi_id field |
# 3. Return Parameters
# Response Payload
Parameter Name | type | Introductions |
---|---|---|
errcode | number | Error code |
errmsg | string | Error Description |
data | object | data |
# Res.dataObject Payload
data
Parameter Name | type | Introductions |
---|---|---|
base_id | number | Audit Single ID |
rich_id | number | - |
# 4. Note
There are no special considerations for this interface
# 5. Code examples
Example Requests
{
"name": "hardenzhang",
"longitude": "113.323753357",
"latitude": "23.0974903107",
"province": "广东省",
"city": "广州市",
"district": "海珠区",
"address": "TIT",
"category": "类目1:类目2",
"telephone": "12345678901",
"photo": "http://mmbiz.qpic.cn/mmbiz_png/tW66AWE2K6ECFPcyAcIZTG8RlcR0sAqBibOm8gao5xOoLfIic9ZJ6MADAktGPxZI7MZLcadZUT36b14NJ2cHRHA/0?wx_fmt=png",
"license": "http://mmbiz.qpic.cn/mmbiz_png/tW66AWE2K6ECFPcyAcIZTG8RlcR0sAqBibOm8gao5xOoLfIic9ZJ6MADAktGPxZI7MZLcadZUT36b14NJ2cHRHA/0?wx_fmt=png",
"introduct": "test",
"districtid": "440105",
}
Return an example
{
"error": null, //指出错误原因
"data": {
"base_id": 42160,
"rich_id": 42010
}
}
# 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 |
# 7. Scope of application
Weixin Mini Program | 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;