User Object
The User Object represents an individual user (client or expert) within the platform.
| Attribute | Description |
|---|---|
email string | User's email address. |
phone string, nullable | User's phone number. |
role enum | User role. See User Roles. |
firstName string, nullable | User's first name. |
lastName string, nullable | User's last name. |
billingAddress object, nullable | User's billing address. See Address. |
shippingAddress object, nullable | User's shipping address. See Address. |
bankAccount object, nullable | User's bank account (experts only). See Bank Account. |
company object, nullable | User's company details. See Company. |
regions array, nullable | Array of regions where expert provides services (experts only). See Regions. |
emailVerified boolean | Whether the user's email address has been verified. |
newsletterSubscribed boolean | Whether the user is subscribed to the newsletter. |
User Roles
| Value | Description |
|---|---|
expert | Expert - Provides testimony services |
client | Client - Requests and pays for testimony services |
Regions
For experts, the regions field contains an array of region codes:
json
"regions": ["nr", "tt", "ba"]Available region values:
| Code | Region |
|---|---|
ba | Bratislavský kraj |
bb | Banskobystrický kraj |
ke | Košický kraj |
nr | Nitriansky kraj |
po | Prešovský kraj |
tn | Trenčiansky kraj |
tt | Trnavský kraj |
za | Žilinský kraj |