I’d like to bump this topic, if possible, and bring in @lubos to have a quick look at it.
Essentially, if we can request the PDF via the API, we can also implement complex logic in our own applications to save us time generating PDFs manually.
Two main use-cases that I can think of:
- External application caching invoice PDF, and allowing the customer to re-download whenever they want (e.g. customer portal)
- Generate and email multiple invoices automatically at the end of the month, solving requests like this one programmatically: Multiple (20) Recurring Sales invoice mailing