Returns the locations for your brand, along with counts of how many locations are in each status.
Endpoint
GET {{domain}}/{{tenant_id}}/locations
Authentication: Bearer token required via the Authorization header. The caller needs the ListStore permission.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
page | Integer | The page of results to return. Defaults to 1. |
per_page | Integer | The number of locations per page. Defaults to 10. |
search | String | Optional. A text filter to narrow the results. |
Response
A successful request returns 200 OK.
200 OK
{"data": [{"id": "acme-richmond_store","brand_id": "acme","currency": "AUD","country": "AU","name": "Richmond Store","reference": "0001","timezone": "Australia/Melbourne","contact": {"name": "My Store Contact","email": "contact@example.com","phone": "+61400000000","country": "AU","sub_contacts": {}},"settings": {"pickup_instructions": "Pickup from Level 3","location_status": "pending"},"address": {"address": "7 Howard St","address2": "Level 3","city": "Richmond","state": "VIC","post_code": "3121","country": "AU"},"geo_data": {"long": 144.9972,"lat": -37.83274},"pickup_hours": [{ "day": 0, "from": "09:00", "to": "15:00" },{ "day": 1, "from": "09:00", "to": "15:00" },{ "day": 2, "from": "09:00", "to": "15:00" },{ "day": 3, "from": "09:00", "to": "15:00" },{ "day": 4, "from": "09:00", "to": "15:00" },{ "day": 5, "from": "09:00", "to": "15:00" },{ "day": 6, "from": "09:00", "to": "15:00" }],"opening_hours": [{ "day": 0, "from": "09:00", "to": "17:00", "buffer_minutes": 10 },{ "day": 1, "from": "09:00", "to": "17:00", "buffer_minutes": 10 },{ "day": 2, "from": "09:00", "to": "17:00", "buffer_minutes": 10 },{ "day": 3, "from": "09:00", "to": "17:00", "buffer_minutes": 10 },{ "day": 4, "from": "09:00", "to": "17:00", "buffer_minutes": 10 },{ "day": 5, "from": "09:00", "to": "17:00", "buffer_minutes": 10 },{ "day": 6, "from": "09:00", "to": "17:00", "buffer_minutes": 10 }],"special_hours": []}],"total": 1,"active": 0,"pending": 1,"disabled": 0}
| Field | Type | Description |
|---|---|---|
data | Array | The locations on the requested page. See Create a Location for a description of each field. |
total | Number | The total number of locations. |
active | Number | The number of locations that are active. |
pending | Number | The number of locations that are pending. |
disabled | Number | The number of locations that are disabled. |
The count fields cover all of your locations, not just the current page.
Location statuses
| Status | Meaning |
|---|---|
| Active | The location is live and available for delivery allocation. |
| Pending | The location is awaiting activation by Rendr. |
| Disabled | The location is inactive and not used for deliveries. |
See Create a Location for how locations move from pending to active.
