User Object
The User Object represents an individual user (client or expert) within the platform.
| Attribute | Description |
|---|---|
email string | User's email address (stored lower-cased). |
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 incl. firstName and lastName (clients only, always null for experts). See Address. |
bankAccount object, nullable | User's bank account (experts only, null for clients). See Bank Account. |
company object, nullable | User's company details; null when none of its values is set. See Company. |
regions array, nullable | Array of regions where expert provides services (experts only, null for clients). See Regions. |
registrationNumber string, nullable | Expert's professional registration number (experts only, null for clients). |
emailVerified boolean | Whether the user's email address has been verified. |
newsletterSubscribed boolean | Whether the user is subscribed to the newsletter. |
testimonyAlerts boolean, nullable | Whether the expert is e-mailed about new testimonies in their regions; on by default (experts only, null for clients). |
onboardingStatus enum, nullable | Where the expert's account verification stands (experts only, null for clients). See Onboarding Status. |
User Roles
| Value | Description |
|---|---|
expert | Expert - Provides testimony services |
client | Client - Requests and pays for testimony services |
Onboarding Status
One value sums up the expert's account, the most pressing first: a closed account is rejected and a suspended one suspended even though both were approved once.
| Value | Description |
|---|---|
pending | Registered, waiting for Stripe to verify the account. Offers can be created but stay hidden from clients. |
approved | Verified; the expert's offers are visible to clients and can be checked out. |
suspended | An approved expert whose Stripe account can no longer accept payments. Offers are hidden until it can again. |
rejected | The Stripe account was closed. The expert can neither list testimonies nor create offers. |
failed | The Stripe account could not be created after registration. Behaves like pending until support resolves it. |
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 |