Batch/Bulk Invoicing limitations

Batch/Bulk Invoicing limitations

This article provides a solution about the Batch / Bulk invoicing limitations when 5000 Xero API calls per day are exceeded

This can be solved by creating an optimized flow
  1. Create a flow (scheduled/triggered) using apex action 'CustomObjectBulkInvoice
  2. Add the required records ids for invoices to be created
  3. Update the Mapping Id as per the screenshot
This will push up to 300 invoices in a single Xero API call.


Please note the following limitations:
  • Invoice URL and PDF will not be pulled back into Salesforce, however this can be achieved using manual sync or by creating a separate flow
  • Only 300 invoices per request are supported due to Xero’s JSON payload size limitations