GET /locations

Deliverect creates a location for each physical restaurant location. A customer can therefore have multiple locations. This endpoint allows you to query all locations belonging to a specific account.

Query parameters

  • where string

Responses

  • 200 application/json

    OK

  • 401 application/json

    UNAUTHORIZED

GET /locations
curl \
 --request GET 'https://api.staging.deliverect.com/locations' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "_meta": {
    "page": 1,
    "total": 4,
    "max_results": 25
  },
  "_items": [
    {
      "_id": "5bf02f38c6489f002c******",
      "name": "Test location 1",
      "_etag": "ef043a0519e16ba48d7b4b2f5af928c9324760e0",
      "_links": {
        "self": {
          "href": "locations/5bf02f38c6489f002c******",
          "title": "Locations"
        }
      },
      "status": "INTEGRATOR",
      "account": "5be9c971c6489f0029******",
      "_created": "2018-11-17T15:09:44.000000Z",
      "_deleted": false,
      "_updated": "2019-02-14T11:16:20.000000Z",
      "channelLinks": [
        "5bf02f38c6489f002******1",
        "5bf02f38c6489f002******2"
      ]
    },
    {
      "_id": "5bf02f38c6489f002c******",
      "name": "Test Location 2",
      "_etag": "c9a39040acd03086bcd9abfd00af7acb5c5e748f",
      "_links": {
        "self": {
          "href": "locations/5bf02f38c6489f002c******",
          "title": "Locations"
        }
      },
      "status": "INTEGRATOR",
      "account": "5be9c971c6489f0029******",
      "_created": "2018-11-17T15:09:44.000000Z",
      "_deleted": false,
      "_updated": "2019-01-16T17:30:40.000000Z",
      "channelLinks": [
        "5bf02f38c6489f002******1"
      ]
    }
  ],
  "_links": {
    "self": {
      "href": "locations?where={\"account\": \"5be9c971c6489f00297746d4\"}",
      "title": "locations"
    },
    "parent": {
      "href": "/",
      "title": "home"
    }
  }
}
Response examples (401)
{
  "_error": {
    "code": 401,
    "message": "Please provide proper credentials"
  },
  "_status": "ERR"
}