Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Endpoints >

Invoice LineItem sort order after API post

Started by Daryl Christie -   in API Endpoints

Hi, I have a private application set up that retrieves existing Xero invoices (including LineItems) , then adds to or updates some of these. It all works fine, but I really cannot understand the logic behind the LineItem display order when viewed in Xero. Is it by LineItemID? If so how does that work when the LIneItems are manually dragged up and down to change the order? I have tried sorting by various fields before attaching to the Invoice object but it doesn't seem to make any difference. I am adding by invoice.LineItems.AddRange(lineItems); rather than one at a time in case that makes any difference?
Thanks,
Daryl
Hi just wondering if anyone from Xero is monitoring this, or if anyone else has any suggestions?
Thanks,
Daryl
 

Daryl Christie