I am able to get the Invoice
details by using Total
or AmountPaid
as shown below:
var invoices = public_app_api.Invoices.Where("Total=100").Find();
var invoices = public_app_api.Invoices.Where("AmountPaid=100").Find();
I am unable to get the Invoice
details by InvoiceID
like..
var invoices = public_app_api.Invoices.Where("InvoiceID=c5b238f4-1356-4cad-89d0-681b6d182ea7").Find();
ERROR AS:- Xero.Api.Infrastructure.Exceptions.BadRequestException: 'No property or field 'c5b238f4' exists in type 'Invoice''
How can I fix this?