{"code":2,"message":"The request passed is not valid."}
kindly find the code below:
$headers = array(
"Content-Type"=> "application/json;charset=UTF-8",
"X-com-zoho-subscriptions-organizationid"=> "$org_id",
"Authorization"=> "Zoho-authtoken $auth_token"
);
$data = array("display_name"=> 'tst test',
"first_name"=> 'test',
"last_name"=> 'test',
"email"=> 'test@test.com',
"tax_authority_id"=> '000000',
"tax_authority_name" => 'abc'
);
$curl_handle = curl_init();
curl_setopt($curl_handle,CURLOPT_URL,$url);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true );
curl_setopt($curl_handle, CURLOPT_POST, true);
curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, false );
curl_setopt($curl_handle, CURLOPT_HTTPHEADER,$headers);
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $data);
$resp = curl_exec($curl_handle);
echo "<pre>";print_r($resp);die;
Writer is a powerful online word processor, designed for collaborative work.