Skip to content
Advertisement

How can I use API to get quickbooks data without browser based OAUTH?

This is in relation to the online version of Quickbooks, QBO (not the desktop).

We need our serverside code to be able to log-in and query some data from quickbooks (just like your API provides) and supply this information to our billing system. This would not involved a browser and use something like curl but this means there is no browser and no human to ‘log in’ and ‘request access’ each time. I have not found a way to do this yet. Any ideas?

Advertisement

Answer

Your question was already answered over here:

Alas, for the sake of verboseness:

No matter which API you choose, you can do what you’re asking.

Regardless of which API you go with (qbXML, or Intuit Anywhere/OAuth) you only need a human to get things connected the very first time you connect.

After that very first time, you can fetch data at any time you want (as you suggest, with CURL) with zero interaction with an actual user. All you have to do is store the OAuth credentials that Intuit gives you. This is how all OAuth implementations work – you store the credentials you get back, so you can request data unattended later.

If that’s not the behavior you’re seeing, it just means you’ve implemented something incorrectly (and should probably post your code, so we can help you troubleshoot).

You might want to check out the QuickBooks PHP DevKit, which has examples of doing just what you’re asking for:

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement