i get {"code":1000,"message":"Internal Error"} response when execute following code. Please suggest how this can be done properly
var request = new RestRequest(Method.POST);
request.AddParameter("organization_id", orgID);
request.AddHeader("Authorization", "Zoho-authtoken " + token);
request.AddHeader("Content-Type", "application/x-www-form-urlencoded; charset = UTF-8");
string str = @"{
'contact_name': 'XYfZ and Co',
'company_name': 'XYfZ and Co',
'first_name': 'Wfill',
'last_name': 'Smifth',
'phone': '+1-925-921-9201',
'facebook': 'zoho',
'twitter': 'zoho',
'billing_address': {
'attention': 'Mr.John',
'address': '4900 Hopyard Rd',
'street2': 'Suite 310',
'state_code': 'CA',
'city': 'Pleasanton',
'state': 'CA',
'zip': 94588,
'country': 'U.S.A',
'fax': '+1-925-924-9600',
'phone': '+1-925-921-9201'
},
'shipping_address': {
'attention': 'Mr.John',
'address': '4900 Hopyard Rd',
'street2': 'Suite 310',
'state_code': 'CA',
'city': 'Pleasanton',
'state': 'CA',
'zip': 94588,
'country': 'U.S.A',
'fax': '+1-925-924-9600',
'phone': '+1-925-921-9201'
},
'contact_persons': [
{
'salutation': 'Mr',
'first_name': 'Wfill',
'last_name': 'Smfith',
'phone': '+1-925-921-9201',
'mobile': '+1-4054439562',
'designation': 'Sales Executive',
'department': 'Sales and Marketing',
'skype': 'Zoho',
'is_primary_contact': true,
'enable_portal': true
}
]
}";
request.AddParameter("JSONString", str);
IRestResponse response = client.Execute(request);