We r using amember billing system and we want to use our customer related information on zoho crm as well, the API method insertRecord is working for Contacts but we can not insert invoice into them and we dont have an idea how to insert invoice to CRM the code we r using to insert Contacts is
<?php
$xml =
'<?xml version="1.0" encoding="UTF-8"?>
<Contacts>
<row no="1">
<FL val="First Name">aqeel</FL>
<FL val="Last Name">ahmed</FL>
<FL val="Department">IT</FL>
<FL val="Phone">999999999</FL>
<FL val="Fax">99999999</FL>
<FL val="Mobile">99989989</FL>
<FL val="Assistant">none</FL>
</row>
</Contacts>';
$url ="https://crm.zoho.com/crm/private/xml/Contacts/insertRecords";
$auth = "xxxxxxxxxxxxxxxxxxxxxxxxxxx";
$query="authtoken=".$auth."&scope=crmapi&newFormat=1&xmlData=".$xml;
$ch = curl_init();
/* set url to send post request */
curl_setopt($ch, CURLOPT_URL, $url);
/* allow redirects */
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
/* return a response into a variable */
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
/* times out after 30s */
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
/* set POST method */
curl_setopt($ch, CURLOPT_POST, 1);
/* add POST fields parameters */
curl_setopt($ch, CURLOPT_POSTFIELDS, $query);// Set the request as a POST FIELD for curl.
//Execute cUrl session
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
it is working fine is there any guidance u can provide us to insert the invoices the same fashion from amember to zoho crm