# Create a store in a map

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: 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 NametypeRequired to fill inIntroductions
access_tokenstringyesInterface invocation credentials, using access_token , authorizer_access_token

# Request BodyRequest Payload

Parameter NametypeRequired to fill inIntroductions
namestringyesname
longitudestringyeslongitude
latitudestringyeslatitude
provincestringyesprovince
citystringyescity
districtstringyesarea
addressstringyesDetailed address
categorystringyesCategories, such as food: Chinese restaurants
telephonestringyesPhone numbers, which may be multiple, using the English divisional spacing of 010-666666-111; 010-6666666; 010- 6666666-222
photostringyesStore photo url
licensestringyesBusiness license url
introductstringyesintroduce
districtidstringyesTencent map pulls the id returned by the provincial and urban information interface
poi_idstringyesIf you are moving stores, you must fill in the poi_id field

# 3. Return Parameters

# Response Payload

Parameter NametypeIntroductions
errcodenumberError code
errmsgstringError Description
dataobjectdata

# Res.dataObject Payload

data

Parameter NametypeIntroductions
base_idnumberAudit Single ID
rich_idnumber-

# 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 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

# 7. Scope of application

How this interface can be invoked under different account types:
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;