Create store

post
Create store

https://integrations.mipos.shop/api/v1/store
Create a store within the platform
Request
Response
Request
Headers
Content-Type
required
string
application/json
Authorization
required
string
Bearer {access_token}
Body Parameters
direction
optional
string
Store location in the country
latitude
optional
string
Latitude coordinate
longitude
optional
string
Longitude coordinate
name
required
string
Name of the store
country_code
required
string
Country code where the store is located
Response
201: Created
{
"message": "Store created.",
"data": {
"id": 1,
"name": "Test Store",
"country": "México",
"direction": "D.F.",
"location_point": {
"type": "Point",
"coordinates": [
-73.98615270853043,
40.74894149554006
]
}
}
}
401: Unauthorized
"Unauthorized."
404: Not Found
{
"message": [
"This name is not available.",
"User not found."
],
"data": null
}
422: Unprocessable Entity
{
"name": [
"The name field is required."
],
"country_code": [
"The country code field is required.",
"The selected country code is invalid."
],
"direction": [
"The direction must be a string."
],
"latitude": [
"The latitude format is invalid."
],
"longitude": [
"The longitude format is invalid."
]
}