Skip to content

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.

FieldTypeRequiredDescription
firstNamestringNoRecipient's first name (shipping addresses only; required at checkout). Max 255 characters; letters, combining marks, spaces and ' ’ . , - only.
lastNamestringNoRecipient's last name (shipping addresses only). Same rules as firstName.
line1stringYesStreet address (e.g., "Trieda Andreja Hlinku"). Max 255 characters.
line2stringYesAdditional address info (e.g., unit number). Must be a non-empty string — "" and null are rejected. Max 255 characters.
citystringYesCity name. Max 255 characters.
postalCodestringYesPostal code. Max 255 characters.
countrystringYesISO 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 firstName and lastName (null when 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):

json
{
  "firstName": "Anton",
  "lastName": "Čomáš",
  "line1": "Trieda Andreja Hlinku",
  "line2": "1/14A",
  "city": "Nitra",
  "postalCode": "949 01",
  "country": "SK"
}

Example (Billing Address):

json
{
  "line1": "Trieda Andreja Hlinku",
  "line2": "1/14A",
  "city": "Nitra",
  "postalCode": "949 01",
  "country": "SK"
}

Bank Account ​

Bank account information for expert payouts.

AttributeDescription
iban stringSlovak IBAN (must start with SK, 24 characters, valid checksum). Spaces are removed and letters upper-cased before validation and storage.
json
{
  "iban": "SK3112000000198742637541"
}

Company ​

Company information for business registrations and invoicing.

AttributeDescription
businessId string, nullableBusiness ID (e.g., IČO). Max 255 characters.
taxId string, nullableTax ID (e.g., DIČ). Max 255 characters. Always set for experts; may be null for clients.
vatId string, nullableVAT ID (e.g., IČ DPH). Max 255 characters.

The whole company object is null on a User that has none of the three values.

json
{
  "businessId": "10699595",
  "taxId": "421769982",
  "vatId": null
}

Coords ​

Geographic coordinates for real estate locations.

AttributeDescription
lat numberLatitude, between -90 and 90.
lng numberLongitude, between -180 and 180.
json
{
  "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.

FieldTypeDescription
firstNamestring, nullableFirst name.
lastNamestring, nullableLast name.
regionsarray, nullableRegion codes where the expert provides services. Always null for clients. See Regions.
emailstring, nullableEmail address. null unless contact details are unlocked (see below).
phonestring, nullablePhone 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.

json
{
  "firstName": "Ján",
  "lastName": "Novák",
  "regions": ["nr", "tt", "ba"],
  "email": null,
  "phone": null
}

Date of Birth ​

Date of birth structure for expert registration.

FieldTypeDescription
dayintegerDay of month (1-31).
monthintegerMonth (1-12).
yearintegerYear 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.

json
{
  "day": 15,
  "month": 6,
  "year": 1985
}