Authentication
Register User
POST
https://switchapi3.azurewebsites.net/user/register
Registers user and returns a valid token used for session validation
Headers
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
Request Body
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
Login User
POST
https://switchapi3.azurewebsites.net/user/login
Authenticates user and returns a valid token used for session validation.
Headers
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
Request Body
string
email of user
password
string
password of user
Forgot Password
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
Headers
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
Request Body
string
email address of user
Reset Password
POST
https://switchapi3.azurewebsites.net/user/reset_password
Resets user password
Headers
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
Request Body
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
Unlock Account
POST
https://switchapi3.azurewebsites.net/user/unlock_account
Unlocks a locked account
Headers
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
Request Body
unlock_token
string
the unlock token sent to the user via email
Resend Unlock Email
POST
https://switchapi3.azurewebsites.net/user/resend_unlock_email
Re-sends the unlock email
Headers
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
Request Body
string
user email
Logout
POST
https://switchapi3.azurewebsites.net/user/logout
Invalidates the session token
Headers
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
Authorization
string
token in the format Bearer token_string
Validate user's BVN details
POST
https://switchapi3.azurewebsites.net/user/validate_user_bvn
Validates the user's bvn.
Headers
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
Request Body
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.
Send email confirmation
POST
https://switchapi3.azurewebsites.net/user/send_email_confirmation_mail
This endpoint is used to send a confirmation email to a user.
Headers
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
Request Body
string
The user's email
Get Referrer
GET
https://switchapi3.azurewebsites.net/user/referrer/:switch_id
This endpoint gets the referrer using the switch_id.
Path Parameters
switch_id
string
The switch_id of the referrer.
Headers
SWI-CID
string
Client ID
Last updated
Was this helpful?