QuickBooks
Create invoices, manage customers, and sync accounting data with QuickBooks Online.
On this page
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.
// 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);
});{
"name": "integrations",
"arguments": {
"project_id": "<project-id>",
"action": "call",
"piece": "quickbooks",
"piece_action": "create_invoice",
"input": {
"customerRef": "<customerRef>",
"lineItems": []
},
"env": "dev"
}
}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.
| Input | Type | Description |
|---|---|---|
customerRefrequired | id (picked from your account) | Customer |
lineItemsrequired | array | Line items for the invoice |
emailStatusoptional | one of "NotSet" | "NeedToSend" | Specify whether the invoice should be emailed after creation. |
billEmailoptional | text | Email address to send the invoice to. Required if Email Status is "Needs To Be Sent". Overrides customer default. |
dueDateoptional | date-time (ISO) | The date when the payment for the invoice is due. If not provided, default term from customer or company is used. |
docNumberoptional | text | Optional reference number for the invoice. If not provided, QuickBooks assigns the next sequential number. |
txnDateoptional | date-time (ISO) | The date entered on the transaction. Defaults to the current date if not specified. |
privateNoteoptional | long text | Note to self. Does not appear on the invoice sent to the customer. |
customerMemooptional | long text | Memo to be displayed on the invoice sent to the customer (appears on statement). |
create_expense
Create Expense. Creates an expense transaction (purchase) in QuickBooks.
| Input | Type | Description |
|---|---|---|
accountRefrequired | id (picked from your account) | The account from which the expense was paid. |
paymentTyperequired | one of "Cash" | "Check" | "CreditCard" | Payment Type |
entityRefoptional | id (picked from your account) | Optional - The vendor the expense was paid to. |
txnDateoptional | date-time (ISO) | The date the expense occurred. |
lineItemsrequired | array | Details of the expense (e.g., categories or items purchased). At least one line is required. |
privateNoteoptional | long text | Internal note about the expense. |
custom_api_call
Custom API Call. Make a custom API call to a specific endpoint
| Input | Type | Description |
|---|---|---|
urlrequired | object (depends on other props) | url |
methodrequired | one of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | Method |
headersrequired | object | Authorization headers are injected automatically from your connection. |
queryParamsrequired | object | Query Parameters |
body_typeoptional | one of "none" | "json" | "form_data" | "raw" | Body Type |
bodyoptional | object (depends on other props) | Body |
response_is_binaryoptional | boolean | Enable for files like PDFs, images, etc. |
failsafeoptional | boolean | No Error on Failure |
timeoutoptional | number | Timeout (in seconds) |
followRedirectsoptional | boolean | Follow redirects |
find_customer
Find Customer. Search for a customer by display name in QuickBooks.
| Input | Type | Description |
|---|---|---|
search_termrequired | text | The display name of the customer to search for. |
find_invoice
Find Invoice. Search for an invoice by its number in QuickBooks.
| Input | Type | Description |
|---|---|---|
invoice_numberrequired | text | The document number (DocNumber) of the invoice to search for. |
find_payment
Find Payment. Finds an existing payment in QuickBooks.
| Input | Type | Description |
|---|---|---|
customerIdrequired | text | The 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