Test
Create test user
Create a test user with a specific status and properties for sandbox testing.
POST
Create a test user account with a predefined status. This endpoint is useful for setting up test scenarios with users in various lifecycle states.
B2B Test User Builder Restriction: Only three statuses are allowed for B2B test user creation:
INVESTED- User with investmentsINVESTED_WITH_CASH- User with investments and cashINVESTED_WITH_SAVINGS- User with investments and savings
Request body
string
required
Email address for the test user. Must be a valid email format.
string
required
User status. Must be one of the allowed statuses for B2B test user builder. Use
GET /test/help/statuses to retrieve the list of valid status values.Allowed statuses:INVESTED- User with investmentsINVESTED_WITH_CASH- User with investments and cashINVESTED_WITH_SAVINGS- User with investments and savings
object
Optional user properties to override defaults. If omitted, random values are used for firstName and lastName.
string
First name for the test user. Must be 1-100 characters. Optional.
string
Last name for the test user. Must be 1-100 characters. Optional.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Email address for the test user
Example:
"test.user@example.com"
User status. Must be one of the allowed statuses for B2B test user builder.
Available options:
INVESTED, INVESTED_WITH_CASH, INVESTED_WITH_SAVINGS, FULL_USER_NBG Example:
"INVESTED_WITH_CASH"
Optional user properties to override defaults (e.g. firstName, lastName).
Response
Test user created successfully
Test user object with populated portfolios