Be able to Allocate CreditNotes while creation
Right now, the only way to allocate a CreditNote to an Invoice is via a single API call to <url>/CreditNoteID/Allocations
This severely limits the capability to have multiple allocations (exclusive) done at the same time. It would be wonderful to allocate CreditNotes to Invoices while their creation.
-
Auther George
commented
Processing credit notes one by one before allocating invoices can be extremely inefficient for high‑volume workflows. By allowing a https://abbeville-court.recordss.org/ style bulk allocation endpoint, developers could submit all relevant invoice IDs in a single request, removing the need for repetitive calls and reducing latency. This enhancement would streamline error handling, improve transactional integrity, and make the Xero API feel more like a true end‑to‑end financial service.
-
Kieran Pilkington
commented
Agreed. We're having to do a very roundabout way of creating all credit notes in bulk, then looping over the successful results and making allocations one by one. It would be far better to have a means to provide an "Allocations" array in the credit note creation API that contains invoice ids to assign the credit note to.