Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > Wrapper libraries >

Invoice Find by Contact's AccountNumber

Started by Mihai Benegui -   in Wrapper libraries

Hello!
I'm using the c# wrapper and came across this scenario:
I would like to retrieve invoices from Xero using the contact's AccountNumber. Something like this:

api.Invoices.Find().Where(i => i.Contact.AccountNumber == "SomeAccountNo")
However this does not work. Will always return 0 results.

If instead I run:

api.Invoices.Find().Where(i => i.Contact.Id == Guid.Parse("SomeGuidStringhere"))
seems to be working flawless.

Can someone confirm?

Best regards,
Mihai