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
firstNamestringNoContact's first name (for shipping addresses only).
lastNamestringNoContact's last name (for shipping addresses only).
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: Includes optional firstName and lastName fields for delivery contact
  • Checkout Address: All fields have a maximum length of 255 characters

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 string, nullableSlovak IBAN (must start with SK, 24 characters).
json
{
  "iban": "SK3112000000198742637541"
}

Company ​

Company information for business registrations and invoicing.

AttributeDescription
businessId string, nullableBusiness ID (e.g., IČO).
taxId stringTax ID (e.g., DIČ).
vatId string, nullableVAT ID (e.g., IČ DPH).
json
{
  "businessId": "10699595",
  "taxId": "421769982",
  "vatId": null
}

Coords ​

Geographic coordinates for real estate locations.

AttributeDescription
lat numberLatitude.
lng numberLongitude.
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 contact, 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.
json
{
  "firstName": "Ján",
  "lastName": "Novák",
  "regions": ["nr", "tt", "ba"]
}

Date of Birth ​

Date of birth structure for user 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
}