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