This page documents shared data structures returned by the SERVOS API, such as money, media, and occupancy objects.
Money
Monetary values are represented as "Money objects":
{
"cents": 35000,
"currency": "NOK",
"amount": 350.0,
"formatted": "350 NOK",
"abbreviated": "350 NOK"
}| Field | Type | Notes |
|---|---|---|
cents | integer | Amount in the smallest currency unit |
currency | string | ISO 4217 currency code |
amount | number | Decimal representation |
formatted | string | Human readable |
abbreviated | string | Short form for large numbers |
Media
Media objects represent uploaded images:
{
"id": "5489cc19-119f-49da-8c14-e83915699dbc",
"file_url": "https://media.servos.dk/organizations/2/9883dd6e.jpg",
"display_url": "https://assets.servos.dk/derivations/media/resized/1600/…",
"thumbnail_url": "https://assets.servos.dk/derivations/media/thumbnail/400/400/…",
"srcset": "https://assets.servos.dk/derivations/media/resized/480/… 480w, https://assets.servos.dk/derivations/media/resized/960/… 960w"
}| Field | Type | Notes |
|---|---|---|
id | string | Media public identifier |
file_url | string | The original upload |
display_url | string | A resized version for full-width display |
thumbnail_url | string | A 400×400 crop |
srcset | string | null | Resized versions for the srcset attribute |
Occupancy
Used for accommodation availability and "stay" cart items:
{
"adults": 2,
"children": 1,
"infants": 0
}| Field | Type | Notes |
|---|---|---|
adults | integer | Defaults to 1 if omitted (varies by endpoint) |
children | integer | Defaults to 0 if omitted |
infants | integer | Defaults to 0 if omitted |