v1

latestOpenAPI 3.0.02026-08-04265791.1 MB
Geofilters

Create

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

post/public/api/geofilters

Headers

Acceptstring

e.g. application/json

Request body

store_type_namesstring[]
user_idstring

Example request

{
  "store_type_names": [
    "yoobic-ice-creams"
  ],
  "user_id": "5babb8a69fa6ae919f675716"
}

Response

OK

geofilter_idstring required
store_idsstring[] required
user_idstring required
created_datestring required
updated_datestring required

Example response

[
  {
    "geofilter_id": "552168f5f8d75fe77c520e7f",
    "store_ids": [
      "551d6add1077d5fb7a12ab01"
    ],
    "user_id": "55142883b0cc8a622d01c5a1",
    "created_date": "2015-04-05T01:55:17.563Z",
    "updated_date": "2015-09-07T11:30:58.643Z"
  },
  {
    "geofilter_id": "552168f5f8d75fe77c520e80",
    "store_ids": [
      "551d6add1077d5fb7a12ab03"
    ],
    "user_id": "55142883b0cc8a622d01c5a2",
    "created_date": "2015-04-05T01:55:17.563Z",
    "updated_date": "2015-09-07T11:40:58.643Z"
  }
]