Skip to main content

Connect to QuickBooks or a simulator

Use a simulated connection if you don’t have QuickBooks handy. It’s ready in seconds, and your code won’t change when you connect real QuickBooks later.
About 3 minutes, nothing to install. QuBe Sync hosts a sample company file that answers like QuickBooks Desktop.
1

Create your account

Sign up and confirm your email. Your account is preloaded with a sandbox app to build in.
My Applications, listing My App Dev with a SANDBOX badge and My App Prod with a Set up billing to enable badge

Every new organization starts with a sandbox app and a production app.

2

Add a simulated connection

Open QB Connections -> New Connection
The New Connection form with App set to My App Dev, Name set to Test company and Type set to simulated (beta)

The name is optional.

It’s immediately “connected” to a sample company with customers, items and transactions. The simulator is in beta, so test against real QuickBooks before you launch.
Both need your API key: see Do it from your code.
CLI
3

Send a test request

On the connection’s page, click Queue test request. It asks QuickBooks for the first 10 customers, and the simulator answers within seconds.
The Requests tab on the connection's page: a CustomerQueryRq request, Answered

The request goes from Waiting to Answered on its own.

4

Read the answer

Click the request. Response JSON shows QuickBooks’ answer, the sample company’s customers, in the same shape your app will receive it.
The request's Response JSON: a data list of customers, each with snake_case fields such as bill_address, company_name, email and full_name

Each request keeps its qbXML, its JSON and its webhook attempts.

Real integrations fail in ways that are hard to reproduce, like a name that’s already taken. On the connection’s page, click Set faults beside Faults, set Next request to answered with 3100: name already in use, then click Queue test request again. Its state is error, with the same refusal QuickBooks would send.
The Simulator section of the connection's page: Run Web Connector now, Reset company file, and the Faults form
The same fault from the command line:
The simulator guide lists every fault it can inject.

Do it from your code

Queue test request is a shortcut for one API call. To make it yourself, copy two values from the dashboard:
Open My Applications, then My App Dev. QuBe Sync shows a key only once, when it’s made, so an owner of your organization either clicks Download .env, which makes a new key for the file (and replaces the key in their last download), or clicks Generate key and copies it then. After that the page shows only the key’s first and last characters. qube env --write makes one for you too.
My App Dev's API key and webhook secret, each shortened, with Expire and Generate buttons

Each app has its own keys. Keep them out of your code and your logs.

Go to QB Connections -> your new connection; copy Connection ID at the top of the connection’s page.

Use the RESTful customer query endpoint

201 Created (abridged)

Where to next

Connect your customers

Send each customer to the hosted onboarding page from a button in your app.

Receive answers in your app

Pass a webhook_url with each request, and QuBe Sync POSTs QuickBooks’ answer to it the moment it arrives. No polling. On your laptop, qube listen forwards them to your local app.

Make requests

Create invoices, update customers and query anything in QuickBooks.

Test without QuickBooks

What the sample company holds, and every failure the simulator can fake.

How it works

Apps, connections, requests and the Web Connector, and how they fit together.