Create store
Create store
POST https://integrations.mipos.shop/api/v1/store
Create a store within the platform
Headers
Name
Type
Description
Content-Type
string
application/json
Authorization
string
Bearer {access_token}
Request Body
Name
Type
Description
direction
string
Store location in the country
latitude
string
Latitude coordinate
longitude
string
Longitude coordinate
name
string
Name of the store
country_code
string
Country code where the store is located
{
"message": "Store created.",
"data": {
"id": 1,
"name": "Test Store",
"country": "México",
"direction": "D.F.",
"location_point": {
"type": "Point",
"coordinates": [
-73.98615270853043,
40.74894149554006
]
}
}
}"Unauthorized."{
"message": [
"This name is not available.",
"User not found."
],
"data": null
}{
"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."
]
}Last updated
Was this helpful?