Unable to create Estimate using invoiceapi with Curl and PHP

Unable to create Estimate using invoiceapi with Curl and PHP

Hi !, 
i am trying to create an estimate with the invoice api using Curl and PHP from the code below.
The estimate is not getting created and there are no errors shown either.

Details:
 curl:on
 SSL:enabled

Thanks in Advance!

<?php
$url = 'https://invoice.zoho.com/api/estimates/create?';
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
//standard i/o streams
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
// Turn off the server and peer verification
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//Set to return data to string ($response)
curl_setopt($ch, CURLOPT_POST, 1);
//Regular post
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, 'rsa_rc4_128_sha');

// Set post fields
$authtoken = "94e860b2f54bf2dccb9d0beded97f764";
$xmlData = simplexml_load_file('zoho.xml'); // sample estimate XML from the API docs my my customers id.
$query = "newFormat=1&authtoken={$authtoken}&scope=invoiceapi&xmlData={$xmlData}";
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);
?>

      • Sticky Posts

      • Zoho Invoice Will Soon Discontinue Support for Older Browser Versions

        Hello users, Starting from May 15, 2024, Zoho Invoice will no longer support the following browser versions: Browsers Version Restrictions Firefox Browser Versions older than 100 Google Chrome Versions older than 100 Microsoft Edge Versions older than
      • Bulk Printing now available in Zoho Invoice

        Hello, We are happy to announce the much requested and much awaited feature in Zoho Invoice - Bulk Printing of Estimates and Invoices. All you need to do is, select the invoices you wish to print and then click the 'Print' button. All the invoices will be downloaded as a single PDF file which can be printed as you wish. You can print upto 25 invoices at a single go. Go ahead and give it a shot and let us know how it worked for you. Regards, Reshma   
      • Introducing the iPhone App for Zoho Invoice

        Now you can invoice on the go from your iPhone through the Zoho Invoice iPhone app. Our iPhone app is available at the apps store for download. The app is special in more ways than one: An impeccable UI takes your invoicing experience to a whole new level That's a first native app we've come up with It's available for FREE!!!!! Yeah, absolutely Free. No brainer there, we just wanted to make our users to enjoy the app no strings attachedHere some snapshots of the app: For the real experience, head