Invoice API PHP example

Invoice API PHP example

Hello,

I'm trying to integrate with zoho, but I have some issue with API,
Please provide same php example of using api, e.g how to get list contact
I tried to use :
function listCustomers() {
    $authtoken = '2f89455f7767e00d28ea38ee0baa7837';
    $Organisation = '37517635';


    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_VERBOSE, 1);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
    curl_setopt($ch, CURLOPT_POST, TRUE);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/x-www-form-urlencoded"));
    curl_setopt($ch, CURLOPT_POSTFIELDS, "&JSONString=".urlencode(json_encode($jsonData)));
    $result = curl_exec($ch);
    var_dump($result);
    curl_close($ch);


}

but I have a result:

string(49) "{"code":1038,"message":"JSON is not well formed"}"