User and Business Setup

Once the customer's sign-up information is collected and the payment for the selected plan is successfully processed, you must trigger the following API to:

  1. Create a user on white label partner panel.
  2. Create a business associated with the newly created user.
  3. Activate the business with the selected plan and deduct the corresponding amount from the partner's wallet for the activated plan.

POST

https://partners-api.easysocial.in/api/user-business-setup


Sample body data
 

{
    "token":"466d2e086a8f4f24bcb70789fee",
    "plan_slug":"6319",
    // mode is sandbox or live
    "mode":"sandbox",
    "userData": {
        "name":"Customer Name",
        "mobile_number": "+91XXXXXXXXXX",
        "email":"abcd@gmail.com",
        "country":"India",
        "pin_code": XXXXXX,
        "address":"XXXX",
        "state": "Karnataka",
        "city": "Bengaluru",
				"password": "12345678" // No-encryption

    },
    "businessData": {
    "business_name": "COMPANY NAME",
    "industry": "Automotive",
    "mobile_number": "+91XXXXXXXXXX",
    "address": "Business address",
    "country": "India",
    "state": "Karnataka",
    "city":"Bengaluru",
    "pin_code": XXXXXX,
    "website": "http://company.com",
    "gst_number": "XXXXXXXXX", // optional
    "pan_number":"XXXXXXXXX" // optional
    }

} 

Token 
This property should contain the "Partner API access token".

Plan Slug
Each plan has its unique slug. This is generated using "plans API" which acts as identifier for each plan. You will have to use plan slug while creating a plan on behalf of user. 
If slug is not mentioned for the plan , free plan will automatically be applied which will be valid for 14 days. 

Mode 
There are two modes - Sandbox mode and Live mode

1) Sandbox Mode - This mode is when the API is being tested before making it live. The user created in this mode will temporarily be shown at your panel . The account will be activated . These accounts are merely for testing purposes and will be removed within 72 hrs. 

2) Live Mode - This mode is when the API is live . Any user created in this mode will be permanently there at your panel. 

Details required from user 
 

USER DETAILS EXAMPLE 
User name "Ajay Sharma"   

Enter the full name of the customer for which the business account needs to be set up.
Mobile Number "+911234567890"   

Enter the mobile number of the customer.
Email"ajaysharma@gmail.com"   

Enter the email of the customer
Country Code"+91"   

Enter the country code 
Pin code"111000"   

Write up the pin code as per your area 
Address"ABC Street"   
    
Add in your address 
State"Karnataka"   
    
Enter your state 
City"Bengaluru"   

Add your city 
Password"12345678"   

The password updated by the user needs to be passed in the API.


Details required to onboard Business  
 

BUSINESS DETAILS EXAMPLES 
Business name "Company name"   

Enter the name of the business that needs to be added
Industry name "Automotive"   

Enter the type of industry your business belongs to. 
Mobile number "+911234567890"   

Add in the number associated with your business.
Address"Business address"   

Add the address where you have established your business.
Country "India"   

Enter the country your business is established in.
State "Karnataka"   

Enter the state for your business.
City"Bengaluru"   

Add in the city of your business.
Pincode"111000"   

Enter the pin code as per the area.
Website "http://business.com"   

Enter the URL of the website your business
GST number(optional)"XXXXXXXXX"   

Enter the registered GST number of your business.   
Adding the GST number is an optional step. 
PAN number(optional)"XXXXXXXXX"   

Adding the PAN  number is an optional step.