List locations
List your business's locations, with the IDs your listings refer to.
GET
{BASE_URL}/locationsYour branches, as set in the Partner Portal's Business Profile, oldest first. Listings you create over
the API name the locations they are offered at by these ids. Requires the REGISTRATION scope.
Locations are managed in the Partner Portal; the API reads them.
Response
data.itemsobject[]required- Your locations. The list is not paginated.
data.items[].idstringrequired- The location's ID.
data.items[].namestringrequired- The location's name.
data.items[].areastringrequired- Area, for example
Gulshan. data.items[].citystringrequired- City.
data.items[].zonestring | nullrequired- Localoy zone, when set.
data.items[].addressstringrequired- The full address.
data.items[].mapUrlstring | nullrequired- A map link, when set.
data.items[].latitudenumber | nullrequired- Map pin, when set.
data.items[].longitudenumber | nullrequired- Map pin, when set.
data.items[].activebooleanrequiredfalsefor a location you have switched off.
cURL
curl "$LOCALOY_BASE_URL/locations" \
-H "Authorization: Bearer $LOCALOY_API_KEY"Response · 200
{
"success": true,
"data": {
"items": [
{
"id": "cm4l0cat10n00000000001",
"name": "Sultan's Dine — Gulshan",
"area": "Gulshan",
"city": "Dhaka",
"zone": "Gulshan",
"address": "House 12, Road 41, Gulshan 2, Dhaka 1212",
"mapUrl": null,
"latitude": 23.7925,
"longitude": 90.4078,
"active": true
}
]
}
}