Page 1 of 1
Invoices endpoint not returning all invoices
Posted: Thu Jul 07, 2022 1:47 pm
by MarkIBI
Hi
When querying the Invoices EndPoint not all the Invoices are being returned.
/api/v1.0/companies/0/invoices/?orderby=-ID&columns=ID
ID's 765 and 763 are missing from the list of ID's below

- Screenshot 2022-07-07 144137.png (3.96 KiB) Viewed 10995 times
However, when specifying the invoice ID in the query the details are returned
/api/v1.0/companies/0/invoices/765

- Screenshot 2022-07-07 144556.png (2.37 KiB) Viewed 10995 times
Are some invoices excluded from the Invoices endpoint?
Thanks
Re: Invoices endpoint not returning all invoices
Posted: Thu Jul 07, 2022 10:22 pm
by robbertcha
Hi,
Do you mind to share us your build details via private message? we can check it for you, thank you
Re: Invoices endpoint not returning all invoices
Posted: Tue Jul 12, 2022 1:13 am
by robbertcha
Hi,
765 & 763 are credit notes, so they won't show on invoices endpoint, but showing the credit note details on invoice endpoint e.g.: api/v1.0/companies/0/invoices/765 is an issue, thank you for your information and we will send you an update when this issue is fixed and released, or please keep an eye on API release update, thank you.
API release update
viewforum.php?f=3
Re: Invoices endpoint not returning all invoices
Posted: Tue Jul 26, 2022 2:17 am
by AvidTheProgrammer
I am not sure if this is the same issue but my company is also not getting invoices back. When searching with CustomerInvoiceSearch the past few weeks we've only gotten "{\"result\":[],\"error\":null,\"id\":1}\n" and the like back, even when we know there are invoices in the time period. This code has been working for a year until recently.
Re: Invoices endpoint not returning all invoices
Posted: Wed Jul 27, 2022 12:35 am
by Sindre
Hi AvidTheProgrammer,
The endpoint for customer invoices in deprecated so it's no longer updated but there are no changes so it should still work fine. I did a test on our local build.
To help you please send me a private message with some screenshots and information of what endpoints you are using and if there are any special search parameters you are using.
Also send me your local build details so I can troubleshoot in your environment.
Regards