Skip to content
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

AccountingAPI, GetInvoices method, "where" parameter, SearchTerm is not working #512

Closed
onuryavuzmeral opened this issue May 14, 2024 · 3 comments

Comments

@onuryavuzmeral
Copy link

SDK you're using (please complete the following information):

  • Xero.NetStandard.OAuth2 5.0

Describe the bug
AccountingAPI, getinvoices method has a "where" parameter where you can filter invoices.
if I use Type=="ACCREC" it has no problem, but if I use SearchTerm=="abc" it throws an error as below:

Xero API 400 error calling GetInvoices :{
"ErrorNumber": 16,
"Type": "QueryParseException",
"Message": "No property or field 'SearchTerm' exists in type 'Invoice'"
}

Expected behavior
Filter incoming invoices by searchterm case-insensitive.

Copy link

PETOSS-422

Copy link

Thanks for raising an issue, a ticket has been created to track your request

@ankushkhandare95
Copy link
Contributor

ankushkhandare95 commented Sep 10, 2024

For GET /invoice endpoint SearchTerm is supported as a separate GetInvoices method parameter from Xero.NetStandard.OAuth version = 8.0. Please consider using version 8.0 or higher to use SearchTerm filter in AccountingAPI, GetInvoices method.

Please use SearchTerm with single "=" and outside of the where clause parameter. Closing this issue for now, do let us know if you face any further issues.
Thanks..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants