URL for request grant token:
/oauth/v2/auth??scope=ZohoCRM.modules.ALL&client_id={client_id}&response_type=code&access_type=offline&prompt=consent&redirect_uri={my_url}
Request for insert Account:
method: POST
url:
https://www.zohoapis.eu/crm/v2/Accounts
headers: {
Authorization:Zoho-oauthtoken 1000.d3f65f99ca204810...f693c30501e4c757d41
}
body:
{
"data": [
{
"Company": "Acme Inc",
"Last_Name": "Donelly",
"First_Name": "Jennifer",
"State": "Texas",
"Country": "United States"
}
]
}
Response:
{
"code": "OAUTH_SCOPE_MISMATCH",
"details": {},
"message": "invalid oauth scope to access this URL",
"status": "error"
}
==================================================
POST /crm/v2/Accounts?scope=ZohoCRM.modules.ALL HTTP/1.1
Content-Type: application/json
Accept: application/json
Authorization: Zoho-oauthtoken 1000.d3f65f99ca20481027474cc3e510...693c30501e4c757d41
Cache-Control: no-cache
Postman-Token: 72dcbe79-83b8-166d-1906-b5240045627c
{
"data": [
{
"Company": "Acme Inc",
"Last_Name": "Donelly",
"First_Name": "Jennifer",
"State": "Texas",
"Country": "United States"
}
]
}