Common Types
This page documents common data structures used throughout the API. These types appear in multiple endpoints and resources.
Address
Used for billing and shipping addresses throughout the API.
| Field | Type | Required | Description |
|---|---|---|---|
firstName | string | No | Recipient's first name (shipping addresses only; required at checkout). Max 255 characters; letters, combining marks, spaces and ' ’ . , - only. |
lastName | string | No | Recipient's last name (shipping addresses only). Same rules as firstName. |
line1 | string | Yes | Street address (e.g., "Trieda Andreja Hlinku"). Max 255 characters. |
line2 | string | Yes | Additional address info (e.g., unit number). Must be a non-empty string — "" and null are rejected. Max 255 characters. |
city | string | Yes | City name. Max 255 characters. |
postalCode | string | Yes | Postal code. Max 255 characters. |
country | string | Yes | ISO 3166-1 Alpha-2 country code (e.g., SK, CZ, HU). |
Address Types
- Billing Address: Contains core address fields only (no name fields)
- Shipping Address: Clients only. Responses always carry
firstNameandlastName(nullwhen unset). Checkout Offer requires both whenever a shipping address is sent; Update Client Profile takes them as optional - Partial updates: the profile update endpoints accept a subset of the fields once the address exists — see Update Current User
Example (Shipping Address):
{
"firstName": "Anton",
"lastName": "Čomáš",
"line1": "Trieda Andreja Hlinku",
"line2": "1/14A",
"city": "Nitra",
"postalCode": "949 01",
"country": "SK"
}Example (Billing Address):
{
"line1": "Trieda Andreja Hlinku",
"line2": "1/14A",
"city": "Nitra",
"postalCode": "949 01",
"country": "SK"
}Bank Account
Bank account information for expert payouts.
| Attribute | Description |
|---|---|
| iban string | Slovak IBAN (must start with SK, 24 characters, valid checksum). Spaces are removed and letters upper-cased before validation and storage. |
{
"iban": "SK3112000000198742637541"
}Company
Company information for business registrations and invoicing.
| Attribute | Description |
|---|---|
| businessId string, nullable | Business ID (e.g., IČO). Max 255 characters. |
| taxId string, nullable | Tax ID (e.g., DIČ). Max 255 characters. Always set for experts; may be null for clients. |
| vatId string, nullable | VAT ID (e.g., IČ DPH). Max 255 characters. |
The whole company object is null on a User that has none of the three values.
{
"businessId": "10699595",
"taxId": "421769982",
"vatId": null
}Coords
Geographic coordinates for real estate locations.
| Attribute | Description |
|---|---|
| lat number | Latitude, between -90 and 90. |
| lng number | Longitude, between -180 and 180. |
{
"lat": 48.30734852531308,
"lng": 18.086583509280644
}Counterparty
The other party of a testimony as seen by the client or the expert — used for client and expert on the Testimony Object and for expert on the Offer Object.
Minimal projection of the other party in a testimony. It never exposes banking, company, or address details — the authenticated user's own full profile is available from Get Profile.
| Field | Type | Description |
|---|---|---|
firstName | string, nullable | First name. |
lastName | string, nullable | Last name. |
regions | array, nullable | Region codes where the expert provides services. Always null for clients. See Regions. |
email | string, nullable | Email address. null unless contact details are unlocked (see below). |
phone | string, nullable | Phone number. null unless contact details are unlocked (see below). |
Contact details (email, phone) are unlocked only on the top-level client and expert of a Testimony in the accepted or completed state, and only for the other party: the testimony's client sees the assigned expert's contact, the assigned expert sees the client's. A user's own entry, the experts inside offers, and every counterparty of a pending, offered or cancelled testimony always carry null.
{
"firstName": "Ján",
"lastName": "Novák",
"regions": ["nr", "tt", "ba"],
"email": null,
"phone": null
}Date of Birth
Date of birth structure for expert registration.
| Field | Type | Description |
|---|---|---|
| day | integer | Day of month (1-31). |
| month | integer | Month (1-12). |
| year | integer | Year of birth (1920 or later). |
The three parts must form a valid calendar date and the person must be at least 18 years old; otherwise the request fails with 422 on the dateOfBirth field.
{
"day": 15,
"month": 6,
"year": 1985
}