Deliverect creates a location for each physical restaurant location. A customer can therefore have multiple locations. This endpoint allows the querying of all locations belonging to an account.

You should specify an account ID, otherwise the locations of your own account will be returned

{
    "_items": [
        {
            "_id": "5c1a40f6c6489f00bac4c252",
            "name": "Partner Jelte",
            "accountType": 1,
            "_updated": "2019-02-14T13:57:59.000000Z",
            "_created": "2018-12-19T13:00:38.000000Z",
            "_etag": "ad515c7db898b7004253d8ea46d07a3b7e0cbd99",
            "locations": [
                "5c1a4117c6489f00bac4c253",
                "5c20ea48c6489f0016a132f7",
                "5c20f1cec6489f0035972273",
                "5c6573e7c6489f00014c507c"
            ],
            "accounts": [
                {
                    "_id": "5c3f8a90c6489f002c85dd3d",
                    "name": "Gastrofixies",
                    "accountType": 2,
                    "_updated": "2019-01-16T19:49:37.000000Z",
                    "_created": "2019-01-16T19:48:32.000000Z",
                    "_deleted": false,
                    "_etag": "56f924441a4de194e96f3d9f6ebc962b7a8d524c",
                    "locations": [
                        {
                            "_id": "5c3f8ad1c6489f002c85dd3e",
                            "name": "Gastro gefixed (10905)",
                            "account": "5c3f8a90c6489f002c85dd3d",
                            "_updated": "2019-01-28T12:19:19.000000Z",
                            "_created": "2019-01-16T19:49:37.000000Z",
                            "_deleted": false,
                            "_etag": "11b454d7423e292c4455c5c142ebc12d2563f8ea",
                            "channelLinks": [
                                "5c3f8aeac6489f002c85dd41",
                                "5c4ef347c6489f0001594856"
                            ]
                        }
                    ]
                }
            ],
            "users": [
                "5c2496cbc6489f00169462a3"
            ],
            "_deleted": false,
            "_links": {
                "self": {
                    "title": "accounts",
                    "href": "accounts/5c1a40f6c6489f00bac4c252"
                }
            }
        }
    ],
    "_links": {
        "parent": {
            "title": "home",
            "href": "/"
        },
        "self": {
            "title": "locations",
            "href": "locations"
        },
        "next": {
            "title": "next page",
            "href": "locations?page=2"
        },
        "last": {
            "title": "last page",
            "href": "locations?page=11"
        }
    },
    "_meta": {
        "page": 1,
        "max_results": 25,
        "total": 11
    }
}