Skip to content

User Object ​

The User Object represents an individual user (client or expert) within the platform.

AttributeDescription
email stringUser's email address (stored lower-cased).
phone string, nullableUser's phone number.
role enumUser role. See User Roles.
firstName string, nullableUser's first name.
lastName string, nullableUser's last name.
billingAddress object, nullableUser's billing address. See Address.
shippingAddress object, nullableUser's shipping address incl. firstName and lastName (clients only, always null for experts). See Address.
bankAccount object, nullableUser's bank account (experts only, null for clients). See Bank Account.
company object, nullableUser's company details; null when none of its values is set. See Company.
regions array, nullableArray of regions where expert provides services (experts only, null for clients). See Regions.
registrationNumber string, nullableExpert's professional registration number (experts only, null for clients).
emailVerified booleanWhether the user's email address has been verified.
newsletterSubscribed booleanWhether the user is subscribed to the newsletter.
testimonyAlerts boolean, nullableWhether the expert is e-mailed about new testimonies in their regions; on by default (experts only, null for clients).
onboardingStatus enum, nullableWhere the expert's account verification stands (experts only, null for clients). See Onboarding Status.

User Roles ​

ValueDescription
expertExpert - Provides testimony services
clientClient - 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.

ValueDescription
pendingRegistered, waiting for Stripe to verify the account. Offers can be created but stay hidden from clients.
approvedVerified; the expert's offers are visible to clients and can be checked out.
suspendedAn approved expert whose Stripe account can no longer accept payments. Offers are hidden until it can again.
rejectedThe Stripe account was closed. The expert can neither list testimonies nor create offers.
failedThe 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:

CodeRegion
baBratislavský kraj
bbBanskobystrický kraj
keKošický kraj
nrNitriansky kraj
poPrešovský kraj
tnTrenčiansky kraj
ttTrnavský kraj
zaŽilinský kraj