Skip to content

Get a location

Request

Returns the Location resource: name, address, contacts, timezone, and currency.

Security
OAuth2(Required scopes: locations:read) or ApiKey
Path
location_idintegerrequired

Identifier of the Location. Verified against the credential on every call — a Location the credential cannot access responds with 404.

curl -i -X GET \
  'https://developer.alteg.io/_mock/en/b2b-v3/openapi/locations/{location_id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

The Location.

Headers
RateLimit-Remaininginteger, (int32), >= 0

Requests left in the most constrained policy window that applies to this request.

RateLimit-Resetinteger, (int32), >= 0

On 429, seconds until the most constrained policy frees up; it equals Retry-After there. On a successful response it reports the length of that policy's window rather than the time left in the current one, so treat it as the window size, not as a countdown — the counter to pace against is RateLimit-Remaining.

RateLimit-Policystring

Most constrained policy applied to the request, as <limit>;w=<window in seconds>.

Example:"10;w=60"
X-Request-Idstring

Request identifier for support and log correlation.

Bodyapplication/json
idintegerread-onlyrequired
objectstringread-onlyrequired
Value:"location"
namestringrequired
timezonestringread-onlyrequired

Canonical IANA timezone of the Location (e.g. Europe/Lisbon).

country_codestringread-onlyrequired

ISO 3166-1 alpha-2 country code. Derived from city.

currencystringread-onlyrequired

ISO 4217 currency of the Location. Server-controlled.

city_idintegerrequired

City dictionary id.

descriptionstring or nullrequired

HTML fragment as entered in the Altegio editor; untrusted, sanitize it before rendering. null when empty.

business_type_idinteger or nullrequired

Business category of the Location.

addressstring or nullrequired
coordinatesobject or nullrequired
phonesArray of stringsrequired

Business contact phone numbers in E.164 (+ and digits, no separators). Numbers that cannot be parsed as E.164 are omitted.

sitestring or nullrequired
created_atstring or null, (date-time)read-onlyrequired

UTC; null when the creation date is not stored.

Response
{ "id": 4321, "object": "location", "name": "Demo Beauty Studio Lisbon", "description": null, "business_type_id": 1, "address": "Av. da Liberdade 100, Lisbon", "coordinates": { "latitude": 38.7223, "longitude": -9.1393 }, "phones": [ "+351210000000" ], "site": "https://demo.example.com", "timezone": "Europe/Lisbon", "currency": "EUR", "created_at": "2025-01-15T10:00:00Z", "city_id": 6201, "country_code": "PT" }