Email invoice PDF to customer from API not working

Email invoice PDF to customer from API not working

Hello,

We are creating an invoice from sales order via API. Once created as DRAFT, we need to actually send the invoice PDF via email to the associated customer. We need to use an email template we created in Setup area of Zoho Inventory.

We tried two most appropriate options:
1. setting up an automation to send the email by using the correct template. However, although I can read from the History&Comments that the workflow executed correctly, the email didn't actually get through. Is there any known issues with this type of workflow? Also, will the invoice PDF be attached to this email?
1. using the  https://inventory.zoho.com/api/v1/invoices/email API end point. However, this API seems wrongly documented here:  https://www.zoho.com/inventory/api/v1/#Invoices_Email_invoices. By POST-ing an empty body with just the invoice_ids query param does throw back an error: {"code": 4, "message": "Invalid value passed for JSONString"}. We also tried to send a JSONString value containing {"invoice_ids":"XXXX-invice_ID-hereXXX"} but no results.

What is the functional way of sending the invoice PDF to customers?

Thank you,
Tudor