v1

latestOpenAPI 3.0.02026-08-04265791.1 MB
Stores

Create

You may create a new single store or multiple stores using this action.
When creating a single store the body contains a json object, when creating multiple stores the body contains an array of objects.
Warning: a maximum of 1000 items can be sent in a single request.

post/public/api/stores

Headers

Acceptstring

e.g. application/json

Request body

titlestring
addressstring
tagsstring[]
client_idstring
store_type_namestring
capacitynumber

Example request

{
  "title": "ice-cream-store",
  "address": "Statue of Liberty, New York, USA",
  "tags": [
    "The dream ice-cream",
    "number 1 ice-cream"
  ],
  "client_id": "007",
  "store_type_name": "ice-cream",
  "capacity": 100
}

Response

OK

store_idstring required
titlestring required
addressstring required
tagsstring[] required
client_idstring required
store_type_namestring required
latitudenumber required
longitudenumber required
countrystring required
timezonestring required
created_datestring required
updated_datestring required

Example response

[
  {
    "store_id": "5b2122014ebf5300360acae1",
    "title": "ice-cream-store",
    "address": "Statue of Liberty, New York, USA",
    "tags": [
      "The dream ice-cream",
      "number 1 ice-cream"
    ],
    "client_id": "007",
    "store_type_name": "ice-cream",
    "latitude": 40.6895453,
    "longitude": -74.0449292,
    "country": "United States",
    "timezone": "America/New_York",
    "created_date": "2018-05-23T04:51:40.862Z",
    "updated_date": "2018-05-23T04:51:40.862Z"
  },
  {
    "store_id": "5b2122014ebf5300360acae2",
    "title": "another-ice-cream-store",
    "address": "77th Street, East Elmhurst, NY, USA",
    "tags": [
      "The dream ice-cream",
      "number 1 ice-cream"
    ],
    "client_id": "007",
    "store_type_name": "ice-cream",
    "latitude": 40.765361,
    "longitude": -73.8940281,
    "country": "United States",
    "timezone": "America/New_York",
    "created_date": "2018-05-23T04:51:40.862Z",
    "updated_date": "2018-05-23T04:51:40.862Z"
  }
]