Xero-NetStandard icon indicating copy to clipboard operation
Xero-NetStandard copied to clipboard

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

Open onuryavuzmeral opened this issue 1 year ago • 3 comments

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.

onuryavuzmeral avatar May 14 '24 07:05 onuryavuzmeral

PETOSS-422

github-actions[bot] avatar May 14 '24 07:05 github-actions[bot]

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

github-actions[bot] avatar May 14 '24 07:05 github-actions[bot]

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..

ankushkhandare95 avatar Sep 10 '24 09:09 ankushkhandare95