Check User Exist Or Not

Check User Exist Or Not

Description :

This API endpoint is used to check if user exist then redirect to login screen & if user not exist then redirect to onboarding screen

Endpoint URL :
Request Parameters
Request Parameter Data Type Default Value Required Description Change Date Change Description
username integer Yes mobile no of the user
Request Example
Responses (JSON)
  • Status Code 1: User exists
    • Description: User exist then redirect to login screen
    • 'status_code' (integer): 1
    • 'message' (string): "User exists"
  • Status Code 2: Validation Error
    • Description: Validation error in the input parameters.
    • 'status_code' (integer): 2
    • 'message' (string): "A specific validation error message."
  • {Status Code 0: User not exists}, 200
    • Description: User not exist then redirect to onboarding screen
    • 'status_code' (integer): 0
    • 'message' (string): "User not exists"
Note
  • The API endpoint should be accessed via a POST request.
  • Ensure that the request is properly validated and sanitized to prevent security vulnerabilities.
  • Implement proper error handling on the client side to display user-friendly error messages based on the 'status_code' and 'message' fields in the response.
© Redpay.
Design & Develop by Redpay Payments Private Limited