Record

Record

I have this table:


I am try to connect with a web application with this code:

//Initialize connection
  $ch = curl_init('https://crm.zoho.com/crm/private/xml/Leads/insertRecords?');
  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

  $authtoken = "xxxxx";
  $xmlData = "<Leads><row no='1'>
    <FL val='Last Name'>Web Download</FL>
    <FL val='Mobile'>Web Download</FL>
    <FL val='Email'>Web Download</FL>
    <FL val='Solicita'>Web Download</FL>
    <FL val='Localidad'>Web Download</FL>
    <FL val='Provincia'>Web Download</FL>
    </row></Leads>";

$xmlData2 = urlencode($xmlData);

  $query = "newFormat=1&authtoken={$authtoken}&scope=crmapi&xmlData={$xmlData2}";
  curl_setopt($ch, CURLOPT_POSTFIELDS, $query);// Set the request as a POST FIELD for curl.

  echo $query;

  //Execute cUrl session
  $response = curl_exec($ch);

  echo $response;

  curl_close($ch);



But I always get this:

Invalid Ticket Id

What am I doing wrong?

Thank you so much