User Registration
Last updated
Last updated
POST
‎https://<domain>/<api prefix>/<version>/user/signup/‎
This API endpoint add new user into the system.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Node
PHP
POST
‎‎https://<domain>/<api prefix>/<version>/user/signup-package/
This API endpoint add new user into the system with an enrollment package.
Node
PHP
GET
‎https://<domain>/<api prefix>/<version>/user/get/sponsors/
This API endpoint will return a list of sponsors.
Node
PHP
POST
‎https://<domain>/<api prefix>/<version>/user/validate-sponsor/
This API endpoint will validate a sponsor.
Node
PHP
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Status Code | Error Type | FIeld | Description |
---|---|---|---|
apikey*
string
apikey
Authorization*
string
Bearer access token
country_code*
string
country code
first_name*
string
first name
last_name*
string
last name
username*
string
username
password*
string
password
agree_terms*
string
agree terms - Possible values are 1 or 0
user_type*
string
user role - Possible values are customer or member. member role is equivalent to distributor, consultant, or agent.
email*
string
email address
phone_number*
string
phone number
place_genealogy
string
place_genealogy - Possible values are 1 or 0
position
string
if place_geneolgy is 1, choose user position from the following - HOLDING_TANK, LEFT, RIGHT
sponsor
string
sponsor username, required when user_type is member
subdomain
string
subdomain name, required when user_type is member
Status Code
Error Type
Field
Description
400
Validation Error
country_code
Invalid country code
400
Validation Error
sponsor
Invalid sponsor name
400
Validation Error
sponsor
The selected sponsor is not found or is in the inactive state.
400
Validation Error
first_name
The first name should be an alphabet.
400
Validation Error
last_name
The last name should be an alphabet.
400
Validation Error
username
Username is already taken. Please try another one.
400
Validation Error
username
Invalid username. Only contains alphanumeric characters, underscore and dot. \nUnderscore and dot can't be next to each other (e.g user_.name). \nUnderscore or dot can't be used multiple times in a row (e.g user__name / user..name). The number of characters must be between 5 to 250.
400
Validation Error
password
password validation errors
400
Validation Error
phone_number
Phone number already taken. Please try another one.
400
Validation Error
There is a user registered with the specified E-Mail address.
400
Validation Error
position
Your chosen position is invalid. The default will be the spilling preference of
400
Validation Error
subdomain
Ensure this field has no more than 15 characters.
Ensure this field has at least 3 characters.
apikey*
string
apikey
Authorization*
string
Bearer access token
country_code*
string
country code
sponsor*
string
sponsor username
first_name*
string
first name
last_name*
string
last name
username*
string
username
password*
string
password
confirm_password*
string
confirm password
agree_terms*
string
agree terms - Possible values are 1 or 0
user_type*
string
user role - Possible values are customer or member. member role is equivalent to distributor, consultant, or agent.
email*
string
email address
phone_number*
string
phone number
place_genealogy
string
place_genealogy - Possible values are 1 or 0
product_id*
string
enrollment package - product id
address_first_name*
string
address first name
address_last_name*
string
address last name
address_mail_id*
string
address E-mail address
address_phone_number*
string
address phone number
address_name_line*
string
address house number
address_premise*
string
address street
address_locality*
string
address locality
address_postal_code*
string
address post code
address_country_code*
string
address country code
address_state_code*
string
address state code
subdomain*
string
subdomain name
position
string
possible values - HOLDING_TANK, LEFT, RIGHT
Status Code
Error Type
Field
Description
400
Validation Error
country_code
Invalid country code
400
Validation Error
sponsor
Invalid sponsor name
400
Validation Error
sponsor
The selected sponsor is not found or is in the inactive state.
400
Validation Error
first_name
The first name should be an alphabet.
400
Validation Error
last_name
The last name should be an alphabet.
400
Validation Error
username
Username is already taken. Please try another one.
400
Validation Error
username
username Invalid username. Only contains alphanumeric characters, underscore and dot. \nUnderscore and dot can't be next to each other (e.g user_.name). \nUnderscore or dot can't be used multiple times in a row (e.g user__name / user..name). The number of characters must be between 5 to 250.
400
Validation Error
password
password validation errors
400
Validation Error
confirm_password
Confirmed password doesn't match.
400
Validation Error
phone_number
Phone number already taken. Please try another one.
400
Validation Error
There is a user registered with the specified E-Mail address.
400
Validation Error
position
Your chosen position is invalid. The default will be the spilling preference of
400
Validation Error
address_postal_code
Invalid postcode
400
Validation Error
address_state_code
Invalid address_state_code
400
Validation Error
address_first_name
Invalid address_first_name
400
Validation Error
address_last_name
Invalid address_last_name
400
Validation Error
address_country_code
Invalid address_country_code
400
Validation Error
product_id
Invalid product_id
400
Validation Error
subdomain
Ensure this field has no more than 15 characters.
Ensure this field has at least 3 characters.
500
Server Error
User creation is failed.
apikey*
string
Apikey
Authorization*
string
Bearer access token
apikey*
string
Apikey
Authorization*
string
Bearer access token
400
Validation Error
sponsor
Invalid sponsor username.
Sponsor is blocked or inactive.
The selected sponsor is not found or is in the inactive state.