Authentication
Last updated
Last updated
POST
https://switchapi3.azurewebsites.net/user/register
Registers user and returns a valid token used for session validation
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
POST
https://switchapi3.azurewebsites.net/user/login
Authenticates user and returns a valid token used for session validation.
POST
https://switchapi3.azurewebsites.net/user/forgot_password
Creates a reset password token, attaches it to user account and sends a reset link to user's email
POST
https://switchapi3.azurewebsites.net/user/reset_password
Resets user password
POST
https://switchapi3.azurewebsites.net/user/unlock_account
Unlocks a locked account
POST
https://switchapi3.azurewebsites.net/user/resend_unlock_email
Re-sends the unlock email
POST
https://switchapi3.azurewebsites.net/user/logout
Invalidates the session token
POST
https://switchapi3.azurewebsites.net/user/validate_user_bvn
Validates the user's bvn.
POST
https://switchapi3.azurewebsites.net/user/send_email_confirmation_mail
This endpoint is used to send a confirmation email to a user.
GET
https://switchapi3.azurewebsites.net/user/referrer/:switch_id
This endpoint gets the referrer using the switch_id.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
sales_agent_referral_code
string
Referral code of the sales agent.
referrer
string
Switch ID of the referrer.
bvn
string
The user's bvn. Required for Nigerian users.
country
string
country of user, default is `nigeria`
gender
string
gender of user
date_of_birth
string
date of birth of user, in the format YYYY-MM-DD
phone
number
preferred phone number of user
last_name
string
last name of user
first_name
string
first name of user
password
string
preferred password of user, which must contain at least one upper case letter, one lower case letter, one digit and at least one special character
string
email address of user
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
string
email of user
password
string
password of user
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
string
email address of user
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
security_question_answer
string
The answer to the security question. Required only if the user has set one or more security questions.
security_question_id
integer
The id of the security question. Required only if the user has set one or more security questions
password_confirmation
object
password confirmation
reset_password_token
string
the token that was sent to the user via email
password
string
the preferred password
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
unlock_token
string
the unlock token sent to the user via email
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
string
user email
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
Authorization
string
token in the format Bearer token_string
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
date_of_birth
string
The user's date of birth.
last_name
string
The user's last name.
first_name
string
The user's first name.
bvn
string
The user's bvn.
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
string
The user's email
switch_id
string
The switch_id of the referrer.
SWI-CID
string
Client ID