-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call to Invoices returns four null invoices - may be related to new invoicing released by Xero #923
Comments
I noticed a new "pagination" key is returning. In Response.php if you add
|
Yep, agreed. Can see the new element here, and the four entries (page, pageSize, pageCount, itemCount) account for the extra four blank items returned from the call.
I see mention of both |
Solution looks sensible for now. I've proposed a pull request for this as above #924 |
We noticed that we were getting some null object Invoices coming back from the Xero API, specifically:
(don't mind the method used to load the Xero library, that is from our platform)
This returns not 100 results (the number expected on a single page), but 104. The extra four appear to be invoice objects with null properties. We started seeing this on one of our tenants as of 17/07/2024 at approx 11:54am NZST. We confirmed that it is happening on another four tenants also, with differing versions of this library.
At a glance the Xero API explorer appears to not be reporting the same, but I am confirming this.
Here is the dump that we get from the above code:
and so on, for the first four records, then we get normal invoices.
The timing is in line with Xero announcing their new invoicing functionality, but there is no mention of any API changes.
References:
The text was updated successfully, but these errors were encountered: