attaching pdf to a bill using REST api

attaching pdf to a bill using REST api

I'm trying to attach a pdf to a bill using REST and curl. The problem is the example in that section in the API reference document does not show how to actually submit the file. It only shows the headers used.

I've been trying many variations of this command with no luck. Always getting an error message saying no attachment is found.

-X POST
"https://books.zoho.com/api/v3/bills/XXXXXXX/attachment?can_send_in_mail=true" 
--H "Authorization: Bearer xxxxxxxxxxxxx"
--H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
--H "X-com-zoho-invoice-organizationid: xxxxxxx"
--F  "attachment=@/Volumes/HardDrive/Users/xxxx/Documents/test.pdf"

I've search around and found a few forum posts trying to show how to do it using PHP. Can't find any examples of how to do it with REST.

I sure would appreciate an example showing the full command.

      Zoho Campaigns Resources


        • Desk Community Learning Series


        • Digest


        • Functions


        • Meetups


        • Kbase


        • Resources


        • Glossary


        • Desk Marketplace


        • MVP Corner


        • Word of the Day


        • Ask the Experts


          Zoho CRM Plus Resources

            Zoho Books Resources


              Zoho Subscriptions Resources

                Zoho Projects Resources


                  Zoho Sprints Resources


                    Zoho Orchestly Resources


                      Zoho Creator Resources


                        Zoho WorkDrive Resources



                          Zoho CRM Resources

                          • CRM Community Learning Series

                            CRM Community Learning Series


                          • Tips

                            Tips

                          • Functions

                            Functions

                          • Meetups

                            Meetups

                          • Kbase

                            Kbase

                          • Resources

                            Resources

                          • Digest

                            Digest

                          • CRM Marketplace

                            CRM Marketplace

                          • MVP Corner

                            MVP Corner




                            Zoho Writer Writer

                            Get Started. Write Away!

                            Writer is a powerful online word processor, designed for collaborative work.

                              Zoho CRM コンテンツ



                                ご検討中の方