Zoho Books Invoice

Zoho Books Invoice

I'm using the zoho.books.createRecord( ) method to create and send invoices. But the invoices get saved as drafts rather than being sent to the customer. How do I send the invoice?