Get user info by phone number

To retrieve a user's details with user's phone number, ensure that the individual is your client before proceeding.

Step 1: Fetching User Information with User's phone number 
Using the phone number, you'll first call the User Info Auth by phone number API. This will generate a signature required for further actions.

GET

https://partners-api.easysocial.in/api/:phone_number/user-info-auth-by-phone


:phone_number- This field needs to be updated with the user's phone number.

Sample header payload

{
    "token":"466d2e086a8f4f24bcb70789fee"
}


Example Response 

{
  "status": 200,
  "success": true,
  "message": "success",
  "payload": "/api/XXXXXXXXXX/get-user-info-by-phone?signature=eyJtZXNzYWdlIjoiL2FwaS85NDE0NDU3ODc0L2dldC11c2VyLWluZm8tYnktcGhvbmUiLCJleHBpcnlEYXRlIjoiMjAyNC0wOS0xMFQwNjoxODozOS4xMzRaIn0.u3nwd4rsVj3-k1Ipj5H5u7j9T5EyAmg6nR7hCqTEAEg"
}


Step 2: Retrieving Detailed User Information 

With the signature generated from the previous API call (step 1) and the user's phone number, you can now call the Get User Info by phone API to retrieve all relevant information about the user.

GET

https://partners-api.easysocial.in/api/:phone_number/get-user-info-by-phone?signature=eyJtZXNzYWdlIjoiL2FwaS85NDE0NDU3ODc0L2dldC11c2VyLWluZm8tYnktcGhvbmUiLCJleHBpcnlEYXRlIjoiMjAyNC0wOS0xMFQwNjoxMjoyNy4yNzhaIn0.z4Zm2AAS-zPx1VBhdW1YT_uKMWECIFFftFt39Q2F7fo


Sample header payload

{
    "token":"466d2e086a8f4f24bcb70789fee"
}


Example Response 
 

{
    "status": 201,
    "success": true,
    "message": "User Information.",
    "payload": {
        "ownedBusiness": [
            0000
        ],
        "userInfo": {
            "id": 0000,
            "name": "Test",
            "mobile_number": "+91XXXXXXXXXX",
            "email": "XXX@gmail.com",
            "address": "XXX",
            "city": "XXX",
            "state": "XXXXXX",
            "country": "XXXX",
            "pin_code": 0000
        },
        "walletInfo": {
            "currency": "INR",
            "balance": 0,
            "user_id": 0000
        }
    }
}


KEY PARAMETERS

  • Token- The "Partner API access token" to authenticate the request.
  • Phone number- The phone number which is associated with the registered user.