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

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now