Get Client Details API

Ths API is used to get the client details

Request URL:

https://people.zoho.com/people/api/timetracker/getclientdetails?clientId=<clientId>

Header:

Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf

Scope:

ZOHOPEOPLE.timetracker.ALL
OR
ZOHOPEOPLE.timetracker.READ 

Possible Operation Types:

ALL - Complete access to data
DELETE - Only to delete data

Request parameter:

ParameterValues AllowedDefault ValueDescription
*clientId<Client Id><Mandatory>Specify the client Id
fetchRecPerm<true|false><false>This key fetches whether there is delete permission for the individual record.

Error Codes and Messages :

Error CodeError Message
9000Permission denied
9002No <parameter_name> parameter specified
9003Wrong value given for <parameter_name> parameter

Note:

  • This API is permitted only for Admin.

Success Response Format

{
    "response": {
        "result": [
            {
                "clientId": <Client Id>,
                "clientName": <Client name>,
                "currencyCode": <Currency code>
                "billingMethod": <hourly job rate | hourly user rate | hourly user rate - jobs | hourly user rate - projects>,
                "emailId": <Email Id>,
                "firstName": <First name>,
                "lastName": <Last name>,
                "phoneNo": <Phone number>,
                "mobileNo": <Mobile number>,
                "faxNo": <Fax number>,
                "streetAddr": <Street address>,
                "city": <City>,
                "state": <State>,
                "pincode": <Pin code>,
                "country": <Country>,
                "industry": <Industry name>,
                "compsize": <Company size>,
                "description": <Description>,
                "isDeleteAllowed": <true|false>
            }
        ],
        "message": "Data fetched successfully",
        "uri": "/api/timetracker/getclientdetails",
        "status": 0
    }
}

Error Response Format

{
    "response": {
        "message": Error in fetching data,
        "uri": "/api/timetracker/getclientdetails",
        "errors": [
            {
                "code": <Error Code>,
                "message": <Error Message>
            }
        ],
        "status": 1
    }
}​

 Threshold Limit:  20 requests | Lock period: 5 minutes

Threshold Limit - Number of API calls allowed within a minute.
Lock Period - Wait time before consecutive API requests.

Sample Request

Copiedhttps://people.zoho.com/people/api/timetracker/getclientdetails?clientId=469505000000133417

Header

CopiedAuthorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf

Sample Response

Copied{
    "response": {
        "result": [
            {
                "lastName": "Meyrick",
                "country": "UNITED STATES",
                "pincode": "32104",
                "streetAddr": "50, Oakland Avenue",
                "clientId": "469505000000133417",
                "clientName": "Adamo Meyrick",
                "city": "#206 A city",
                "description": "Food Door Delivering Company",
                "emailId": "ameyrickd@wix.com",
                "industry": "Voolia",
                "mobileNo": "7708753134",
                "phoneNo": "656-630-9381",
                "firstName": "Adamo",
                "faxNo": "+1-212-9876543",
                "compsize": 230,
                "state": "Florida",
                "currencyCode": "USD",
    "isDeleteAllowed": true
            }
        ],
        "message": "Data fetched successfully",
        "uri": "/api/timetracker/getclientdetails",
        "status": 0
    }
}
Copied<?xml version="1.0" encoding="UTF-8"?>
<response uri="/api/timetracker/getclientdetails">
    <status>0</status>
    <message>Data fetched successfully</message>
    <result>
        <client>
            <lastName>Meyrick</lastName>
            <country>UNITED STATES</country>
            <pincode>32104</pincode>
            <streetAddr>50, Oakland Avenue</streetAddr>
            <clientId>469505000000133417</clientId>
            <clientName>Adamo Meyrick</clientName>
            <city>#206 A city</city>
            <description>Food Door Delivering Company</description>
            <emailId>ameyrickd@wix.com</emailId>
            <industry>Voolia</industry>
            <mobileNo>7708753134</mobileNo>
            <phoneNo>656-630-9381</phoneNo>
            <firstName>Adamo</firstName>
            <faxNo>+1-212-9876543</faxNo>
            <compsize>230</compsize>
            <state>Florida</state>
            <currencyCode>USD</currencyCode>
            <isDeleteAllowed>true</isDeleteAllowed>
        </client>
    </result>
</response>