How to create a journal with Deluge?

How to create a journal with Deluge?

Im trying to create a journal with a custom button from a custom module. Some of the info on the code looks like this:
LineItem1 = Map();
LineItem1.put("account_id",CuentaCredito);
LineItem1.put("amount",ImporteDepreciado2);
LineItem1.put("debit_or_credit","credit");
LineItem2 = Map();
LineItem2.put("account_id",CuentaDebito);
LineItem2.put("amount",ImporteDepreciado2);
LineItem2.put("debit_or_credit","debit");
Lista = list();
Lista.add(LineItem1);
Lista.add(LineItem2);
}
CrearAsiento = Map();
CrearAsiento.put("journal_date",FechaDeCompra);
CrearAsiento.put("notes","Depreciación Activo Fijo");
CrearAsiento.put("line_items",Lista);
Create = zoho.books.createRecord("Journals",OrganizaitonId,CrearAsiento);
return CrearAsiento;

There is more to the code, but from what you can see, i think nothing is missing. When i create a new record on my custom module and press the button, it shows the info and has no error. When i execute the the code in the deluge coding area it returns this:

{"journal_date":"2024-03-02","notes":"Depreciación Activo Fijo","line_items":[{"amount":100,"account_id":"3942486000000034001","debit_or_credit":"credit"},{"amount":100,"account_id":"3942486000000000451","debit_or_credit":"debit"}]}

I dont know is there is something missing but it wont create a new journal in my zoho books.