xero-php
xero-php copied to clipboard
Set line items to the end of an invoice instead of the top when updating an invoice
Hi,
Is there a way when adding line items to an existing invoice (which already has line items) to add them to the end of the invoice instead of them being added to the top which happens by default?
Or is there a way to re-order line items via the API?
Any help on this would be great.
Thank you.
Great question. I'm not sure - have you tested in the API previewer? I believe the LineItem
endpoints an invoice should respect the order.