Add New User

Description :

This API endpoint is used to create a new user.

Endpoint URL :
Request Parameters
Request Parameter Data Type Default Value Required Description Change Date Change Description
token integer Yes Please pass the app access token
otp integer Yes Please pass 6 digit otp, Which is recieve on user's mobile number
fullName string Yes Please pass full name of the user
companyName string Yes Please pass shop name of the user
gender string Yes Please pass gender of the user [Male/Female]
mobileNumber integer Yes Please pass mobile number of the user
emailId string Yes Please pass email id of the user
stateName string Yes Please pass state name of the user
For State List Api Click Here
districtName string Yes Please pass district name of the user
For District List Api Click Here
cityName string Yes Please pass city name of the user
pinCode integer Yes Please pass 6 digit pin code of city
address string Yes Please pass address of the user
Request Example
Responses (JSON)
    • status_code (integer): The status code of the response.
    • message: (string): User successfully created.
  • 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: Error message
    • Description: A specific error message.
    • 'status_code' (integer): 0
    • 'message' (string): "Unable to fetch data"
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