ZOHO CRM V1 is now depricated since Jan 2020 and its time for V2. There are too much tutorials on the web to integrate it wwith your third party application. 

Here is the simplest way to integrate zoho CRM with V2 API just follow the step.

Step 1 : Register your application 

 

go to : https://accounts.zoho.com/developerconsole

and create your application. Click on Create Client and enter the details like client name and client domain and redirect URL on domain and redirect url just enter ‘http://localhost/’.

Now on submitting the form, you have now client id and client secret , we will use this further.

Step 2 : Time to get GRANT TOKEN

Grant token is some code which we will use to get access token (Step 3). First we have to find a grant token

Enter the authorization URL https://accounts.zoho.com/oauth/v2/auth along with values of the below parameters as a query string.

ParameterDescription
scopeThe scope required for your extension. (Can be found here : https://www.zoho.com/crm/developer/docs/api/oauth-overview.html)
client_idClient ID obtained during client registration.
stateA generated value that correlates the callback with its associated authorization request.
response_type“code”
redirect_urlThe redirect URL given during client registration.
access_typeThe access type will be either online or offline.

In Simple : On your browser hit the following URL : https://accounts.zoho.com/oauth/v2/auth?scope=ZohoCRM.modules.ALL,ZohoCRM.settings.ALL&client_id={client_id}&response_type=code&access_type={“offline”or”online”}&redirect_uri={redirect_uri}

with correct value.

On entering this url on your brrowser you will be asked for authorization on clicking yes, you will be redirected to the given redirect url. with a parameter ‘code’. Well this is your ‘Grant Token’.

Response Demo (On your URL Bar) : http://localhost/?code=1000.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&location=us&accounts-server=https%3A%2F%2Faccounts.zoho.com&

Step 3 :  generate access and refresh token

Make a POST request to the following URL https://accounts.zoho.com/oauth/v2/token using the parameters in the table below.

Account Url : https://accounts.zoho.com/oauth/v2/token (for india : use .in domain)

ParameterDescription
codeAuthorization code obtained during grant token generation.
client_idClient ID obtained during client registration.
client_secretClient secret obtained during client registration.
redirect_uriRedirect URI given during client registration.
grant_typeauthorization_code

Step 4 : Now its time to insert data in to CRM 

URL : https://www.zohoapis.com/crm/v2/Leads

Header => Authorization : Zoho-oauthtoken 1000.XXXXXXXXXXXXXXXXXXXXXXXXX (You got from step 3)

Data => Data : 
{
"data": [
{
"Company": "Company Name",
"Email": "contact@shivrajan.com",
"First_Name": "Shivrajan",
"Full_Name": "Shivrajan Singh",
"Lead_Status": "Contacted",
"Phone": "888-XXXX-XXXX",
"Last_Name": "Singh"
}
]
}

//must be a valid JSON 

 

And you are ready to go ..