Xero API: Send Multiple Invoices
- Joel Lipman
- Xero
- Hits: 3106
A really quick article for anyone who got stumped by the same issue: How to send multiple invoices to Xero in one API call?
Why?
Our use-case is in Zoho Deluge which couldn't generate more than 5 invoices in a scheduled task because Xero only allows 5 concurrent connections at one time... And Zoho was trying to send about 7 at a time (as in schedule created 7 Zoho invoices but only 5 Xero invoices). Our solution: Send all Zoho invoices in API call to Xero... apparently it can accept up to 60 invoices in one call.
How?
Crazy simple solution, your JSON needs to have the key "Invoices" and the list of invoices to create:
Category: Xero :: Article: 757