Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > Add-ons >

item line order in API invoices

Started by Nick Holdsworth -   in Add-ons

Hi team,

Possibly a bit of a curly one here. When sending purchase orders from our software, Vend, into Xero 'accounts payable' as invoices awaiting approval, what control do we have over the order in which line items appear? By default they appear to sort in the order entered (presumably by timestamp?). Or are they in the order received by the API call?

We offer the ability to sort by order entered, or alphabetical. We have a customer entering many large purchase orders a day into Vend, then according to them, the order when they post to Xero is randomly different.

Hi Nick,

The line item order should be identical to the order that you submitted it. Drop us a line "network at Xero dot com" with some more details and we can take a closer look.


Tony Rule (Xero Staff)