Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IntuitDeveloperRelations/5246669 to your computer and use it in GitHub Desktop.
Save IntuitDeveloperRelations/5246669 to your computer and use it in GitHub Desktop.
IPP .NET DevKit v2 - QBD - Retrieve Active QBD Customers with a minimum balance #DotNetDevKitV2 #Customer #QBD
// #DotNetDevKitV2 #Customer #QBD
//Retrieve Active QBD Customers with a minimum balance
//Documentation: http://goo.gl/jUdxR
var oauthValidator = new OAuthRequestValidator(accessToken, accessTokenSecret, consumerKey,consumerSecret);
var context = new ServiceContext(oauthValidator, realmId, IntuitServicesType.QBD);
var commonService = new DataServices(context);
var qbdCustomerQuery = new Intuit.Ipp.Data.Qbd.CustomerQuery
{
ActiveOnly = true,
MinimumBalance = new decimal(500000),
MinimumBalanceSpecified = true
};
var qbdFilteredCustomers = qbdCustomerQuery.ExecuteQuery<Intuit.Ipp.Data.Qbd.Customer>(context).ToList<Intuit.Ipp.Data.Qbd.Customer>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment