I am trying to make create an unvoice in zoho books from creator once a check box is clicked and it is not working. Is there something wrong with my code. The info executes but the invoice is not created. Thank you. And that's not my actual org id.
if(Charge_to_customer == true)
{
organization_id = "00000000";
info "Invoice draft has been created in zoho books.";
draft_info = Map();
draft_info.put("reference_number",input.Ticket_Number);
draft_info.put("salesperson_id","1419838000016331233");
draft_info.put("salesperson_name","Bianca Roy");
response = zoho.books.createRecord("Invoices",organization_id,draft_info);
}