Skip to navigation

Get a Location

View as Markdown

Returns a single location.


Endpoint

GET {{domain}}/{{tenant_id}}/location

Authentication: Bearer token required via the Authorization header. The caller needs the ViewStore permission.

The path is singular (/location), and there is no ID parameter. The tenant_id in the path identifies the store, and is the store’s own tenant ID — for example brand-store.


Response

A successful request returns 200 OK with the location.

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": []
}
}
FieldTypeDescription
dataObjectThe location. See Create a Location for a description of each field.

The fields returned depend on the caller’s field-scope permission. The example above shows a full response.