get https://api.staging.deliverect.com/locations?where=
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.
You should specify the account ID, otherwise the locations of your own partner account will be returned
{
"_items": [
{
"_id": "61********************a4",
"name": "La Famiglia",
"status": "SUBSCRIBED",
"account": "61********************b2",
"_updated": "2022-01-25T23:26:00.000000Z",
"_created": "2020-03-25T12:50:10.000000Z",
"_deleted": false,
"_etag": "e490a6223976e22b40aff6214ff9232a50b0388c",
"channelLinks": [
"5e********************e2",
"5f********************r2",
"51********************y2"
],
"posSystemId": 10000,
"posSettings": {
"generic": {
"hasProductSync": true,
"bufferOrders": false,
"orderItemRemarks": "intactItemRemarks"
}
},
"address": {
"country": "IT"
},
"region": "European Union",
"subscriptions": [
{
"brandId": "60********************bb",
"subscriptionId": "Az*************zr"
},
{
"brandId": "61********************76",
"subscriptionId": "Az*************7y"
}
],
"_links": {
"self": {
"title": "Locations",
"href": "locations/5e********************d5"
},
"related": {
"account": {
"title": "accounts",
"href": "accounts/5e********************bd"
},
"channelLinks": [
{
"title": "channelLink",
"href": "channelLinks/5e********************e4"
},
{
"title": "channelLink",
"href": "channelLinks/5e********************f9"
},
{
"title": "channelLink",
"href": "channelLinks/5e********************0b"
}
]
}
}
}
],
"_links": {
"parent": {
"title": "home",
"href": "/"
},
"self": {
"title": "locations",
"href": "locations?where={\"account\":\"5e*******************bd\"}"
}
},
"_meta": {
"page": 1,
"max_results": 25,
"total": 1
}
}