Create customer in Invoice

Create customer in Invoice

Hello:
I've read  https://www.zoho.com/creator/help/script/create-customer.html but can not get the script to work.
I' ve created a script on add-on success in the form. The code is:
success message "Datos añadidos correctamente";
  1. cliente = zoho.invoice.createcustomer({ "CustomerName" : input.ApNom, "Email" : "", "BillingAddress" : input.Domicilio, "BillingCity" : input.Poblaci_n, "FirstName" : input.Nombre_del_padre });
  2. openUrl(("https://creator.zoho.com/adminpsicotrade/tea-cloud/#Form:Pacientes_Escolares"), "Same window");