GET
/
locations
/
{id}
/
Get a specific location
curl --request GET \
  --url https://sandbox.prezio.eu/api/locations/{id}/ \
  --header 'Authorization: <api-key>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "country": "<string>",
  "city": "<string>",
  "address_display": "<string>",
  "address1": "<string>",
  "address2": "<string>",
  "postal_code": "<string>",
  "latitude": 123,
  "longitude": 123,
  "external_id": "<string>",
  "timezone": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Path Parameters

id
integer
required

A unique integer value identifying this location.

Response

200 - application/json

Serializer for Location model.

A location must include coordinates (both latitude AND longitude). Address information (city/postal_code and optional address1/address2) is optional but address1/address2 cannot be used alone without city or postal_code.

id
string<uuid>
required

Location ID in standard UUID format

country
string
required

Country code (e.g., 'NO', 'SE', 'DK')

latitude
number
required

Latitude coordinate (required; must be provided with longitude)

longitude
number
required

Longitude coordinate (required; must be provided with latitude)

timezone
string
required

Timezone automatically assigned based on the country's default timezone (e.g., 'Europe/Copenhagen')

created_at
string<date-time>
required
updated_at
string<date-time>
required
city
string

City name

Maximum length: 255
address_display
string
Maximum length: 255
address1
string

Primary address line (must be combined with city or postal_code)

Maximum length: 255
address2
string

Secondary address line (must be combined with city or postal_code)

Maximum length: 255
postal_code
string

Postal/ZIP code

Maximum length: 20
external_id
string | null
Maximum length: 100