I've been getting the above error, but my code posts all the required data to the API. Any ideas?
header = Map();
header.put('Authorization',"Zoho-oauthtoken" + AccessToken);
Name = "Name";
today = today;
ClientName = "Company";
ClientEmail = "
[redacted]";
header.put("is_quicksend",true);
templates = Map();
field_data = Map();
field_text_data = Map();
field_text_data.put("Payment Received","£250,000");
field_text_data.put("Company Fee %","10%");
field_text_data.put("Company Fee GBP","£25,000");
field_text_data.put("PaymentMinusFee","£220,000");
field_text_data.put("ClientBankName","TestBank");
field_text_data.put("ClientAcctSortCode","01-01-01");
field_text_data.put("ClientAccountNumber","12345678");
Approver = Map();
Approver.put("recipient_name","Signer 1");
Approver.put("recipient_email","
l[redacted]");
Approver.put("action_id","
[redacted]");
Approver.put("signing_order",1);
Approver.put("role","Approver");
Approver.put("verify_recipient",false);
Approver.put("private_notes"," ");
Signer = Map();
Signer.put("recipient_name","Signer");
Signer.put("recipient_email","
[redacted]");
Signer.put("action_id","
[redacted]");
Signer.put("signing_order",2);
Signer.put("role","Client");
Signer.put("verify_recipient",false);
Signer.put("private_notes"," ");
field_data = Map();
field_data.put("field_text_data",field_text_data);
field_data.put("field_boolean_data",null);
field_data.put("field_date_data",today);
field_data.put("field_radio_data",null);
templates.put("field_data",field_data);
Actions = list();
Actions.add(Approver);
Actions.add(Signer);
info "Actions: " + Actions;
templates.put("Actions",Actions);
templates.put("notes","Test Note");
data = Map();
data.put("templates",templates);
body = Map();
body.put(data);
info "Body: " + body;
response = invokeurl
[
url :NextURL
type :POST
parameters:body
headers:header
detailed:true
];
info response;
ZohoDocumentID = response.get("request_id");
info ZohoDocumentID;