In this article, we will learn how to integrate Quickbooks Online in ASP.NET MVC Web application.

First, we need to Install “IppDotNetSdkForQuickBooksApiV3” SDK in our application.

Go to Tools > NuGet Package Manager > Manage NuGet Packages For Solutions.

Click on Browse Tab and search for “IppDotNetSdkForQuickBooksApiV3”. Click on search NuGet and click to Install button.

After installation of SDK, Set clientid, clientsecret, redirectUrl, appEnvironment and QboBaseUrl in web.config that we got by configuring Quickbooks online.

<add key="clientid" value="{Your-clientid}"/>
<add key="clientsecret" value="{Your-clientsecret}"/>
<add key="redirectUrl" value="https://localhost:44300/Home/QboCallBack"/>
<add key="appEnvironment" value="sandbox"/>
<add key="QboBaseUrl" value="https://sandbox-quickbooks.api.intuit.com/" />
  • clientid should be your application’s clientid
  • clientsecret should be your application’s clientsecret
  • redirectUrl must be valid redirect url which is already added in Redirect URIs of your Quickbooks application.
  • appEnvironment, it should be “sandbox” or “production”, according to your needs.
  • QboBaseUrl, it is a base url for api call. it is different for “sandbox” and “production”. for sandbox “https://sandbox-quickbooks.api.intuit.com/” and for production “https://quickbooks.api.intuit.com/”

if you don’t know how to configure Quickbooks online, you can find it here