getInvoices not shows the getLineItems
Closed this issue · 3 comments
Hi , I am trying to get all Invoices with getInvoices function , but this function not return LineItems for each incoive i get in getInvoices function.
kindly suggest
Hi,
This seems to be an issue for me too. getLineItems()
is always an empty array.
Hi @hirani89,
This package only facilitates the oauth connection, as long as you're able to call the API then this will be a question to ask directly on the https://github.com/XeroAPI/xero-php-oauth2 repository.
However reviewing the documentation quickly it states
When you retrieve multiple invoices, only a summary of the contact is returned and no line details are returned – this is to keep the response more compact.
So you'll need to fetch the individual invoices to get the line details.