Not all leads are imported

Not all leads are imported

Hi
I have developed an application which imports the leads from Zoho CRM. The issue I am facing is that whenever I import the leads using the API, not all leads are imported.

The PHP code that I am using is very simple.

$json_data = file_get_contents(' https://crm.zoho.com/crm/private/json/Leads/getRecords?authtoken='.$token.' ');

The CRM application is being used by multiple users, the token being used in the API call belongs to the administrator of the CRM.

The behavior is quite erratic, sometimes the new leads are imported, other times, it just does not work. There are other applications also using tokens to access the CRM data.

If there is any further information required for me to post, kindly let me know and help me debug this.