Creating a in invoice in books from creator

Creating a in invoice in books from creator

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);
}

      Zoho SalesIQ Resources



            Zoho TeamInbox Resources

              Zoho DataPrep Resources


                  Zoho CRM Plus Resources

                    Zoho Books Resources


                      Zoho Subscriptions Resources

                        Zoho Desk Resources

                          Zoho Projects Resources


                            Zoho Sprints Resources


                              Qntrl Resources


                                Zoho Creator Resources


                                  Zoho WorkDrive Resources




                                      Zoho Campaigns Resources

                                        Zoho CRM Resources

                                                    Design. Discuss. Deliver.

                                                    Create visually engaging stories with Zoho Show.

                                                    Get Started Now


                                                      Zoho Show Resources


                                                        Zoho Writer Writer

                                                        Get Started. Write Away!

                                                        Writer is a powerful online word processor, designed for collaborative work.

                                                                  有料プランをご利用の方