Запрос всех счетов с открытыми балансами с использованием QuickBooks Online (QBO) Intuit Partner Platform (IPP) DevKit
Я пытаюсь запросить все счета с открытыми балансами с использованием IPP, но я продолжаю получать 0 результатов обратно. Я делаю что-то не так в коде?
Вот мой фрагмент кода C #, который я пытаюсь сделать с помощью примененной фильтрации.
InvoiceQuery qboInvoiceQuery = new InvoiceQuery();
int iMaxPageNumber = QUERY_MAX_PAGE_NUMBER; // A Constant with the Maximum Page Number allowed in a query
int iResultsPerPage = QUERY_MAX_NUM_PER_PAGE_INVOICE; // A Constant with the Maximum Results per page
// Paging Information
qboInvoiceQuery.PageNumber = QUERY_START_PAGE_NUMBER;
qboInvoiceQuery.ResultsPerPage = iResultsPerPage;
#region Query Filtering
//////////////////////////////////////////////
// initial filtering via Query Criteria //
//////////////////////////////////////////////
// Get only Open (Unpaid) Invoices
qboInvoiceQuery.OpenBalance = (decimal)0.00;
qboInvoiceQuery.SpecifyOperatorOption(FilterProperty.OpenBalance, FilterOperatorType.AFTER);
//////////////////////////////////////////////
// END initial filtering via Query Criteria //
//////////////////////////////////////////////
#endregion
// Complete the Query calls to build the list
IEnumerable results = qboInvoiceQuery.ExecuteQuery(_ServiceContext);
IEnumerable qboInvoices = results;
int iCount = results.Count();
while (iCount > 0 && iCount == iResultsPerPage && qboInvoiceQuery.PageNumber 0 && iCount == iResultsPerPage && iPageNumber