Location Details
Returns the details of a single location.
Request
GET /api/oauth/v2/resource/locations/{uuid}
Header
| Header | Value |
|---|---|
Authorization | Bearer {access_token} |
URL parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
uuid | string (UUID) | Yes | Unique location ID |
Required scope: locations
Response
Success (200 OK)
json
{
"data": {
"id": "b2c3d4e5-f6a7-8901-bcde-f01234567890",
"name": "Hauptordination Wien",
"bookingName": "Wien – 1. Bezirk",
"abbreviation": "WI1",
"street": "Musterstraße 1",
"zip": "1010",
"city": "Wien",
"country": "AT",
"description": "Barrierefrei zugänglich",
"color": "#74AFAD",
"email": "wien@example.com",
"tel": "1234567",
"telCode": "+43",
"lat": 48.2082,
"lng": 16.3738,
"sort": 0,
"bookable": true,
"tenancies": [
{
"id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
"name": "Ordination Muster",
"abbreviation": "OM",
"color": "#00adba"
}
]
}
}Response fields
| Field | Type | Description |
|---|---|---|
data.id | string (UUID) | Unique location ID |
data.name | string | Internal name of the location |
data.bookingName | string | null | Display name for booking |
data.abbreviation | string | null | Abbreviation |
data.street | string | null | Street and house number |
data.zip | string | null | Postal code |
data.city | string | null | City |
data.country | string | null | Country code (ISO 3166-1 alpha-2) |
data.description | string | null | Description text |
data.color | string | Color as hex code (e.g. #74AFAD) |
data.email | string | null | Email address of the location |
data.tel | string | null | Phone number |
data.telCode | string | null | Dialing code |
data.lat | number | null | Latitude |
data.lng | number | null | Longitude |
data.sort | integer | Sort order |
data.bookable | boolean | Whether the location is bookable |
data.tenancies | Array | Assigned tenants |
data.tenancies[].id | string (UUID) | Tenant ID |
data.tenancies[].name | string | Name of the tenant |
data.tenancies[].abbreviation | string | Abbreviation |
data.tenancies[].color | string | Color as hex code |
Note: The API returns additional internal fields not documented here. Only use the fields described here — all others may change without notice.
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/locations/b2c3d4e5-f6a7-8901-bcde-f01234567890" \
-H "Authorization: Bearer {access_token}"Parameter
Zuerst Token anfordern
Possible errors
| Status | Code | Description |
|---|---|---|
| 401 | invalid_client | Invalid or missing access token |
| 403 | insufficient_scope | Scope locations not present |
| 404 | not_found | Location not found |