QuickBooks

Create invoices, manage customers, and sync accounting data with QuickBooks Online.

Finance and paymentsOAuth6 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (6)
  4. create_invoice
  5. create_expense
  6. custom_api_call
  7. find_customer
  8. find_invoice
  9. find_payment
  10. Details

Connect

Auth type: OAuth (oauth2). The connection holds the provider's OAuth tokens. They are sealed on the server and only opened when an action runs.

Scopes requested: com.intuit.quickbooks.accounting

  • From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
  • Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
  • Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.

Call it from a workflow

step.ctx.integrations.invoke("quickbooks", action, input) resolves with the provider's answer and rejects when QuickBooks isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "quickbooks"} says whether yours can call it.

Workflow
// workflows/notify.ts: call QuickBooks when a booking is confirmed
import { on } from "@appbricx/workflows";

export const tellQuickbooks = on.transition("booking", "status", "confirmed", async (_event, step) => {
  // Recorded once: a retry doesn't send it twice. Rejects when QuickBooks isn't connected.
  const output = await step.run("QuickBooks", () =>
    step.ctx.integrations.invoke("quickbooks", "create_invoice", {
      "customerRef": "<customerRef>",
      "lineItems": []
    }),
  );
  step.ctx.log("QuickBooks answered", output);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "quickbooks",
    "piece_action": "create_invoice",
    "input": {
      "customerRef": "<customerRef>",
      "lineItems": []
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/quickbooks/create_invoice" \
  -H "Authorization: Bearer $APP_KEY" \
  -H "content-type: application/json" \
  -d '{"props":{"customerRef":"<customerRef>","lineItems":[]}}'

Actions

create_invoice

Create Invoice. Creates an invoice in QuickBooks.

InputTypeDescription
customerRefrequiredid (picked from your account)Customer
lineItemsrequiredarrayLine items for the invoice
emailStatusoptionalone of "NotSet" | "NeedToSend"Specify whether the invoice should be emailed after creation.
billEmailoptionaltextEmail address to send the invoice to. Required if Email Status is "Needs To Be Sent". Overrides customer default.
dueDateoptionaldate-time (ISO)The date when the payment for the invoice is due. If not provided, default term from customer or company is used.
docNumberoptionaltextOptional reference number for the invoice. If not provided, QuickBooks assigns the next sequential number.
txnDateoptionaldate-time (ISO)The date entered on the transaction. Defaults to the current date if not specified.
privateNoteoptionallong textNote to self. Does not appear on the invoice sent to the customer.
customerMemooptionallong textMemo to be displayed on the invoice sent to the customer (appears on statement).

create_expense

Create Expense. Creates an expense transaction (purchase) in QuickBooks.

InputTypeDescription
accountRefrequiredid (picked from your account)The account from which the expense was paid.
paymentTyperequiredone of "Cash" | "Check" | "CreditCard"Payment Type
entityRefoptionalid (picked from your account)Optional - The vendor the expense was paid to.
txnDateoptionaldate-time (ISO)The date the expense occurred.
lineItemsrequiredarrayDetails of the expense (e.g., categories or items purchased). At least one line is required.
privateNoteoptionallong textInternal note about the expense.

custom_api_call

Custom API Call. Make a custom API call to a specific endpoint

InputTypeDescription
urlrequiredobject (depends on other props)url
methodrequiredone of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD"Method
headersrequiredobjectAuthorization headers are injected automatically from your connection.
queryParamsrequiredobjectQuery Parameters
body_typeoptionalone of "none" | "json" | "form_data" | "raw"Body Type
bodyoptionalobject (depends on other props)Body
response_is_binaryoptionalbooleanEnable for files like PDFs, images, etc.
failsafeoptionalbooleanNo Error on Failure
timeoutoptionalnumberTimeout (in seconds)
followRedirectsoptionalbooleanFollow redirects

find_customer

Find Customer. Search for a customer by display name in QuickBooks.

InputTypeDescription
search_termrequiredtextThe display name of the customer to search for.

find_invoice

Find Invoice. Search for an invoice by its number in QuickBooks.

InputTypeDescription
invoice_numberrequiredtextThe document number (DocNumber) of the invoice to search for.

find_payment

Find Payment. Finds an existing payment in QuickBooks.

InputTypeDescription
customerIdrequiredtextThe ID of the customer to find payments for.

Details

Id
quickbooks
Category
Finance and payments
Tags
accounting, invoicing, bookkeeping, finance
Package
@activepieces/piece-quickbooks@0.1.4
Runs
Through the integration runner