Attachments on Invoices

Attachments on Invoices

Hey Everyone,

I was looking at the API information for Zoho Books. I am working on software that transfers invoices from my POS and uploads them to Zoho Books.

Ideally, it transfers a pdf and attaches it to the invoice, and will delete old invoices, if updated ones are available.

I am finding that the API works in kinda a scary way when using the "books/v3/invoices/{invoice_ref}/attachment" endpoint.

Can someone please help me out with the following questions?

      1. When using the get verb, it wants to send me the whole attachment. All I want is to retrieve it's reference number or file name, so I can alter it directly.

      2. Using delete works in a bonkers way. Here is why:
            - Calling it with no parameters simply deletes the oldest attached file.
             - Adding the parameter "file_name" deleted the related file. but if that file doesn't exist, it will then delete the                                                                  oldest file
            - At no point will it send an error message if something isn't correct

    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