QuickBooks Online v2

QuickBooks Online is a cloud accounting platform that businesses use to manage customers, vendors, invoices, payments, and their general ledger.

The Flowgear QuickBooks Online Node lets you get, list, query, create, update, and delete company records, download invoice PDFs, and send invoices or void payments and sales receipts. Use it to keep accounting data in QuickBooks in step with your other business systems.

Revision History

0.0.0.1 - Introduces the QuickBooks Online connector.
0.0.0.3 - Adds Custom Query.
0.0.0.7 - Uses standard Flowgear metadata for mutation responses.
0.0.0.13 - Update token refresh.
0.0.0.21 - Renamed Read to Get, added List, moved Send Invoice inputs to Items, and replaced template keys with GUIDs. Existing Steps must be reselected.

Connection

Use a separate Connection for each company and QuickBooks environment you need to access.

Property Type Description
ClientId String Required OAuth client identifier from the Intuit app registration.
ClientSecret Masked Required OAuth client secret.
AccessToken Masked Populated by Connect Account and refreshed automatically.
RefreshToken Masked Populated by Connect Account and saved again when Intuit rotates it.
CompanyId String Numeric company identifier (realmId) returned by Intuit when you connect the account.
Environment Enum Sandbox for developer companies or Production for live companies. Defaults to Sandbox.
MinorVersion String Numeric Accounting API minor version appended to requests. Defaults to 75. Intuit serves values below 75 as 75.

Setup Notes

Use this Node on a Flowgear Cloud Cluster. It is not available on Run Anywhere Clusters.

  1. Create an Intuit app registration with access to the QuickBooks Online Accounting API and register the callback URI used by the Connection's OAuth flow.
  2. Create a Connection for QuickBooks Online in the required Flowgear Environment.
  3. Enter ClientId and ClientSecret, and select Sandbox or Production to match the company you intend to connect.
  4. Click Connect Account and authorize the required company. The completed authorization supplies tokens and CompanyId.
  5. Test and save the Connection. Its test reads company information; separately test the business operations your Workflow needs.

Select a Method and template when adding the Node. Templates supply OperationId and a sample input/output shape. Replace placeholder IDs, tokens, email addresses, and business fields before running. Available entities and fields depend on the company's region, subscription, and enabled features.

Methods

Get

Gets one record by its QuickBooks identifier.

Parameter Type Description
Connection Connection The QuickBooks Online Connection for the target company.
OperationId String The operation selected by the template. Keep it consistent with the Method and entity.
Options Object Set Id to the identifier of the selected entity.
Return Type Description
Response Array The requested entity as one record.

List

Lists every record of the entity selected by the template. Results are returned as individual records, with later pages fetched as they are consumed.

Parameter Type Description
Connection Connection The QuickBooks Online Connection for the target company.
OperationId String The operation selected by the template. Keep it consistent with the Method and entity.
Return Type Description
Response Array Provider-shaped records. An empty result contains no rows.

Query

Queries the entity selected by the template. Results are returned as individual records, with later pages fetched as they are consumed.

Parameter Type Description
Connection Connection The QuickBooks Online Connection for the target company.
OperationId String The operation selected by the template. Keep it consistent with the Method and entity.
Options Object Set Query to a QuickBooks Query Language statement. Query is required. Do not include STARTPOSITION or MAXRESULTS; the Node supplies pagination.
Return Type Description
Response Array Provider-shaped query records. An empty result contains no rows.

The entity after FROM must match the selected entity template. Choose Custom Query when you need to choose the entity and fields yourself; add the expected Return Properties or use Infer Schema after a representative run. A SELECT COUNT(*) statement returns one row with a totalCount field. Use List when you need every record of an entity.

Download

Downloads an invoice as a PDF.

Parameter Type Description
Connection Connection The QuickBooks Online Connection for the target company.
OperationId String The Download Invoice PDF operation selected by the template.
Options Object Set Id to the identifier of the invoice.
Return Type Description
Content Stream The invoice PDF.

Create

Creates records from the input collection. The Node uses provider batches where the selected operation supports them.

Parameter Type Description
Connection Connection The QuickBooks Online Connection for the target company.
OperationId String The operation selected by the template. Keep it consistent with the Method and entity.
Items Array Provider-shaped records to create, using the selected template and required company-specific fields.
Return Type Description
Response Array One result for each input record, including the provider result and the echoed request for mutation correlation.

Update

Updates existing records. Select a full or sparse update template where available. A full update supplies the record required by the provider; a sparse update changes only the supplied fields.

Parameter Type Description
Connection Connection The QuickBooks Online Connection for the target company.
OperationId String The operation selected by the template. Keep it consistent with the Method and entity.
Items Array Records containing Id, the current SyncToken, and the fields to update.
Return Type Description
Response Array One result for each input record.

Get the record first when you need its current SyncToken. A stale token can cause a concurrency failure; retrieve the current record and reconcile the intended change before retrying.

Delete

Deletes records for entities with a supported delete operation.

Parameter Type Description
Connection Connection The QuickBooks Online Connection for the target company.
OperationId String The operation selected by the template. Keep it consistent with the Method and entity.
Items Array Identity records containing Id and the current SyncToken.
Return Type Description
Response Array One result for each requested deletion.

Action

Performs an operation selected by its action template: Send Invoice, Void Payment, or Void SalesReceipt.

Parameter Type Description
Connection Connection The QuickBooks Online Connection for the target company.
OperationId String The operation selected by the template. Keep it consistent with the Method and entity.
Items Array For Send Invoice, supply Id and EmailAddress for each invoice; both are required. For Void Payment or Void SalesReceipt, supply Id and the current SyncToken.
Return Type Description
Response Array One result for each input record, with the original request in its mutation metadata.

Usage Notes

  • When upgrading to version 0.0.0.21, reselect the template on every QuickBooks Step. Earlier template keys, such as create:Customer, are no longer accepted. If a mapping or Variable sets OperationId, replace it with the template's GUID key.
  • When upgrading to version 0.0.0.21, move Read Steps to Get. Entity Query templates no longer supply a default statement, so add a Query statement or move the Step to List.
  • When upgrading to version 0.0.0.21, map Id and EmailAddress for Send Invoice into Items instead of Options.
  • Since version 0.0.0.21, a rejected first batch, Send Invoice, void, or TaxService item fails the Step instead of returning failed rows. Several error messages changed, so check error handling that compares message text.
  • Saved Connection values are kept when upgrading. The unused App ID Property is removed.

Available entity templates

Choose a template for the operation you need. A missing operation in this table is not made available by changing OperationId manually. Custom Query provides a query with an editable entity and field selection.

Entity Operations
Account Get, List, Query, Create, Full Update
Bill Get, List, Query, Create, Full Update, Delete
BillPayment Get, List, Query, Create, Full Update, Delete
Budget List, Query
Class Get, List, Query, Create, Full Update
CompanyCurrency Get, List, Query, Create, Delete
CreditMemo Get, List, Query, Create, Full Update, Delete
Customer Get, List, Query, Create, Full Update, Sparse Update
Department Get, List, Query, Create, Full Update
Deposit Get, List, Query, Create, Full Update, Sparse Update, Delete
Employee Get, List, Query, Create, Full Update
Estimate Get, List, Query, Create, Full Update, Sparse Update, Delete
Invoice Get, List, Query, Create, Full Update, Sparse Update, Delete
Item Get, List, Query, Create, Full Update
Category Get, List, Query, Create
JournalEntry Get, List, Query, Create, Full Update, Sparse Update, Delete
Payment Get, List, Query, Create, Full Update, Delete
PaymentMethod Get, List, Query, Create, Full Update
Purchase Get, List, Query, Create, Full Update, Delete
PurchaseOrder Get, List, Query, Create, Full Update, Delete
RefundReceipt Get, List, Query, Create, Full Update, Sparse Update, Delete
SalesReceipt Get, List, Query, Create, Full Update, Sparse Update, Delete
TaxAgency Get, List, Query, Create
TaxCode Get, List, Query
TaxRate Get, List, Query
TaxService Create
Term Get, List, Query, Create, Full Update
TimeActivity Create
Transfer Get, List, Query, Create, Full Update, Sparse Update, Delete
Vendor Get, List, Query, Create, Full Update
VendorCredit Get, List, Query, Create, Full Update, Delete

Category uses the provider's Item records, and its Query template queries Item. TaxService creates a TaxCode through its specialized endpoint. Purchase templates use EntityRef for the payee. Templates are examples of the provider payload, not a guarantee that every field or entity is enabled for your company.

Streaming, failures, and correlation

The first query page, mutation batch, or single-request item is processed when the Step starts. Later work continues as downstream Steps consume Response, retaining lazy evaluation. Query pages contain up to 1,000 records; supported mutation batches contain up to 30 inputs. TaxService create, Send Invoice, and the void actions send one request per item.

Mutation responses include Flowgear.IsSuccess, Flowgear.Message, and Flowgear.Request. Check each record's result before recording a successful change, and use the echoed request to correlate source and target records. Get, List, and Query failures fail the operation. If QuickBooks rejects the first batch or single-request item, the Step fails. Later batches and items can contain both successes and failures. See Handle Partial Batch Failures.

If QuickBooks returns a server error, the request times out, or the connection drops, the affected items return a failure row and are not resent. Check those records in QuickBooks before retrying.

Do not retry an entire create batch solely because one result failed. Preserve successful correlations and retry only the records that require another attempt, after checking whether the provider already applied the intended change.

If QuickBooks refuses a token refresh, reconnect the Connection. The Node does not automatically retry requests that QuickBooks rate-limits.

Examples

To query active customers, choose the Query Customer template and set Options.Query to:

SELECT * FROM Customer WHERE Active = true

Consume the records from Response and use their Id values for later reads or updates. Leave pagination clauses out of the query; the Node retrieves subsequent pages.

Known Issues

  • The sandbox allows 40 invoice emails per day per company.

See also