# QuickBooks

QuickBooks is an online accounting software package. You can use a QuickBooks private app as a data source when landing or replicating data.

See the [Schema](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#Schema) section for a list of objects available for replication.

Currently, replicating data f rom QuickBooks desktop apps isn’t supported.

## Preparing for authentication

To access your data, you need to authenticate the connection with your account credentials.

Information noteMake sure that the account you use has read access to the tables you want to fetch.

To create an OAuth 2.0 app for QuickBooks:

1. Log into [Intuit Developer Portal](https://developer.intuit.com/app/developer/homepage).
2. From the dashboard, click + Create an App.
3. Under Platforms, choose QuickBooks Online.
4. Name your app and choose the accounting scopes: com.intuit.quickbooks.accounting.

To obtain your client ID and secret:

1. In your app settings, go to Keys & OAuth section.
2. Copy your client ID and secret.
3. Make sure Authorized Redirect URIs is set to https://connector.qlik.com/auth/oauth/v3.htm.

## Creating the connection

For more information, see [Connecting to SaaS applications](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Landing/connecting-web-applications.htm).

1. Click Authenticate when you have filled in the required connection settings.

   You may be asked to log in to the source application.

   A window is displayed with an authentication code.

2. Copy the code to the clipboard and return to the connection dialog.

3. Paste the code in Complete authentication with the code provided by the source and click Verify.

   Tip noteYou may need to scroll down to see this field.

   When status is Verified, the authentication is verified.

4. Provide a name for the connection in Connection name.

5. Select Open connection metadata to define metadata for the connection when it has been created.

Connection settings

| Setting | Description |
| --- | --- |
| Data gateway | Select a Data Movement gateway if required by your use case.<br><br>Information note<br><br>This field is not available with the Qlik Talend Cloud Starter subscription, as it does not support Data Movement gateway. If you have another subscription tier and do not want to use Data Movement gateway, select None.<br><br>For information on the benefits of Data Movement gateway and use cases that require it, see [Qlik Data Gateway - Data Movement](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Gateways/replication-gateway.htm). |
| Start Date | Enter the date, in the format `MM/DD/YYYY`, from which the data must be replicated from your source to your target. |
| Client ID | Client ID. |
| Client Secret | Client secret. |
| Realm ID | QuickBooks company ID.<br><br>You can find it under your Account Settings &gt; Billing and Subscription of your QuickBooks account. |
| Connect to a sandbox environment | Select this option if you are connecting to a sandbox environment. |

## Schema

Information note

Schemas and naming conventions can change from version to version. It is recommended to verify your version before continuing.

Depending on your destination, table and column names may not appear as they are outlined below.

### accounts

The `accounts` table contains info about the various account types in you QuickBooks instance. This table includes all account types: asset, liability, revenue (income), expenses, and equity.

**Note**: Both active and inactive accounts are included in the data for this table.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/most-commonly-used/account)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/most-commonly-used/account#query-an-account "Opens in new tab: QuickBooks API method") |

accounts table foreign keys

| Join accounts with | on |
| --- | --- |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>accounts.Id = bill_payments.APAccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>accounts.Id = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>accounts.Id = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>accounts.CurrencyRef.value = bill_payments.CurrencyRef.value<br>``` |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>accounts.Id = bills.APAccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = bills.APAccountRef.value<br>```<br><br>```<br>accounts.Id = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>accounts.CurrencyRef.value = bills.CurrencyRef.value<br>``` |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>accounts.Id = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = budgets.BudgetDetail.AccountRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>accounts.Id = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>accounts.Id = deposits.DepositToAccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>accounts.Id = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>accounts.CurrencyRef.value = deposits.CurrencyRef.value<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>accounts.Id = invoices.DepositToAccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>accounts.Id = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>accounts.CurrencyRef.value = invoices.CurrencyRef.value<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>accounts.Id = items.AssetAccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>accounts.Id = items.ExpenseAccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>accounts.Id = items.IncomeAccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = items.IncomeAccountRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>accounts.Id = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>accounts.CurrencyRef.value = journal_entries.CurrencyRef.value<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>accounts.Id = payments.DepositToAccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>accounts.CurrencyRef.value = payments.CurrencyRef.value<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>accounts.Id = purchase_orders.APAccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>accounts.CurrencyRef.value = purchase_orders.CurrencyRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>accounts.Id = purchases.AccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = purchases.AccountRef.value<br>```<br><br>```<br>accounts.Id = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>accounts.CurrencyRef.value = purchases.CurrencyRef.value<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>accounts.Id = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>accounts.CurrencyRef.value = refund_receipts.CurrencyRef.value<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>accounts.Id = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>accounts.Id = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>accounts.CurrencyRef.value = sales_receipts.CurrencyRef.value<br>``` |
| [transfers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#transfers) | ```<br>accounts.Id = transfers.FromAccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>accounts.Id = transfers.ToAccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>accounts.CurrencyRef.value = transfers.CurrencyRef.value<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>accounts.Id = vendor_credits.APAccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>accounts.Id = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>accounts.ParentRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>accounts.CurrencyRef.value = vendor_credits.CurrencyRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>accounts.CurrencyRef.value = credit_memos.CurrencyRef.value<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>accounts.CurrencyRef.value = customers.CurrencyRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>accounts.CurrencyRef.value = estimates.CurrencyRef.value<br>``` |
| [vendors](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendors) | ```<br>accounts.CurrencyRef.value = vendors.CurrencyRef.value<br>``` |

accounts table schema

| **AccountAlias**<br><br><br>STRING |
| --- |
| **AccountSubType**<br><br><br>STRING |
| **AccountType**<br><br><br>STRING |
| **AcctNum**<br><br><br>STRING |
| **Active**<br><br><br>BOOLEAN |
| **Classification**<br><br><br>STRING |
| **CurrencyRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **CurrentBalance**<br><br><br>NUMBER |
| **CurrentBalanceWithSubAccounts**<br><br><br>NUMBER |
| **Description**<br><br><br>STRING |
| **FullyQualifiedName**<br><br><br>STRING |
| **Id**<br><br><br>STRING |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **Name**<br><br><br>STRING |
| **ParentRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **SubAccount**<br><br><br>BOOLEAN |
| **SyncToken**<br><br><br>STRING |
| **TaxCodeRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **TxnLocationType**<br><br><br>STRING |
| **domain**<br><br><br>STRING |

### bill\_payments

The `bill_payments` table contains info about payments made on bills received from vendors for goods or services.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/billpayment)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/billpayment#query-a-billpayment "Opens in new tab: QuickBooks API method") |

bill\_payments table foreign keys

| Join bill\_payments with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#accounts) | ```<br>bill_payments.APAccountRef.value = accounts.Id<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = accounts.Id<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = accounts.Id<br>```<br><br>```<br>bill_payments.APAccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>bill_payments.CurrencyRef.value = accounts.CurrencyRef.value<br>``` |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>bill_payments.APAccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>bill_payments.APAccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>bill_payments.Id = bills.LinkedTxn.TxnId<br>```<br><br>```<br>bill_payments.Line.LinkedTxn.TxnId = bills.Id<br>```<br><br>```<br>bill_payments.CurrencyRef.value = bills.CurrencyRef.value<br>```<br><br>```<br>bill_payments.DepartmentRef.value = bills.DepartmentRef.value<br>```<br><br>```<br>bill_payments.VendorRef.value = bills.VendorRef.value<br>``` |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>bill_payments.APAccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>bill_payments.DepartmentRef.value = budgets.BudgetDetail.DepartmentRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>bill_payments.APAccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>bill_payments.APAccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>bill_payments.APAccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>bill_payments.CurrencyRef.value = deposits.CurrencyRef.value<br>```<br><br>```<br>bill_payments.DepartmentRef.value = deposits.DepartmentRef.value<br>```<br><br>```<br>bill_payments.Line.LinkedTxn.TxnId = deposits.Line.LinkedTxn.TxnId<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>bill_payments.APAccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>bill_payments.APAccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>bill_payments.CurrencyRef.value = invoices.CurrencyRef.value<br>```<br><br>```<br>bill_payments.DepartmentRef.value = invoices.DepartmentRef.value<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>bill_payments.APAccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>bill_payments.APAccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>bill_payments.APAccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>bill_payments.VendorRef.value = items.PrefVendorRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>bill_payments.APAccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>bill_payments.CurrencyRef.value = journal_entries.CurrencyRef.value<br>```<br><br>```<br>bill_payments.Line.LinkedTxn.TxnId = journal_entries.Id<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>bill_payments.APAccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>bill_payments.CurrencyRef.value = payments.CurrencyRef.value<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>bill_payments.APAccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>bill_payments.Line.LinkedTxn.TxnId = purchase_orders.LinkedTxn.TxnId<br>```<br><br>```<br>bill_payments.CurrencyRef.value = purchase_orders.CurrencyRef.value<br>```<br><br>```<br>bill_payments.DepartmentRef.value = purchase_orders.DepartmentRef.value<br>```<br><br>```<br>bill_payments.Id = purchase_orders.Id<br>```<br><br>```<br>bill_payments.VendorRef.value = purchase_orders.VendorRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>bill_payments.APAccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>bill_payments.APAccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>bill_payments.CurrencyRef.value = purchases.CurrencyRef.value<br>```<br><br>```<br>bill_payments.DepartmentRef.value = purchases.DepartmentRef.value<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>bill_payments.APAccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>bill_payments.CurrencyRef.value = refund_receipts.CurrencyRef.value<br>```<br><br>```<br>bill_payments.DepartmentRef.value = refund_receipts.DepartmentRef.value<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>bill_payments.APAccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>bill_payments.APAccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>bill_payments.CurrencyRef.value = sales_receipts.CurrencyRef.value<br>```<br><br>```<br>bill_payments.DepartmentRef.value = sales_receipts.DepartmentRef.value<br>``` |
| [transfers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#transfers) | ```<br>bill_payments.APAccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>bill_payments.APAccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>bill_payments.CurrencyRef.value = transfers.CurrencyRef.value<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>bill_payments.APAccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>bill_payments.APAccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>bill_payments.CheckPayment.BankAccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>bill_payments.CreditCardPayment.CCAccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>bill_payments.CurrencyRef.value = vendor_credits.CurrencyRef.value<br>```<br><br>```<br>bill_payments.DepartmentRef.value = vendor_credits.DepartmentRef.value<br>```<br><br>```<br>bill_payments.Line.LinkedTxn.TxnId = vendor_credits.Id<br>```<br><br>```<br>bill_payments.VendorRef.value = vendor_credits.VendorRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>bill_payments.CurrencyRef.value = credit_memos.CurrencyRef.value<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>bill_payments.CurrencyRef.value = customers.CurrencyRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>bill_payments.CurrencyRef.value = estimates.CurrencyRef.value<br>```<br><br>```<br>bill_payments.DepartmentRef.value = estimates.DepartmentRef.value<br>``` |
| [vendors](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendors) | ```<br>bill_payments.CurrencyRef.value = vendors.CurrencyRef.value<br>```<br><br>```<br>bill_payments.VendorRef.value = vendors.Id<br>``` |
| [departments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#departments) | ```<br>bill_payments.DepartmentRef.value = departments.ParentRef.value<br>```<br><br>```<br>bill_payments.DepartmentRef.value = departments.Id<br>``` |
| [time_activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#time-activities) | ```<br>bill_payments.DepartmentRef.value = time_activities.DepartmentRef.value<br>```<br><br>```<br>bill_payments.VendorRef.value = time_activities.VendorRef.value<br>``` |

bill\_payments table schema

| **APAccountRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| --- |
| **CheckPayment**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>BankAccountRef: OBJECT, which is also a nested data structure.                <ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>PrintStatus: STRING</li></ul> |
| **CreditCardPayment**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CCAccountRef: OBJECT, which is also a nested data structure.                <ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul> |
| **CurrencyRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DepartmentRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DocNumber**<br><br><br>STRING |
| **ExchangeRate**<br><br><br>NUMBER |
| **Id**<br><br><br>STRING |
| **Line**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>Amount: NUMBER</li><li>LinkedTxn: ARRAY, which is also a nested data structure.            <ul><li>TxnId: STRING</li><li>TxnLineId: STRING</li><li>TxnType: STRING</li></ul></li></ul> |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **PayType**<br><br><br>STRING |
| **PrivateNote**<br><br><br>STRING |
| **ProcessBillPayment**<br><br><br>BOOLEAN |
| **SyncToken**<br><br><br>STRING |
| **TotalAmt**<br><br><br>NUMBER |
| **TransactionLocationType**<br><br><br>STRING |
| **TxnDate**<br><br><br>DATE-TIME |
| **VendorRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **domain**<br><br><br>STRING |

### bills

The `bills` table contains info about the bills, or requests for payment from third parties, in your QuickBooks instance.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/bill)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/bill#query-a-bill "Opens in new tab: QuickBooks API method") |

bills table foreign keys

| Join bills with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#accounts) | ```<br>bills.APAccountRef.value = accounts.Id<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = accounts.Id<br>```<br><br>```<br>bills.APAccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>bills.CurrencyRef.value = accounts.CurrencyRef.value<br>``` |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>bills.APAccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>bills.APAccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>bills.APAccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>bills.LinkedTxn.TxnId = bill_payments.Id<br>```<br><br>```<br>bills.Id = bill_payments.Line.LinkedTxn.TxnId<br>```<br><br>```<br>bills.CurrencyRef.value = bill_payments.CurrencyRef.value<br>```<br><br>```<br>bills.DepartmentRef.value = bill_payments.DepartmentRef.value<br>```<br><br>```<br>bills.VendorRef.value = bill_payments.VendorRef.value<br>``` |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>bills.APAccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value = budgets.BudgetDetail.CustomerRef.value<br>```<br><br>```<br>bills.DepartmentRef.value = budgets.BudgetDetail.DepartmentRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>bills.APAccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>bills.APAccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>bills.APAccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>bills.CurrencyRef.value = deposits.CurrencyRef.value<br>```<br><br>```<br>bills.DepartmentRef.value = deposits.DepartmentRef.value<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>bills.APAccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>bills.APAccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>bills.CurrencyRef.value = invoices.CurrencyRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value = invoices.CustomerRef.value<br>```<br><br>```<br>bills.DepartmentRef.value = invoices.DepartmentRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.ItemRef.value = invoices.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = invoices.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = invoices.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = invoices.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = invoices.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>bills.SalesTermRef.value = invoices.SalesTermRef.value<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>bills.APAccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>bills.APAccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>bills.APAccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.ItemRef.value = items.Id<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.ItemRef.value = items.ParentRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = items.PurchaseTaxCodeRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = items.PurchaseTaxCodeRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = items.SalesTaxCodeRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = items.SalesTaxCodeRef.value<br>```<br><br>```<br>bills.VendorRef.value = items.PrefVendorRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>bills.APAccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>bills.CurrencyRef.value = journal_entries.CurrencyRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = journal_entries.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = journal_entries.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>bills.Id = journal_entries.Id<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>bills.APAccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>bills.CurrencyRef.value = payments.CurrencyRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value = payments.CustomerRef.value<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>bills.APAccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>bills.Id = purchase_orders.LinkedTxn.TxnId<br>```<br><br>```<br>bills.CurrencyRef.value = purchase_orders.CurrencyRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>bills.DepartmentRef.value = purchase_orders.DepartmentRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.ItemRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>bills.LinkedTxn.TxnId = purchase_orders.Id<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>bills.SalesTermRef.value = purchase_orders.SalesTermRef.value<br>```<br><br>```<br>bills.VendorRef.value = purchase_orders.VendorRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>bills.APAccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>bills.APAccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>bills.CurrencyRef.value = purchases.CurrencyRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value = purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>bills.DepartmentRef.value = purchases.DepartmentRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.ItemRef.value = purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>bills.APAccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>bills.CurrencyRef.value = refund_receipts.CurrencyRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value = refund_receipts.CustomerRef.value<br>```<br><br>```<br>bills.DepartmentRef.value = refund_receipts.DepartmentRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.ItemRef.value = refund_receipts.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>bills.APAccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>bills.APAccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>bills.CurrencyRef.value = sales_receipts.CurrencyRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value = sales_receipts.CustomerRef.value<br>```<br><br>```<br>bills.DepartmentRef.value = sales_receipts.DepartmentRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.ItemRef.value = sales_receipts.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [transfers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#transfers) | ```<br>bills.APAccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>bills.APAccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>bills.CurrencyRef.value = transfers.CurrencyRef.value<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>bills.APAccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>bills.APAccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.AccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>bills.CurrencyRef.value = vendor_credits.CurrencyRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>bills.DepartmentRef.value = vendor_credits.DepartmentRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>bills.Id = vendor_credits.Id<br>```<br><br>```<br>bills.VendorRef.value = vendor_credits.VendorRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>bills.CurrencyRef.value = credit_memos.CurrencyRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value = credit_memos.CustomerRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.ItemRef.value = credit_memos.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>bills.SalesTermRef.value = credit_memos.SalesTermRef.value<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>bills.CurrencyRef.value = customers.CurrencyRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value = customers.Id<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = customers.DefaultTaxCodeRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = customers.DefaultTaxCodeRef.value<br>```<br><br>```<br>bills.SalesTermRef.value = customers.SalesTermRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>bills.CurrencyRef.value = estimates.CurrencyRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value = estimates.CustomerRef.value<br>```<br><br>```<br>bills.DepartmentRef.value = estimates.DepartmentRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.ItemRef.value = estimates.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = estimates.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = estimates.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = estimates.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = estimates.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>bills.SalesTermRef.value = estimates.SalesTermRef.value<br>``` |
| [vendors](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendors) | ```<br>bills.CurrencyRef.value = vendors.CurrencyRef.value<br>```<br><br>```<br>bills.VendorRef.value = vendors.Id<br>``` |
| [departments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#departments) | ```<br>bills.DepartmentRef.value = departments.ParentRef.value<br>```<br><br>```<br>bills.DepartmentRef.value = departments.Id<br>``` |
| [time_activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#time-activities) | ```<br>bills.DepartmentRef.value = time_activities.DepartmentRef.value<br>```<br><br>```<br>bills.Line.ItemBasedExpenseLineDetail.ItemRef.value = time_activities.ItemRef.value<br>```<br><br>```<br>bills.VendorRef.value = time_activities.VendorRef.value<br>``` |
| [terms](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#terms) | ```<br>bills.SalesTermRef.value = terms.Id<br>``` |

bills table schema

| **APAccountRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| --- |
| **Balance**<br><br><br>NUMBER |
| **CurrencyRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DepartmentRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DocNumber**<br><br><br>STRING |
| **DueDate**<br><br><br>DATE-TIME |
| **ExchangeRate**<br><br><br>NUMBER |
| **GlobalTaxCalculation**<br><br><br>STRING |
| **HomeBalance**<br><br><br>NUMBER |
| **Id**<br><br><br>STRING |
| **IncludeInAnnualTPAR**<br><br><br>BOOLEAN |
| **Line**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>AccountBasedExpenseLineDetail: OBJECT, which is also a nested data structure.            <ul><li>AccountRef: OBJECT, which is also a nested data structure.                    <ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>BillableStatus: STRING</li><li>ClassRef: OBJECT, which is also a nested data structure.                    <ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>CustomerRef: OBJECT, which is also a nested data structure.                    <ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>MarkupInfo: OBJECT, which is also a nested data structure.                    <ul><li>MarkUpIncomeAccountRef: OBJECT, which is also a nested data structure.                            <ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Percent: NUMBER</li><li>PriceLevelRef: OBJECT, which is also a nested data structure.                                <ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>TaxAmount: NUMBER</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.                                <ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxInclusiveAmt: NUMBER</li></ul></li><li>Amount: NUMBER</li><li>Description: STRING</li><li>DetailType: STRING</li><li>Id: STRING</li><li>ItemBasedExpenseLineDetail: OBJECT, which is also a nested data structure.            <ul><li>BillableStatus: STRING</li><li>ClassRef: OBJECT, which is also a nested data structure.                                <ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>CustomerRef: OBJECT, which is also a nested data structure.                    <ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>ItemRef: OBJECT, which is also a nested data structure.                    <ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>MarkupInfo: OBJECT, which is also a nested data structure.                    <ul><li>MarkUpIncomeAccountRef: OBJECT, which is also a nested data structure.                            <ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Percent: NUMBER</li><li>PriceLevelRef: OBJECT, which is also a nested data structure.                            <ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>PriceLevelRef: OBJECT, which is also a nested data structure.                        <ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Qty: INTEGER</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxInclusiveAmt: NUMBER</li><li>UnitPrice: NUMBER</li></ul></li><li>LineNum: INTEGER</li><li>LinkedTxn: ARRAY, which is also a nested data structure.            <ul><li>TxnId: STRING</li><li>TxnLineId: STRING</li><li>TxnType: STRING</li></ul></li></ul> |
| **LinkedTxn**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>TxnId: STRING</li><li>TxnLineId: STRING</li><li>TxnType: STRING</li></ul> |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **PrivateNote**<br><br><br>STRING |
| **RecurDataRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **SalesTermRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **SyncToken**<br><br><br>STRING |
| **TotalAmt**<br><br><br>NUMBER |
| **TransactionLocationType**<br><br><br>STRING |
| **TxnDate**<br><br><br>DATE-TIME |
| **TxnTaxDetail**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>TaxLine: ARRAY, which is also a nested data structure.            <ul><li>Amount: NUMBER</li><li>DetailType: STRING</li><li>TaxLineDetail: OBJECT, which is also a nested data structure.                    <ul><li>NetAmountTaxable: NUMBER</li><li>OverrideDeltaAmount: NUMBER</li><li>PercentBased: BOOLEAN</li><li>TaxInclusiveAmount: NUMBER</li><li>TaxPercent: NUMBER</li><li>TaxRateRef: OBJECT, which is also a nested data structure.                            <ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li></ul></li><li>TotalTax: NUMBER</li><li>TxnTaxCodeRef: OBJECT, which is also a nested data structure.            <ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul> |
| **VendorRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **domain**<br><br><br>STRING |

### budgets

The `budgets` table contains info about the current state of budgets in your QuickBooks instance. **Note**: Both active and inactive budgets are included in the data for this table.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/budget)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/budget#query-the-budget "Opens in new tab: QuickBooks API method") |

budgets table foreign keys

| Join budgets with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#accounts) | ```<br>budgets.BudgetDetail.AccountRef.value = accounts.Id<br>```<br><br>```<br>budgets.BudgetDetail.AccountRef.value = accounts.ParentRef.value<br>``` |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>budgets.BudgetDetail.AccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.AccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.AccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.DepartmentRef.value = bill_payments.DepartmentRef.value<br>``` |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>budgets.BudgetDetail.AccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.AccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.CustomerRef.value = bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>budgets.BudgetDetail.DepartmentRef.value = bills.DepartmentRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>budgets.BudgetDetail.AccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.AccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.AccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.DepartmentRef.value = deposits.DepartmentRef.value<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>budgets.BudgetDetail.AccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.AccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.ClassRef.value = invoices.ClassRef.value<br>```<br><br>```<br>budgets.BudgetDetail.ClassRef.value = invoices.Line.SalesItemLineDetail.ClassRef.value<br>```<br><br>```<br>budgets.BudgetDetail.CustomerRef.value = invoices.CustomerRef.value<br>```<br><br>```<br>budgets.BudgetDetail.DepartmentRef.value = invoices.DepartmentRef.value<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>budgets.BudgetDetail.AccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.AccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.AccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.ClassRef.value = items.ClassRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>budgets.BudgetDetail.AccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>budgets.BudgetDetail.AccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.CustomerRef.value = payments.CustomerRef.value<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>budgets.BudgetDetail.AccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.ClassRef.value = purchase_orders.ClassRef.value<br>```<br><br>```<br>budgets.BudgetDetail.ClassRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>budgets.BudgetDetail.CustomerRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>budgets.BudgetDetail.DepartmentRef.value = purchase_orders.DepartmentRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>budgets.BudgetDetail.AccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.AccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.ClassRef.value = purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>budgets.BudgetDetail.CustomerRef.value = purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>budgets.BudgetDetail.DepartmentRef.value = purchases.DepartmentRef.value<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>budgets.BudgetDetail.AccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.ClassRef.value = refund_receipts.ClassRef.value<br>```<br><br>```<br>budgets.BudgetDetail.CustomerRef.value = refund_receipts.CustomerRef.value<br>```<br><br>```<br>budgets.BudgetDetail.DepartmentRef.value = refund_receipts.DepartmentRef.value<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>budgets.BudgetDetail.AccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.AccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.ClassRef.value = sales_receipts.ClassRef.value<br>```<br><br>```<br>budgets.BudgetDetail.CustomerRef.value = sales_receipts.CustomerRef.value<br>```<br><br>```<br>budgets.BudgetDetail.DepartmentRef.value = sales_receipts.DepartmentRef.value<br>``` |
| [transfers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#transfers) | ```<br>budgets.BudgetDetail.AccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.AccountRef.value = transfers.ToAccountRef.value<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>budgets.BudgetDetail.AccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.AccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>budgets.BudgetDetail.ClassRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>budgets.BudgetDetail.CustomerRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>budgets.BudgetDetail.DepartmentRef.value = vendor_credits.DepartmentRef.value<br>``` |
| [classes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#classes) | ```<br>budgets.BudgetDetail.ClassRef.value = classes.Id<br>```<br><br>```<br>budgets.BudgetDetail.ClassRef.value = classes.ParentRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>budgets.BudgetDetail.ClassRef.value = credit_memos.ClassRef.value<br>```<br><br>```<br>budgets.BudgetDetail.CustomerRef.value = credit_memos.CustomerRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>budgets.BudgetDetail.ClassRef.value = estimates.ClassRef.value<br>```<br><br>```<br>budgets.BudgetDetail.CustomerRef.value = estimates.CustomerRef.value<br>```<br><br>```<br>budgets.BudgetDetail.DepartmentRef.value = estimates.DepartmentRef.value<br>``` |
| [time_activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#time-activities) | ```<br>budgets.BudgetDetail.ClassRef.value = time_activities.ClassRef.value<br>```<br><br>```<br>budgets.BudgetDetail.DepartmentRef.value = time_activities.DepartmentRef.value<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>budgets.BudgetDetail.CustomerRef.value = customers.Id<br>``` |
| [departments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#departments) | ```<br>budgets.BudgetDetail.DepartmentRef.value = departments.ParentRef.value<br>```<br><br>```<br>budgets.BudgetDetail.DepartmentRef.value = departments.Id<br>``` |

budgets table schema

| **Active**<br><br><br>BOOLEAN |
| --- |
| **BudgetDetail**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>AccountRef: OBJECT, which is also a nested data structure.            <ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Amount: NUMBER</li><li>BudgetDate: DATE-TIME</li><li>ClassRef: OBJECT, which is also a nested data structure.            <ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>CustomerRef: OBJECT, which is also a nested data structure.            <ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DepartmentRef: OBJECT, which is also a nested data structure.            <ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul> |
| **BudgetEntryType**<br><br><br>STRING |
| **BudgetType**<br><br><br>STRING |
| **EndDate**<br><br><br>DATE-TIME |
| **Id**<br><br><br>STRING |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **Name**<br><br><br>STRING |
| **StartDate**<br><br><br>DATE-TIME |
| **SyncToken**<br><br><br>STRING |
| **domain**<br><br><br>STRING |

### classes

The `classes` table contains info about the classes set up in your QuickBooks instance. **Note**: Both active and inactive classes are included in the data for this table.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/class)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/class#query-a-class "Opens in new tab: QuickBooks API method") |

classes table foreign keys

| Join classes with | on |
| --- | --- |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>classes.Id = budgets.BudgetDetail.ClassRef.value<br>```<br><br>```<br>classes.ParentRef.value = budgets.BudgetDetail.ClassRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>classes.Id = credit_memos.ClassRef.value<br>```<br><br>```<br>classes.ParentRef.value = credit_memos.ClassRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>classes.Id = estimates.ClassRef.value<br>```<br><br>```<br>classes.ParentRef.value = estimates.ClassRef.value<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>classes.Id = invoices.ClassRef.value<br>```<br><br>```<br>classes.ParentRef.value = invoices.ClassRef.value<br>```<br><br>```<br>classes.Id = invoices.Line.SalesItemLineDetail.ClassRef.value<br>```<br><br>```<br>classes.ParentRef.value = invoices.Line.SalesItemLineDetail.ClassRef.value<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>classes.Id = items.ClassRef.value<br>```<br><br>```<br>classes.ParentRef.value = items.ClassRef.value<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>classes.Id = purchase_orders.ClassRef.value<br>```<br><br>```<br>classes.ParentRef.value = purchase_orders.ClassRef.value<br>```<br><br>```<br>classes.Id = purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>classes.ParentRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>classes.Id = purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>classes.ParentRef.value = purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>classes.Id = refund_receipts.ClassRef.value<br>```<br><br>```<br>classes.ParentRef.value = refund_receipts.ClassRef.value<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>classes.Id = sales_receipts.ClassRef.value<br>```<br><br>```<br>classes.ParentRef.value = sales_receipts.ClassRef.value<br>``` |
| [time_activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#time-activities) | ```<br>classes.Id = time_activities.ClassRef.value<br>```<br><br>```<br>classes.ParentRef.value = time_activities.ClassRef.value<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>classes.Id = vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>classes.ParentRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>``` |

classes table schema

| **Active**<br><br><br>BOOLEAN |
| --- |
| **FullyQualifiedName**<br><br><br>STRING |
| **Id**<br><br><br>STRING |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **Name**<br><br><br>STRING |
| **ParentRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **SubClass**<br><br><br>BOOLEAN |
| **SyncToken**<br><br><br>STRING |
| **domain**<br><br><br>STRING |

### credit\_memos

The `credit_memos` table contains info about the credit memos in your QuickBooks instance. A credit memo is a transaction representing a refund or credit of payment for goods or services that have been sold.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/creditmemo)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/creditmemo#query-a-credit-memo "Opens in new tab: QuickBooks API method") |

credit\_memos table foreign keys

| Join credit\_memos with | on |
| --- | --- |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>credit_memos.ClassRef.value = budgets.BudgetDetail.ClassRef.value<br>```<br><br>```<br>credit_memos.CustomerRef.value = budgets.BudgetDetail.CustomerRef.value<br>``` |
| [classes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#classes) | ```<br>credit_memos.ClassRef.value = classes.Id<br>```<br><br>```<br>credit_memos.ClassRef.value = classes.ParentRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>credit_memos.ClassRef.value = estimates.ClassRef.value<br>```<br><br>```<br>credit_memos.CurrencyRef.value = estimates.CurrencyRef.value<br>```<br><br>```<br>credit_memos.CustomerRef.value = estimates.CustomerRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.ItemRef.value = estimates.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value = estimates.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value = estimates.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>credit_memos.SalesTermRef.value = estimates.SalesTermRef.value<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>credit_memos.ClassRef.value = invoices.ClassRef.value<br>```<br><br>```<br>credit_memos.ClassRef.value = invoices.Line.SalesItemLineDetail.ClassRef.value<br>```<br><br>```<br>credit_memos.CurrencyRef.value = invoices.CurrencyRef.value<br>```<br><br>```<br>credit_memos.CustomerRef.value = invoices.CustomerRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.ItemRef.value = invoices.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value = invoices.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value = invoices.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>credit_memos.SalesTermRef.value = invoices.SalesTermRef.value<br>```<br><br>```<br>credit_memos.Id = invoices.Id<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>credit_memos.ClassRef.value = items.ClassRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.ItemRef.value = items.Id<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.ItemRef.value = items.ParentRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value = items.PurchaseTaxCodeRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value = items.SalesTaxCodeRef.value<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>credit_memos.ClassRef.value = purchase_orders.ClassRef.value<br>```<br><br>```<br>credit_memos.ClassRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>credit_memos.CurrencyRef.value = purchase_orders.CurrencyRef.value<br>```<br><br>```<br>credit_memos.CustomerRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.ItemRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>credit_memos.SalesTermRef.value = purchase_orders.SalesTermRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>credit_memos.ClassRef.value = purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>credit_memos.CurrencyRef.value = purchases.CurrencyRef.value<br>```<br><br>```<br>credit_memos.CustomerRef.value = purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.ItemRef.value = purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value = purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value = purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>credit_memos.Id = purchases.Id<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>credit_memos.ClassRef.value = refund_receipts.ClassRef.value<br>```<br><br>```<br>credit_memos.CurrencyRef.value = refund_receipts.CurrencyRef.value<br>```<br><br>```<br>credit_memos.CustomerRef.value = refund_receipts.CustomerRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.ItemRef.value = refund_receipts.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value = refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>credit_memos.ClassRef.value = sales_receipts.ClassRef.value<br>```<br><br>```<br>credit_memos.CurrencyRef.value = sales_receipts.CurrencyRef.value<br>```<br><br>```<br>credit_memos.CustomerRef.value = sales_receipts.CustomerRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.ItemRef.value = sales_receipts.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value = sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [time_activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#time-activities) | ```<br>credit_memos.ClassRef.value = time_activities.ClassRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.ItemRef.value = time_activities.ItemRef.value<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>credit_memos.ClassRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>credit_memos.CurrencyRef.value = vendor_credits.CurrencyRef.value<br>```<br><br>```<br>credit_memos.CustomerRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>credit_memos.Id = payments.Line.LinkedTxn.TxnId<br>```<br><br>```<br>credit_memos.CurrencyRef.value = payments.CurrencyRef.value<br>```<br><br>```<br>credit_memos.CustomerRef.value = payments.CustomerRef.value<br>``` |
| [accounts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#accounts) | ```<br>credit_memos.CurrencyRef.value = accounts.CurrencyRef.value<br>``` |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>credit_memos.CurrencyRef.value = bill_payments.CurrencyRef.value<br>``` |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>credit_memos.CurrencyRef.value = bills.CurrencyRef.value<br>```<br><br>```<br>credit_memos.CustomerRef.value = bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.ItemRef.value = bills.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value = bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value = bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>credit_memos.SalesTermRef.value = bills.SalesTermRef.value<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>credit_memos.CurrencyRef.value = customers.CurrencyRef.value<br>```<br><br>```<br>credit_memos.CustomerRef.value = customers.Id<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value = customers.DefaultTaxCodeRef.value<br>```<br><br>```<br>credit_memos.SalesTermRef.value = customers.SalesTermRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>credit_memos.CurrencyRef.value = deposits.CurrencyRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>credit_memos.CurrencyRef.value = journal_entries.CurrencyRef.value<br>```<br><br>```<br>credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value = journal_entries.TxnTaxDetail.TxnTaxCodeRef.value<br>``` |
| [transfers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#transfers) | ```<br>credit_memos.CurrencyRef.value = transfers.CurrencyRef.value<br>``` |
| [vendors](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendors) | ```<br>credit_memos.CurrencyRef.value = vendors.CurrencyRef.value<br>``` |
| [terms](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#terms) | ```<br>credit_memos.SalesTermRef.value = terms.Id<br>``` |

credit\_memos table schema

| **ApplyTaxAfterDiscount**<br><br><br>BOOLEAN |
| --- |
| **Balance**<br><br><br>NUMBER |
| **BillAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **BillEmail**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>Address: STRING</li></ul> |
| **ClassRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **CurrencyRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **CustomField**<br><br><br>ARRAY |
| **CustomerMemo**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>value: STRING</li></ul> |
| **CustomerRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DepartmentRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DocNumber**<br><br><br>STRING |
| **EmailStatus**<br><br><br>STRING |
| **ExchangeRate**<br><br><br>NUMBER |
| **GlobalTaxCalculation**<br><br><br>STRING |
| **HomeBalance**<br><br><br>NUMBER |
| **HomeTotalAmt**<br><br><br>NUMBER |
| **Id**<br><br><br>STRING |
| **InvoiceRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **Line**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>Amount: NUMBER</li><li>Description: STRING</li><li>DescriptionLineDetail: OBJECT, which is also a nested data structure.            <ul><li>ServiceDate: DATE-TIME</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.                    <ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>DetailType: STRING</li><li>DiscountLineDetail: OBJECT, which is also a nested data structure.            <ul><li>ClassRef: OBJECT, which is also a nested data structure.                    <ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountAccountRef: OBJECT, which is also a nested data structure.                    <ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountPercent: NUMBER</li><li>PercentBased: BOOLEAN</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.                    <ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>GroupLineDetail: OBJECT, which is also a nested data structure.            <ul><li>GroupItemRef: OBJECT, which is also a nested data structure.                    <ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Line: ARRAY, which is also a nested data structure.                    <ul><li>Amount: NUMBER</li><li>Description: STRING</li><li>DetailType: STRING</li><li>Id: STRING</li><li>LineNum: NUMBER</li><li>SalesItemLineDetail: OBJECT, which is also a nested data structure.                            <ul><li>ClassRef: OBJECT, which is also a nested data structure.<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountAmt: NUMBER</li><li>DiscountRate: NUMBER</li><li>ItemAccountRef: OBJECT, which is also a nested data structure.<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>ItemRef: OBJECT, which is also a nested data structure.<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>MarkupInfo: OBJECT, which is also a nested data structure.                                    <ul><li>MarkUpIncomeAccountRef: OBJECT, which is also a nested data structure.                                            <ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Percent: NUMBER</li><li>PriceLevelRef: OBJECT, which is also a nested data structure.                                            <ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>Qty: INTEGER</li><li>ServiceDate: DATE-TIME</li><li>TaxClassificationRef: OBJECT, which is also a nested data structure.<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxCodeRef: OBJECT, which is also a nested data structure.<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxInclusiveAmt: NUMBER</li><li>UnitPrice: NUMBER</li></ul></li></ul></li><li>Quantity: NUMBER</li></ul></li><li>Id: STRING</li><li>LineNum: INTEGER</li><li>SalesItemLineDetail: OBJECT, which is also a nested data structure.            <ul><li>ClassRef: OBJECT, which is also a nested data structure.<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountAmt: NUMBER</li><li>DiscountRate: NUMBER</li><li>ItemAccountRef: OBJECT, which is also a nested data structure.<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>ItemRef: OBJECT, which is also a nested data structure.<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>MarkupInfo: OBJECT, which is also a nested data structure.                                    <ul><li>MarkUpIncomeAccountRef: OBJECT, which is also a nested data structure.                                            <ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Percent: NUMBER</li><li>PriceLevelRef: OBJECT, which is also a nested data structure.                                            <ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>Qty: INTEGER</li><li>ServiceDate: DATE-TIME</li><li>TaxClassificationRef: OBJECT, which is also a nested data structure.<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxCodeRef: OBJECT, which is also a nested data structure.<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxInclusiveAmt: NUMBER</li><li>UnitPrice: NUMBER</li></ul></li><li>SubtotalLineDetail: OBJECT, which is also a nested data structure.            <ul><li>ItemRef: OBJECT, which is also a nested data structure.<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li></ul> |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **PaymentMethodRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **PrintStatus**<br><br><br>STRING |
| **PrivateNote**<br><br><br>STRING |
| **RecurDataRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **RemainingCredit**<br><br><br>INTEGER |
| **SalesTermRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **ShipAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **SyncToken**<br><br><br>STRING |
| **TaxExemptionRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **TotalAmt**<br><br><br>NUMBER |
| **TransactionLocationType**<br><br><br>STRING |
| **TxnDate**<br><br><br>DATE-TIME |
| **TxnTaxDetail**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>TaxLine: ARRAY, which is also a nested data structure.											<ul><li>Amount: NUMBER</li><li>DetailType: STRING</li><li>TaxLineDetail: OBJECT, which is also a nested data structure.													<ul><li>NetAmountTaxable: NUMBER</li><li>OverrideDeltaAmount: NUMBER</li><li>PercentBased: BOOLEAN</li><li>TaxInclusiveAmount: NUMBER</li><li>TaxPercent: NUMBER</li><li>TaxRateRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li></ul></li><li>TotalTax: NUMBER</li><li>TxnTaxCodeRef: OBJECT, which is also a nested data structure.											<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul> |
| **domain**<br><br><br>STRING |
| **patternProperties**<br><br><br>OBJECT<br><br>Click to expand patternProperties<br><br><table></table> |

### customer\_types

The `customer_types` table contains info about types of customers.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/changedatacapture#the-changedatacapture-object)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/customertype#query-a-customertype "Opens in new tab: QuickBooks API method") |

customer\_types table schema

| **Active**<br><br><br>BOOLEAN |
| --- |
| **Id**<br><br><br>STRING |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **Name**<br><br><br>STRING |
| **SyncToken**<br><br><br>STRING |
| **domain**<br><br><br>STRING |
| **sparse**<br><br><br>STRING |

### customers

The `customers` table contains info about the consumers of your business’s goods and services. **Note**: Both active and inactive customers are included in the data for this table.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/customer)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/customer#query-a-customer "Opens in new tab: QuickBooks API method") |

customers table foreign keys

| Join customers with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#accounts) | ```<br>customers.CurrencyRef.value = accounts.CurrencyRef.value<br>``` |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>customers.CurrencyRef.value = bill_payments.CurrencyRef.value<br>``` |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>customers.CurrencyRef.value = bills.CurrencyRef.value<br>```<br><br>```<br>customers.Id = bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>customers.DefaultTaxCodeRef.value = bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>customers.DefaultTaxCodeRef.value = bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>customers.SalesTermRef.value = bills.SalesTermRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>customers.CurrencyRef.value = credit_memos.CurrencyRef.value<br>```<br><br>```<br>customers.Id = credit_memos.CustomerRef.value<br>```<br><br>```<br>customers.DefaultTaxCodeRef.value = credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>customers.SalesTermRef.value = credit_memos.SalesTermRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>customers.CurrencyRef.value = deposits.CurrencyRef.value<br>```<br><br>```<br>customers.PaymentMethodRef.value = deposits.Line.DepositLineDetail.PaymentMethodRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>customers.CurrencyRef.value = estimates.CurrencyRef.value<br>```<br><br>```<br>customers.Id = estimates.CustomerRef.value<br>```<br><br>```<br>customers.DefaultTaxCodeRef.value = estimates.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>customers.DefaultTaxCodeRef.value = estimates.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>customers.SalesTermRef.value = estimates.SalesTermRef.value<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>customers.CurrencyRef.value = invoices.CurrencyRef.value<br>```<br><br>```<br>customers.Id = invoices.CustomerRef.value<br>```<br><br>```<br>customers.DefaultTaxCodeRef.value = invoices.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>customers.DefaultTaxCodeRef.value = invoices.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>customers.SalesTermRef.value = invoices.SalesTermRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>customers.CurrencyRef.value = journal_entries.CurrencyRef.value<br>```<br><br>```<br>customers.DefaultTaxCodeRef.value = journal_entries.TxnTaxDetail.TxnTaxCodeRef.value<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>customers.CurrencyRef.value = payments.CurrencyRef.value<br>```<br><br>```<br>customers.Id = payments.CustomerRef.value<br>```<br><br>```<br>customers.PaymentMethodRef.value = payments.PaymentMethodRef.value<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>customers.CurrencyRef.value = purchase_orders.CurrencyRef.value<br>```<br><br>```<br>customers.Id = purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>customers.DefaultTaxCodeRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>customers.SalesTermRef.value = purchase_orders.SalesTermRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>customers.CurrencyRef.value = purchases.CurrencyRef.value<br>```<br><br>```<br>customers.Id = purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>customers.PaymentMethodRef.value = purchases.PaymentMethodRef.value<br>```<br><br>```<br>customers.DefaultTaxCodeRef.value = purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>customers.DefaultTaxCodeRef.value = purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>customers.CurrencyRef.value = refund_receipts.CurrencyRef.value<br>```<br><br>```<br>customers.Id = refund_receipts.CustomerRef.value<br>```<br><br>```<br>customers.PaymentMethodRef.value = refund_receipts.PaymentMethodRef.value<br>```<br><br>```<br>customers.DefaultTaxCodeRef.value = refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>customers.CurrencyRef.value = sales_receipts.CurrencyRef.value<br>```<br><br>```<br>customers.Id = sales_receipts.CustomerRef.value<br>```<br><br>```<br>customers.PaymentMethodRef.value = sales_receipts.PaymentMethodRef.value<br>```<br><br>```<br>customers.DefaultTaxCodeRef.value = sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [transfers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#transfers) | ```<br>customers.CurrencyRef.value = transfers.CurrencyRef.value<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>customers.CurrencyRef.value = vendor_credits.CurrencyRef.value<br>```<br><br>```<br>customers.Id = vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>customers.DefaultTaxCodeRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [vendors](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendors) | ```<br>customers.CurrencyRef.value = vendors.CurrencyRef.value<br>``` |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>customers.Id = budgets.BudgetDetail.CustomerRef.value<br>``` |
| [payment_methods](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payment-methods) | ```<br>customers.PaymentMethodRef.value = payment_methods.Id<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>customers.DefaultTaxCodeRef.value = items.PurchaseTaxCodeRef.value<br>```<br><br>```<br>customers.DefaultTaxCodeRef.value = items.SalesTaxCodeRef.value<br>``` |
| [terms](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#terms) | ```<br>customers.SalesTermRef.value = terms.Id<br>``` |

customers table schema

| **ARAccountRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| --- |
| **Active**<br><br><br>BOOLEAN |
| **AlternatePhone**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>FreeFormNumber: STRING</li></ul> |
| **Balance**<br><br><br>NUMBER |
| **BalanceWithJobs**<br><br><br>NUMBER |
| **BillAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **BillWithParent**<br><br><br>BOOLEAN |
| **BusinessNumber**<br><br><br>STRING |
| **CompanyName**<br><br><br>STRING |
| **CurrencyRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **CustomerTypeRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>value: STRING</li></ul> |
| **DefaultTaxCodeRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DisplayName**<br><br><br>STRING |
| **FamilyName**<br><br><br>STRING |
| **Fax**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>FreeFormNumber: STRING</li></ul> |
| **FullyQualifiedName**<br><br><br>STRING |
| **GSTIN**<br><br><br>STRING |
| **GSTRegistrationType**<br><br><br>STRING |
| **GivenName**<br><br><br>STRING |
| **Id**<br><br><br>STRING |
| **IsProject**<br><br><br>BOOLEAN |
| **Job**<br><br><br>BOOLEAN |
| **Level**<br><br><br>INTEGER |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **MiddleName**<br><br><br>STRING |
| **Mobile**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>FreeFormNumber: STRING</li></ul> |
| **Notes**<br><br><br>STRING |
| **OpenBalanceDate**<br><br><br>DATE-TIME |
| **ParentRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **PaymentMethodRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **PreferredDeliveryMethod**<br><br><br>STRING |
| **PrimaryEmailAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>Address: STRING</li></ul> |
| **PrimaryPhone**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>FreeFormNumber: STRING</li></ul> |
| **PrimaryTaxIdentifier**<br><br><br>STRING |
| **PrintOnCheckName**<br><br><br>STRING |
| **ResaleNum**<br><br><br>STRING |
| **SalesTermRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **SecondaryTaxIdentifier**<br><br><br>STRING |
| **ShipAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **Source**<br><br><br>STRING |
| **Suffix**<br><br><br>STRING |
| **SyncToken**<br><br><br>STRING |
| **TaxExemptionReasonId**<br><br><br>INTEGER |
| **Taxable**<br><br><br>BOOLEAN |
| **Title**<br><br><br>STRING |
| **WebAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>URI: STRING</li></ul> |
| **domain**<br><br><br>STRING |

### deleted\_objects

The `deleted_objects` table contains info about objects deleted from QuickBooks.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/changedatacapture#the-changedatacapture-object)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/changedatacapture#get-a-list-of-changed-entities "Opens in new tab: QuickBooks API method") |

deleted\_objects table schema

| **Id**<br><br><br>STRING |
| --- |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **Type**<br><br><br>STRING |
| **domain**<br><br><br>STRING |

### departments

The `departments` table contains info about the departments in your QuickBooks instance. **Note**: Both active and inactive departments are included in the data for this table.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/department)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/department#query-a-department "Opens in new tab: QuickBooks API method") |

departments table foreign keys

| Join departments with | on |
| --- | --- |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>departments.ParentRef.value = bills.DepartmentRef.value<br>```<br><br>```<br>departments.Id = bills.DepartmentRef.value<br>``` |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>departments.ParentRef.value = bill_payments.DepartmentRef.value<br>```<br><br>```<br>departments.Id = bill_payments.DepartmentRef.value<br>``` |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>departments.ParentRef.value = budgets.BudgetDetail.DepartmentRef.value<br>```<br><br>```<br>departments.Id = budgets.BudgetDetail.DepartmentRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>departments.ParentRef.value = deposits.DepartmentRef.value<br>```<br><br>```<br>departments.Id = deposits.DepartmentRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>departments.ParentRef.value = estimates.DepartmentRef.value<br>```<br><br>```<br>departments.Id = estimates.DepartmentRef.value<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>departments.ParentRef.value = invoices.DepartmentRef.value<br>```<br><br>```<br>departments.Id = invoices.DepartmentRef.value<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>departments.ParentRef.value = purchase_orders.DepartmentRef.value<br>```<br><br>```<br>departments.Id = purchase_orders.DepartmentRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>departments.ParentRef.value = purchases.DepartmentRef.value<br>```<br><br>```<br>departments.Id = purchases.DepartmentRef.value<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>departments.ParentRef.value = refund_receipts.DepartmentRef.value<br>```<br><br>```<br>departments.Id = refund_receipts.DepartmentRef.value<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>departments.ParentRef.value = sales_receipts.DepartmentRef.value<br>```<br><br>```<br>departments.Id = sales_receipts.DepartmentRef.value<br>``` |
| [time_activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#time-activities) | ```<br>departments.ParentRef.value = time_activities.DepartmentRef.value<br>```<br><br>```<br>departments.Id = time_activities.DepartmentRef.value<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>departments.ParentRef.value = vendor_credits.DepartmentRef.value<br>```<br><br>```<br>departments.Id = vendor_credits.DepartmentRef.value<br>``` |

departments table schema

| **Active**<br><br><br>BOOLEAN |
| --- |
| **FullyQualifiedName**<br><br><br>STRING |
| **Id**<br><br><br>STRING |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **Name**<br><br><br>STRING |
| **ParentRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **SubDepartment**<br><br><br>BOOLEAN |
| **SyncToken**<br><br><br>STRING |
| **domain**<br><br><br>STRING |

### deposits

The `deposits` table contains info about deposits in your QuickBooks instance. These can be customer payments or new direct deposits.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/deposit)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/deposit#query-a-deposit "Opens in new tab: QuickBooks API method") |

deposits table foreign keys

| Join deposits with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#accounts) | ```<br>deposits.CashBack.AccountRef.value = accounts.Id<br>```<br><br>```<br>deposits.DepositToAccountRef.value = accounts.Id<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = accounts.Id<br>```<br><br>```<br>deposits.CashBack.AccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>deposits.CurrencyRef.value = accounts.CurrencyRef.value<br>``` |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>deposits.CashBack.AccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>deposits.CashBack.AccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>deposits.CashBack.AccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>deposits.CurrencyRef.value = bill_payments.CurrencyRef.value<br>```<br><br>```<br>deposits.DepartmentRef.value = bill_payments.DepartmentRef.value<br>```<br><br>```<br>deposits.Line.LinkedTxn.TxnId = bill_payments.Line.LinkedTxn.TxnId<br>``` |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>deposits.CashBack.AccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>deposits.CashBack.AccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>deposits.CurrencyRef.value = bills.CurrencyRef.value<br>```<br><br>```<br>deposits.DepartmentRef.value = bills.DepartmentRef.value<br>``` |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>deposits.CashBack.AccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>deposits.DepartmentRef.value = budgets.BudgetDetail.DepartmentRef.value<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>deposits.CashBack.AccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>deposits.CashBack.AccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>deposits.CurrencyRef.value = invoices.CurrencyRef.value<br>```<br><br>```<br>deposits.DepartmentRef.value = invoices.DepartmentRef.value<br>```<br><br>```<br>deposits.Line.LinkedTxn.TxnId = invoices.LinkedTxn.TxnId<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>deposits.CashBack.AccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>deposits.CashBack.AccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>deposits.CashBack.AccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = items.IncomeAccountRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>deposits.CashBack.AccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>deposits.CurrencyRef.value = journal_entries.CurrencyRef.value<br>```<br><br>```<br>deposits.Line.LinkedTxn.TxnId = journal_entries.Id<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>deposits.CashBack.AccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>deposits.CurrencyRef.value = payments.CurrencyRef.value<br>```<br><br>```<br>deposits.Line.LinkedTxn.TxnId = payments.Id<br>```<br><br>```<br>deposits.Line.DepositLineDetail.PaymentMethodRef.value = payments.PaymentMethodRef.value<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>deposits.CashBack.AccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>deposits.CurrencyRef.value = purchase_orders.CurrencyRef.value<br>```<br><br>```<br>deposits.DepartmentRef.value = purchase_orders.DepartmentRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>deposits.CashBack.AccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>deposits.CashBack.AccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>deposits.CurrencyRef.value = purchases.CurrencyRef.value<br>```<br><br>```<br>deposits.DepartmentRef.value = purchases.DepartmentRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.PaymentMethodRef.value = purchases.PaymentMethodRef.value<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>deposits.CashBack.AccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>deposits.CurrencyRef.value = refund_receipts.CurrencyRef.value<br>```<br><br>```<br>deposits.DepartmentRef.value = refund_receipts.DepartmentRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.PaymentMethodRef.value = refund_receipts.PaymentMethodRef.value<br>```<br><br>```<br>deposits.Line.LinkedTxn.TxnId = refund_receipts.Id<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>deposits.CashBack.AccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>deposits.CashBack.AccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>deposits.CurrencyRef.value = sales_receipts.CurrencyRef.value<br>```<br><br>```<br>deposits.DepartmentRef.value = sales_receipts.DepartmentRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.PaymentMethodRef.value = sales_receipts.PaymentMethodRef.value<br>```<br><br>```<br>deposits.Line.LinkedTxn.TxnId = sales_receipts.Id<br>``` |
| [transfers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#transfers) | ```<br>deposits.CashBack.AccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>deposits.CashBack.AccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>deposits.CurrencyRef.value = transfers.CurrencyRef.value<br>```<br><br>```<br>deposits.Line.LinkedTxn.TxnId = transfers.Id<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>deposits.CashBack.AccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>deposits.CashBack.AccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>deposits.DepositToAccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.AccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>deposits.CurrencyRef.value = vendor_credits.CurrencyRef.value<br>```<br><br>```<br>deposits.DepartmentRef.value = vendor_credits.DepartmentRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>deposits.CurrencyRef.value = credit_memos.CurrencyRef.value<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>deposits.CurrencyRef.value = customers.CurrencyRef.value<br>```<br><br>```<br>deposits.Line.DepositLineDetail.PaymentMethodRef.value = customers.PaymentMethodRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>deposits.CurrencyRef.value = estimates.CurrencyRef.value<br>```<br><br>```<br>deposits.DepartmentRef.value = estimates.DepartmentRef.value<br>``` |
| [vendors](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendors) | ```<br>deposits.CurrencyRef.value = vendors.CurrencyRef.value<br>``` |
| [departments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#departments) | ```<br>deposits.DepartmentRef.value = departments.ParentRef.value<br>```<br><br>```<br>deposits.DepartmentRef.value = departments.Id<br>``` |
| [time_activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#time-activities) | ```<br>deposits.DepartmentRef.value = time_activities.DepartmentRef.value<br>``` |
| [payment_methods](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payment-methods) | ```<br>deposits.Line.DepositLineDetail.PaymentMethodRef.value = payment_methods.Id<br>``` |

deposits table schema

| **CashBack**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>AccountRef: OBJECT, which is also a nested data structure.											<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Amount: NUMBER</li><li>Memo: STRING</li></ul> |
| --- |
| **CurrencyRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DepartmentRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DepositToAccountRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **ExchangeRate**<br><br><br>NUMBER |
| **GlobalTaxCalculation**<br><br><br>STRING |
| **HomeTotalAmt**<br><br><br>NUMBER |
| **Id**<br><br><br>STRING |
| **Line**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>Amount: NUMBER</li><li>CustomField: OBJECT, which is also a nested data structure.											<ul><li>DefinitionId: STRING</li><li>Name: STRING</li><li>StringValue: STRING</li><li>Type: STRING</li></ul></li><li>DepositLineDetail: OBJECT, which is also a nested data structure.											<ul><li>AccountRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>CheckNum: STRING</li><li>ClassRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Entity: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>PaymentMethodRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxApplicableOn: STRING</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TxnType: STRING</li></ul></li><li>Description: STRING</li><li>DetailType: STRING</li><li>Id: STRING</li><li>LineNum: INTEGER</li><li>LinkedTxn: ARRAY, which is also a nested data structure.											<ul><li>TxnId: STRING</li><li>TxnLineId: STRING</li><li>TxnType: STRING</li></ul></li></ul> |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **PrivateNote**<br><br><br>STRING |
| **RecurDataRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **SyncToken**<br><br><br>STRING |
| **TotalAmt**<br><br><br>NUMBER |
| **TransactionLocationType**<br><br><br>STRING |
| **TxnDate**<br><br><br>DATE-TIME |
| **TxnSource**<br><br><br>STRING |
| **TxnTaxDetail**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>TaxLine: ARRAY, which is also a nested data structure.											<ul><li>Amount: NUMBER</li><li>DetailType: STRING</li><li>TaxLineDetail: OBJECT, which is also a nested data structure.													<ul><li>NetAmountTaxable: NUMBER</li><li>OverrideDeltaAmount: NUMBER</li><li>PercentBased: BOOLEAN</li><li>TaxInclusiveAmount: NUMBER</li><li>TaxPercent: NUMBER</li><li>TaxRateRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li></ul></li><li>TotalTax: NUMBER</li><li>TxnTaxCodeRef: OBJECT, which is also a nested data structure.											<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul> |
| **domain**<br><br><br>STRING |

### employees

The `employees` table contains info about the people working for your company. **Note**: Both active and inactive employees are included in the data for this table.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/employee)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/employee#query-an-employee "Opens in new tab: QuickBooks API method") |

employees table foreign keys

| Join employees with | on |
| --- | --- |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>employees.Id = purchases.EntityRef.value<br>``` |
| [time_activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#time-activities) | ```<br>employees.Id = time_activities.EmployeeRef.value<br>``` |

employees table schema

| **Active**<br><br><br>BOOLEAN |
| --- |
| **BillRate**<br><br><br>NUMBER |
| **BillableTime**<br><br><br>BOOLEAN |
| **BirthDate**<br><br><br>DATE-TIME |
| **CostRate**<br><br><br>NUMBER |
| **DisplayName**<br><br><br>STRING |
| **EmployeeNumber**<br><br><br>STRING |
| **FamilyName**<br><br><br>STRING |
| **Gender**<br><br><br>STRING |
| **GivenName**<br><br><br>STRING |
| **HiredDate**<br><br><br>DATE-TIME |
| **Id**<br><br><br>STRING |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **MiddleName**<br><br><br>STRING |
| **Mobile**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>FreeFormNumber: STRING</li></ul> |
| **Organization**<br><br><br>BOOLEAN |
| **PrimaryAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **PrimaryEmailAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>Address: STRING</li></ul> |
| **PrimaryPhone**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>FreeFormNumber: STRING</li></ul> |
| **PrintOnCheckName**<br><br><br>STRING |
| **ReleasedDate**<br><br><br>DATE-TIME |
| **SSN**<br><br><br>STRING |
| **Suffix**<br><br><br>STRING |
| **SyncToken**<br><br><br>STRING |
| **Title**<br><br><br>STRING |
| **V4IDPseudonym**<br><br><br>STRING |
| **domain**<br><br><br>STRING |

### estimates

The `estimates` table contains info about the estimates in your QuickBooks instance. An estimate is a financial proposal from a business to a [customer](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) for goods or services.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/estimate)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/estimate#read-an-estimate "Opens in new tab: QuickBooks API method") |

estimates table foreign keys

| Join estimates with | on |
| --- | --- |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>estimates.ClassRef.value = budgets.BudgetDetail.ClassRef.value<br>```<br><br>```<br>estimates.CustomerRef.value = budgets.BudgetDetail.CustomerRef.value<br>```<br><br>```<br>estimates.DepartmentRef.value = budgets.BudgetDetail.DepartmentRef.value<br>``` |
| [classes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#classes) | ```<br>estimates.ClassRef.value = classes.Id<br>```<br><br>```<br>estimates.ClassRef.value = classes.ParentRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>estimates.ClassRef.value = credit_memos.ClassRef.value<br>```<br><br>```<br>estimates.CurrencyRef.value = credit_memos.CurrencyRef.value<br>```<br><br>```<br>estimates.CustomerRef.value = credit_memos.CustomerRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.ItemRef.value = credit_memos.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.TaxCodeRef.value = credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>estimates.TxnTaxDetail.TxnTaxCodeRef.value = credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>estimates.SalesTermRef.value = credit_memos.SalesTermRef.value<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>estimates.ClassRef.value = invoices.ClassRef.value<br>```<br><br>```<br>estimates.ClassRef.value = invoices.Line.SalesItemLineDetail.ClassRef.value<br>```<br><br>```<br>estimates.CurrencyRef.value = invoices.CurrencyRef.value<br>```<br><br>```<br>estimates.CustomerRef.value = invoices.CustomerRef.value<br>```<br><br>```<br>estimates.DepartmentRef.value = invoices.DepartmentRef.value<br>```<br><br>```<br>estimates.Id = invoices.LinkedTxn.TxnId<br>```<br><br>```<br>estimates.LinkedTxn.TxnId = invoices.Id<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.ItemRef.value = invoices.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.TaxCodeRef.value = invoices.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>estimates.TxnTaxDetail.TxnTaxCodeRef.value = invoices.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.TaxCodeRef.value = invoices.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>estimates.TxnTaxDetail.TxnTaxCodeRef.value = invoices.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>estimates.TxnTaxDetail.TaxLine.TaxLineDetail.TaxLine.TaxLineDetail.TaxRateRef.value = invoices.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value<br>```<br><br>```<br>estimates.SalesTermRef.value = invoices.SalesTermRef.value<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>estimates.ClassRef.value = items.ClassRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.ItemRef.value = items.Id<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.ItemRef.value = items.ParentRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.TaxCodeRef.value = items.PurchaseTaxCodeRef.value<br>```<br><br>```<br>estimates.TxnTaxDetail.TxnTaxCodeRef.value = items.PurchaseTaxCodeRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.TaxCodeRef.value = items.SalesTaxCodeRef.value<br>```<br><br>```<br>estimates.TxnTaxDetail.TxnTaxCodeRef.value = items.SalesTaxCodeRef.value<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>estimates.ClassRef.value = purchase_orders.ClassRef.value<br>```<br><br>```<br>estimates.ClassRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>estimates.CurrencyRef.value = purchase_orders.CurrencyRef.value<br>```<br><br>```<br>estimates.CustomerRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>estimates.DepartmentRef.value = purchase_orders.DepartmentRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.ItemRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.TaxCodeRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>estimates.TxnTaxDetail.TxnTaxCodeRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>estimates.SalesTermRef.value = purchase_orders.SalesTermRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>estimates.ClassRef.value = purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>estimates.CurrencyRef.value = purchases.CurrencyRef.value<br>```<br><br>```<br>estimates.CustomerRef.value = purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>estimates.DepartmentRef.value = purchases.DepartmentRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.ItemRef.value = purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.TaxCodeRef.value = purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>estimates.TxnTaxDetail.TxnTaxCodeRef.value = purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.TaxCodeRef.value = purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>estimates.TxnTaxDetail.TxnTaxCodeRef.value = purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>estimates.Id = purchases.Id<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>estimates.ClassRef.value = refund_receipts.ClassRef.value<br>```<br><br>```<br>estimates.CurrencyRef.value = refund_receipts.CurrencyRef.value<br>```<br><br>```<br>estimates.CustomerRef.value = refund_receipts.CustomerRef.value<br>```<br><br>```<br>estimates.DepartmentRef.value = refund_receipts.DepartmentRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.ItemRef.value = refund_receipts.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.TaxCodeRef.value = refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>estimates.TxnTaxDetail.TxnTaxCodeRef.value = refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>estimates.ClassRef.value = sales_receipts.ClassRef.value<br>```<br><br>```<br>estimates.CurrencyRef.value = sales_receipts.CurrencyRef.value<br>```<br><br>```<br>estimates.CustomerRef.value = sales_receipts.CustomerRef.value<br>```<br><br>```<br>estimates.DepartmentRef.value = sales_receipts.DepartmentRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.ItemRef.value = sales_receipts.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.TaxCodeRef.value = sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>estimates.TxnTaxDetail.TxnTaxCodeRef.value = sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [time_activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#time-activities) | ```<br>estimates.ClassRef.value = time_activities.ClassRef.value<br>```<br><br>```<br>estimates.DepartmentRef.value = time_activities.DepartmentRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.ItemRef.value = time_activities.ItemRef.value<br>```<br><br>```<br>estimates.Id = time_activities.Id<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>estimates.ClassRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>estimates.CurrencyRef.value = vendor_credits.CurrencyRef.value<br>```<br><br>```<br>estimates.CustomerRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>estimates.DepartmentRef.value = vendor_credits.DepartmentRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.TaxCodeRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>estimates.TxnTaxDetail.TxnTaxCodeRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [accounts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#accounts) | ```<br>estimates.CurrencyRef.value = accounts.CurrencyRef.value<br>``` |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>estimates.CurrencyRef.value = bill_payments.CurrencyRef.value<br>```<br><br>```<br>estimates.DepartmentRef.value = bill_payments.DepartmentRef.value<br>``` |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>estimates.CurrencyRef.value = bills.CurrencyRef.value<br>```<br><br>```<br>estimates.CustomerRef.value = bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>estimates.DepartmentRef.value = bills.DepartmentRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.ItemRef.value = bills.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.TaxCodeRef.value = bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>estimates.TxnTaxDetail.TxnTaxCodeRef.value = bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.TaxCodeRef.value = bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>estimates.TxnTaxDetail.TxnTaxCodeRef.value = bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>estimates.SalesTermRef.value = bills.SalesTermRef.value<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>estimates.CurrencyRef.value = customers.CurrencyRef.value<br>```<br><br>```<br>estimates.CustomerRef.value = customers.Id<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.TaxCodeRef.value = customers.DefaultTaxCodeRef.value<br>```<br><br>```<br>estimates.TxnTaxDetail.TxnTaxCodeRef.value = customers.DefaultTaxCodeRef.value<br>```<br><br>```<br>estimates.SalesTermRef.value = customers.SalesTermRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>estimates.CurrencyRef.value = deposits.CurrencyRef.value<br>```<br><br>```<br>estimates.DepartmentRef.value = deposits.DepartmentRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>estimates.CurrencyRef.value = journal_entries.CurrencyRef.value<br>```<br><br>```<br>estimates.Line.SalesItemLineDetail.TaxCodeRef.value = journal_entries.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>estimates.TxnTaxDetail.TxnTaxCodeRef.value = journal_entries.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>estimates.TxnTaxDetail.TaxLine.TaxLineDetail.TaxLine.TaxLineDetail.TaxRateRef.value = journal_entries.TaxRateRef.value<br>```<br><br>```<br>estimates.TxnTaxDetail.TaxLine.TaxLineDetail.TaxLine.TaxLineDetail.TaxRateRef.value = journal_entries.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>estimates.CurrencyRef.value = payments.CurrencyRef.value<br>```<br><br>```<br>estimates.CustomerRef.value = payments.CustomerRef.value<br>```<br><br>```<br>estimates.LinkedTxn.TxnId = payments.Line.LinkedTxn.TxnId<br>```<br><br>```<br>estimates.Id = payments.Id<br>``` |
| [transfers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#transfers) | ```<br>estimates.CurrencyRef.value = transfers.CurrencyRef.value<br>``` |
| [vendors](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendors) | ```<br>estimates.CurrencyRef.value = vendors.CurrencyRef.value<br>``` |
| [departments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#departments) | ```<br>estimates.DepartmentRef.value = departments.ParentRef.value<br>```<br><br>```<br>estimates.DepartmentRef.value = departments.Id<br>``` |
| [tax_codes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#tax-codes) | ```<br>estimates.TxnTaxDetail.TaxLine.TaxLineDetail.TaxLine.TaxLineDetail.TaxRateRef.value = tax_codes.PurchaseTaxRateList.TaxRateDetail.TaxRateRef.value<br>```<br><br>```<br>estimates.TxnTaxDetail.TaxLine.TaxLineDetail.TaxLine.TaxLineDetail.TaxRateRef.value = tax_codes.SalesTaxRateList.TaxRateDetail.TaxRateRef.value<br>``` |
| [tax_rates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#tax-rates) | ```<br>estimates.TxnTaxDetail.TaxLine.TaxLineDetail.TaxLine.TaxLineDetail.TaxRateRef.value = tax_rates.Id<br>``` |
| [terms](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#terms) | ```<br>estimates.SalesTermRef.value = terms.Id<br>``` |

estimates table schema

| **AcceptedBy**<br><br><br>STRING |
| --- |
| **AcceptedDate**<br><br><br>DATE-TIME |
| **ApplyTaxAfterDiscount**<br><br><br>BOOLEAN |
| **BillAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **BillEmail**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>Address: STRING</li></ul> |
| **ClassRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **CurrencyRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **CustomField**<br><br><br>ARRAY |
| **CustomerMemo**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>value: STRING</li></ul> |
| **CustomerRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DeliveryInfo**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>DeliveryTime: DATE-TIME</li><li>DeliveryType: STRING</li></ul> |
| **DepartmentRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DocNumber**<br><br><br>STRING |
| **DueDate**<br><br><br>DATE-TIME |
| **EmailStatus**<br><br><br>STRING |
| **ExchangeRate**<br><br><br>NUMBER |
| **ExpirationDate**<br><br><br>DATE-TIME |
| **FreeFormAddress**<br><br><br>BOOLEAN |
| **GlobalTaxCalculation**<br><br><br>STRING |
| **HomeTotalAmt**<br><br><br>NUMBER |
| **Id**<br><br><br>STRING |
| **Line**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>Amount: NUMBER</li><li>Description: STRING</li><li>DescriptionLineDetail: OBJECT, which is also a nested data structure.											<ul><li>ServiceDate: DATE-TIME</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>DetailType: STRING</li><li>DiscountLineDetail: OBJECT, which is also a nested data structure.											<ul><li>ClassRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountAccountRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountPercent: NUMBER</li><li>PercentBased: BOOLEAN</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>GroupLineDetail: OBJECT, which is also a nested data structure.											<ul><li>GroupItemRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Line: ARRAY, which is also a nested data structure.													<ul><li>Amount: NUMBER</li><li>Description: STRING</li><li>DetailType: STRING</li><li>Id: STRING</li><li>LineNum: NUMBER</li><li>SalesItemLineDetail: OBJECT, which is also a nested data structure.															<ul><li>ClassRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountAmt: NUMBER</li><li>DiscountRate: NUMBER</li><li>ItemAccountRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>ItemRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>MarkupInfo: OBJECT, which is also a nested data structure.																	<ul><li>MarkUpIncomeAccountRef: OBJECT, which is also a nested data structure.																			<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Percent: NUMBER</li><li>PriceLevelRef: OBJECT, which is also a nested data structure.																			<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>Qty: INTEGER</li><li>ServiceDate: DATE-TIME</li><li>TaxClassificationRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxCodeRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxInclusiveAmt: NUMBER</li><li>UnitPrice: NUMBER</li></ul></li></ul></li><li>Quantity: NUMBER</li></ul></li><li>Id: STRING</li><li>LineNum: INTEGER</li><li>SalesItemLineDetail: OBJECT, which is also a nested data structure.											<ul><li>ClassRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountAmt: NUMBER</li><li>DiscountRate: NUMBER</li><li>ItemAccountRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>ItemRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>MarkupInfo: OBJECT, which is also a nested data structure.													<ul><li>MarkUpIncomeAccountRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Percent: NUMBER</li><li>PriceLevelRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>Qty: INTEGER</li><li>ServiceDate: DATE-TIME</li><li>TaxClassificationRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxInclusiveAmt: NUMBER</li><li>UnitPrice: NUMBER</li></ul></li><li>SubtotalLineDetail: OBJECT, which is also a nested data structure.											<ul><li>ItemRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li></ul> |
| **LinkedTxn**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>TxnId: STRING</li><li>TxnLineId: STRING</li><li>TxnType: STRING</li></ul> |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **PrintStatus**<br><br><br>STRING |
| **PrivateNote**<br><br><br>STRING |
| **RecurDataRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **SalesTermRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **ShipAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **ShipDate**<br><br><br>DATE-TIME |
| **ShipFromAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **ShipMethodRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **SyncToken**<br><br><br>STRING |
| **TaxExemptionRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **TotalAmt**<br><br><br>NUMBER |
| **TransactionLocationType**<br><br><br>STRING |
| **TxnDate**<br><br><br>DATE-TIME |
| **TxnStatus**<br><br><br>STRING |
| **TxnTaxDetail**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>TaxLine: ARRAY, which is also a nested data structure.											<ul><li>Amount: NUMBER</li><li>DetailType: STRING</li><li>TaxLineDetail: OBJECT, which is also a nested data structure.													<ul><li>TaxLine: ARRAY, which is also a nested data structure.															<ul><li>Amount: NUMBER</li><li>DetailType: STRING</li><li>TaxLineDetail: OBJECT, which is also a nested data structure.																	<ul><li>NetAmountTaxable: NUMBER</li><li>OverrideDeltaAmount: NUMBER</li><li>PercentBased: BOOLEAN</li><li>TaxInclusiveAmount: NUMBER</li><li>TaxPercent: NUMBER</li><li>TaxRateRef: OBJECT, which is also a nested data structure.																			<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li></ul></li><li>TotalTax: NUMBER</li><li>TxnTaxCodeRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li></ul></li><li>TotalTax: NUMBER</li><li>TxnTaxCodeRef: OBJECT, which is also a nested data structure.											<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul> |
| **domain**<br><br><br>STRING |
| **patternProperties**<br><br><br>OBJECT<br><br>Click to expand patternProperties<br><br><table></table> |

### invoices

The `invoices` table contains info about the invoices in your QuickBooks account.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/invoice)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/invoice#query-an-invoice "Opens in new tab: QuickBooks API method") |

invoices table foreign keys

| Join invoices with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#accounts) | ```<br>invoices.DepositToAccountRef.value = accounts.Id<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = accounts.Id<br>```<br><br>```<br>invoices.DepositToAccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>invoices.CurrencyRef.value = accounts.CurrencyRef.value<br>``` |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>invoices.DepositToAccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>invoices.DepositToAccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>invoices.DepositToAccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>invoices.CurrencyRef.value = bill_payments.CurrencyRef.value<br>```<br><br>```<br>invoices.DepartmentRef.value = bill_payments.DepartmentRef.value<br>``` |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>invoices.DepositToAccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>invoices.DepositToAccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>invoices.CurrencyRef.value = bills.CurrencyRef.value<br>```<br><br>```<br>invoices.CustomerRef.value = bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>invoices.DepartmentRef.value = bills.DepartmentRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ItemRef.value = bills.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.TaxCodeRef.value = bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>invoices.TxnTaxDetail.TxnTaxCodeRef.value = bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.TaxCodeRef.value = bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>invoices.TxnTaxDetail.TxnTaxCodeRef.value = bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>invoices.SalesTermRef.value = bills.SalesTermRef.value<br>``` |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>invoices.DepositToAccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>invoices.ClassRef.value = budgets.BudgetDetail.ClassRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ClassRef.value = budgets.BudgetDetail.ClassRef.value<br>```<br><br>```<br>invoices.CustomerRef.value = budgets.BudgetDetail.CustomerRef.value<br>```<br><br>```<br>invoices.DepartmentRef.value = budgets.BudgetDetail.DepartmentRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>invoices.DepositToAccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>invoices.DepositToAccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>invoices.DepositToAccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>invoices.CurrencyRef.value = deposits.CurrencyRef.value<br>```<br><br>```<br>invoices.DepartmentRef.value = deposits.DepartmentRef.value<br>```<br><br>```<br>invoices.LinkedTxn.TxnId = deposits.Line.LinkedTxn.TxnId<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>invoices.DepositToAccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>invoices.DepositToAccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>invoices.DepositToAccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>invoices.ClassRef.value = items.ClassRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ClassRef.value = items.ClassRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ItemRef.value = items.Id<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ItemRef.value = items.ParentRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.TaxCodeRef.value = items.PurchaseTaxCodeRef.value<br>```<br><br>```<br>invoices.TxnTaxDetail.TxnTaxCodeRef.value = items.PurchaseTaxCodeRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.TaxCodeRef.value = items.SalesTaxCodeRef.value<br>```<br><br>```<br>invoices.TxnTaxDetail.TxnTaxCodeRef.value = items.SalesTaxCodeRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>invoices.DepositToAccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>invoices.CurrencyRef.value = journal_entries.CurrencyRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.TaxCodeRef.value = journal_entries.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>invoices.TxnTaxDetail.TxnTaxCodeRef.value = journal_entries.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>invoices.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value = journal_entries.TaxRateRef.value<br>```<br><br>```<br>invoices.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value = journal_entries.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>invoices.DepositToAccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>invoices.CurrencyRef.value = payments.CurrencyRef.value<br>```<br><br>```<br>invoices.CustomerRef.value = payments.CustomerRef.value<br>```<br><br>```<br>invoices.Id = payments.Line.LinkedTxn.TxnId<br>```<br><br>```<br>invoices.LinkedTxn.TxnId = payments.Id<br>```<br><br>```<br>invoices.LinkedTxn.TxnId = payments.Line.LinkedTxn.TxnId<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>invoices.DepositToAccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>invoices.ClassRef.value = purchase_orders.ClassRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ClassRef.value = purchase_orders.ClassRef.value<br>```<br><br>```<br>invoices.ClassRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ClassRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>invoices.CurrencyRef.value = purchase_orders.CurrencyRef.value<br>```<br><br>```<br>invoices.CustomerRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>invoices.DepartmentRef.value = purchase_orders.DepartmentRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ItemRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.TaxCodeRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>invoices.TxnTaxDetail.TxnTaxCodeRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>invoices.SalesTermRef.value = purchase_orders.SalesTermRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>invoices.DepositToAccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>invoices.DepositToAccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>invoices.ClassRef.value = purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ClassRef.value = purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>invoices.CurrencyRef.value = purchases.CurrencyRef.value<br>```<br><br>```<br>invoices.CustomerRef.value = purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>invoices.DepartmentRef.value = purchases.DepartmentRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ItemRef.value = purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>invoices.LinkedTxn.TxnId = purchases.Id<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.TaxCodeRef.value = purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>invoices.TxnTaxDetail.TxnTaxCodeRef.value = purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.TaxCodeRef.value = purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>invoices.TxnTaxDetail.TxnTaxCodeRef.value = purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>invoices.Id = purchases.Id<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>invoices.DepositToAccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>invoices.ClassRef.value = refund_receipts.ClassRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ClassRef.value = refund_receipts.ClassRef.value<br>```<br><br>```<br>invoices.CurrencyRef.value = refund_receipts.CurrencyRef.value<br>```<br><br>```<br>invoices.CustomerRef.value = refund_receipts.CustomerRef.value<br>```<br><br>```<br>invoices.DepartmentRef.value = refund_receipts.DepartmentRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ItemRef.value = refund_receipts.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.TaxCodeRef.value = refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>invoices.TxnTaxDetail.TxnTaxCodeRef.value = refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>invoices.DepositToAccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>invoices.DepositToAccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>invoices.ClassRef.value = sales_receipts.ClassRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ClassRef.value = sales_receipts.ClassRef.value<br>```<br><br>```<br>invoices.CurrencyRef.value = sales_receipts.CurrencyRef.value<br>```<br><br>```<br>invoices.CustomerRef.value = sales_receipts.CustomerRef.value<br>```<br><br>```<br>invoices.DepartmentRef.value = sales_receipts.DepartmentRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ItemRef.value = sales_receipts.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.TaxCodeRef.value = sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>invoices.TxnTaxDetail.TxnTaxCodeRef.value = sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [transfers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#transfers) | ```<br>invoices.DepositToAccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>invoices.DepositToAccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>invoices.CurrencyRef.value = transfers.CurrencyRef.value<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>invoices.DepositToAccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>invoices.DepositToAccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>invoices.Line.DiscountLineDetail.DiscountAccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>invoices.ClassRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ClassRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>invoices.CurrencyRef.value = vendor_credits.CurrencyRef.value<br>```<br><br>```<br>invoices.CustomerRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>invoices.DepartmentRef.value = vendor_credits.DepartmentRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.TaxCodeRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>invoices.TxnTaxDetail.TxnTaxCodeRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [classes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#classes) | ```<br>invoices.ClassRef.value = classes.Id<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ClassRef.value = classes.Id<br>```<br><br>```<br>invoices.ClassRef.value = classes.ParentRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ClassRef.value = classes.ParentRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>invoices.ClassRef.value = credit_memos.ClassRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ClassRef.value = credit_memos.ClassRef.value<br>```<br><br>```<br>invoices.CurrencyRef.value = credit_memos.CurrencyRef.value<br>```<br><br>```<br>invoices.CustomerRef.value = credit_memos.CustomerRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ItemRef.value = credit_memos.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.TaxCodeRef.value = credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>invoices.TxnTaxDetail.TxnTaxCodeRef.value = credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>invoices.SalesTermRef.value = credit_memos.SalesTermRef.value<br>```<br><br>```<br>invoices.Id = credit_memos.Id<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>invoices.ClassRef.value = estimates.ClassRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ClassRef.value = estimates.ClassRef.value<br>```<br><br>```<br>invoices.CurrencyRef.value = estimates.CurrencyRef.value<br>```<br><br>```<br>invoices.CustomerRef.value = estimates.CustomerRef.value<br>```<br><br>```<br>invoices.DepartmentRef.value = estimates.DepartmentRef.value<br>```<br><br>```<br>invoices.LinkedTxn.TxnId = estimates.Id<br>```<br><br>```<br>invoices.Id = estimates.LinkedTxn.TxnId<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ItemRef.value = estimates.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.TaxCodeRef.value = estimates.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>invoices.TxnTaxDetail.TxnTaxCodeRef.value = estimates.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.TaxCodeRef.value = estimates.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>invoices.TxnTaxDetail.TxnTaxCodeRef.value = estimates.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>invoices.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value = estimates.TxnTaxDetail.TaxLine.TaxLineDetail.TaxLine.TaxLineDetail.TaxRateRef.value<br>```<br><br>```<br>invoices.SalesTermRef.value = estimates.SalesTermRef.value<br>``` |
| [time_activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#time-activities) | ```<br>invoices.ClassRef.value = time_activities.ClassRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ClassRef.value = time_activities.ClassRef.value<br>```<br><br>```<br>invoices.DepartmentRef.value = time_activities.DepartmentRef.value<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.ItemRef.value = time_activities.ItemRef.value<br>```<br><br>```<br>invoices.LinkedTxn.TxnId = time_activities.Id<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>invoices.CurrencyRef.value = customers.CurrencyRef.value<br>```<br><br>```<br>invoices.CustomerRef.value = customers.Id<br>```<br><br>```<br>invoices.Line.SalesItemLineDetail.TaxCodeRef.value = customers.DefaultTaxCodeRef.value<br>```<br><br>```<br>invoices.TxnTaxDetail.TxnTaxCodeRef.value = customers.DefaultTaxCodeRef.value<br>```<br><br>```<br>invoices.SalesTermRef.value = customers.SalesTermRef.value<br>``` |
| [vendors](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendors) | ```<br>invoices.CurrencyRef.value = vendors.CurrencyRef.value<br>``` |
| [departments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#departments) | ```<br>invoices.DepartmentRef.value = departments.ParentRef.value<br>```<br><br>```<br>invoices.DepartmentRef.value = departments.Id<br>``` |
| [tax_codes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#tax-codes) | ```<br>invoices.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value = tax_codes.PurchaseTaxRateList.TaxRateDetail.TaxRateRef.value<br>```<br><br>```<br>invoices.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value = tax_codes.SalesTaxRateList.TaxRateDetail.TaxRateRef.value<br>``` |
| [tax_rates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#tax-rates) | ```<br>invoices.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value = tax_rates.Id<br>``` |
| [terms](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#terms) | ```<br>invoices.SalesTermRef.value = terms.Id<br>``` |

invoices table schema

| **AllowIPNPayment**<br><br><br>BOOLEAN |
| --- |
| **AllowOnlineACHPayment**<br><br><br>BOOLEAN |
| **AllowOnlineCreditCardPayment**<br><br><br>BOOLEAN |
| **AllowOnlinePayment**<br><br><br>BOOLEAN |
| **ApplyTaxAfterDiscount**<br><br><br>BOOLEAN |
| **Balance**<br><br><br>NUMBER |
| **BillAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **BillEmail**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>Address: STRING</li></ul> |
| **BillEmailBcc**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>Address: STRING</li></ul> |
| **BillEmailCc**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>Address: STRING</li></ul> |
| **ClassRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **CurrencyRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **CustomField**<br><br><br>ARRAY |
| **CustomerMemo**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>value: STRING</li></ul> |
| **CustomerRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DeliveryInfo**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>DeliveryTime: DATE-TIME</li><li>DeliveryType: STRING</li></ul> |
| **DepartmentRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **Deposit**<br><br><br>NUMBER |
| **DepositToAccountRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DocNumber**<br><br><br>STRING |
| **DueDate**<br><br><br>DATE-TIME |
| **EmailStatus**<br><br><br>STRING |
| **ExchangeRate**<br><br><br>NUMBER |
| **FreeFormAddress**<br><br><br>BOOLEAN |
| **GlobalTaxCalculation**<br><br><br>STRING |
| **HomeBalance**<br><br><br>NUMBER |
| **HomeTotalAmt**<br><br><br>NUMBER |
| **Id**<br><br><br>STRING |
| **InvoiceLink**<br><br><br>STRING |
| **Line**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>Amount: NUMBER</li><li>Description: STRING</li><li>DescriptionLineDetail: OBJECT, which is also a nested data structure.											<ul><li>ServiceDate: DATE-TIME</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>DetailType: STRING</li><li>DiscountLineDetail: OBJECT, which is also a nested data structure.											<ul><li>ClassRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountAccountRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountPercent: NUMBER</li><li>PercentBased: BOOLEAN</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>GroupLineDetail: OBJECT, which is also a nested data structure.											<ul><li>GroupItemRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Line: ARRAY, which is also a nested data structure.													<ul><li>Amount: NUMBER</li><li>Description: STRING</li><li>DetailType: STRING</li><li>Id: STRING</li><li>LineNum: NUMBER</li><li>SalesItemLineDetail: OBJECT, which is also a nested data structure.															<ul><li>ClassRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountAmt: NUMBER</li><li>DiscountRate: NUMBER</li><li>ItemAccountRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>ItemRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>MarkupInfo: OBJECT, which is also a nested data structure.																	<ul><li>MarkUpIncomeAccountRef: OBJECT, which is also a nested data structure.																			<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Percent: NUMBER</li><li>PriceLevelRef: OBJECT, which is also a nested data structure.																			<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>Qty: INTEGER</li><li>ServiceDate: DATE-TIME</li><li>TaxClassificationRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxCodeRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxInclusiveAmt: NUMBER</li><li>UnitPrice: NUMBER</li></ul></li></ul></li><li>Quantity: NUMBER</li></ul></li><li>Id: STRING</li><li>LineNum: INTEGER</li><li>LinkedTxn: ARRAY, which is also a nested data structure.											<ul><li>TxnId: STRING</li><li>TxnLineId: STRING</li><li>TxnType: STRING</li></ul></li><li>SalesItemLineDetail: OBJECT, which is also a nested data structure.											<ul><li>ClassRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountAmt: NUMBER</li><li>DiscountRate: NUMBER</li><li>ItemAccountRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>ItemRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>MarkupInfo: OBJECT, which is also a nested data structure.													<ul><li>MarkUpIncomeAccountRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Percent: NUMBER</li><li>PriceLevelRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>Qty: INTEGER</li><li>ServiceDate: DATE-TIME</li><li>TaxClassificationRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxInclusiveAmt: NUMBER</li><li>UnitPrice: NUMBER</li></ul></li><li>SubtotalLineDetail: OBJECT, which is also a nested data structure.											<ul><li>ItemRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li></ul> |
| **LinkedTxn**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>TxnId: STRING</li><li>TxnLineId: STRING</li><li>TxnType: STRING</li></ul> |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **PrintStatus**<br><br><br>STRING |
| **PrivateNote**<br><br><br>STRING |
| **RecurDataRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **SalesTermRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **ShipAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **ShipDate**<br><br><br>DATE-TIME |
| **ShipFromAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **ShipMethodRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **SyncToken**<br><br><br>STRING |
| **TaxExemptionRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **TotalAmt**<br><br><br>NUMBER |
| **TrackingNum**<br><br><br>STRING |
| **TransactionLocationType**<br><br><br>STRING |
| **TxnDate**<br><br><br>DATE-TIME |
| **TxnSource**<br><br><br>STRING |
| **TxnTaxDetail**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>TaxLine: ARRAY, which is also a nested data structure.											<ul><li>Amount: NUMBER</li><li>DetailType: STRING</li><li>TaxLineDetail: OBJECT, which is also a nested data structure.													<ul><li>NetAmountTaxable: NUMBER</li><li>OverrideDeltaAmount: NUMBER</li><li>PercentBased: BOOLEAN</li><li>TaxInclusiveAmount: NUMBER</li><li>TaxPercent: NUMBER</li><li>TaxRateRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li></ul></li><li>TotalTax: NUMBER</li><li>TxnTaxCodeRef: OBJECT, which is also a nested data structure.											<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul> |
| **domain**<br><br><br>STRING |
| **patternProperties**<br><br><br>OBJECT<br><br>Click to expand patternProperties<br><br><table></table> |

### items

The `items` table contains info about the items your company buys, sells, or re-sells. This includes all item types in QuickBooks, such as `Inventory`, `Group`, `Service` and `Noninventory`.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/item)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/item/#query-an-item "Opens in new tab: QuickBooks API method") |

items table foreign keys

| Join items with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#accounts) | ```<br>items.AssetAccountRef.value = accounts.Id<br>```<br><br>```<br>items.ExpenseAccountRef.value = accounts.Id<br>```<br><br>```<br>items.IncomeAccountRef.value = accounts.Id<br>```<br><br>```<br>items.AssetAccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = accounts.ParentRef.value<br>``` |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>items.AssetAccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>items.AssetAccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>items.AssetAccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>items.PrefVendorRef.value = bill_payments.VendorRef.value<br>``` |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>items.AssetAccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>items.AssetAccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>items.Id = bills.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>items.ParentRef.value = bills.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>items.PurchaseTaxCodeRef.value = bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>items.SalesTaxCodeRef.value = bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>items.PurchaseTaxCodeRef.value = bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>items.SalesTaxCodeRef.value = bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>items.PrefVendorRef.value = bills.VendorRef.value<br>``` |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>items.AssetAccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>items.ClassRef.value = budgets.BudgetDetail.ClassRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>items.AssetAccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>items.AssetAccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>items.AssetAccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>items.AssetAccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>items.AssetAccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>items.ClassRef.value = invoices.ClassRef.value<br>```<br><br>```<br>items.ClassRef.value = invoices.Line.SalesItemLineDetail.ClassRef.value<br>```<br><br>```<br>items.Id = invoices.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>items.ParentRef.value = invoices.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>items.PurchaseTaxCodeRef.value = invoices.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>items.SalesTaxCodeRef.value = invoices.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>items.PurchaseTaxCodeRef.value = invoices.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>items.SalesTaxCodeRef.value = invoices.TxnTaxDetail.TxnTaxCodeRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>items.AssetAccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>items.PurchaseTaxCodeRef.value = journal_entries.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>items.SalesTaxCodeRef.value = journal_entries.TxnTaxDetail.TxnTaxCodeRef.value<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>items.AssetAccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = payments.DepositToAccountRef.value<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>items.AssetAccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>items.ClassRef.value = purchase_orders.ClassRef.value<br>```<br><br>```<br>items.ClassRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>items.Id = purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>items.ParentRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>items.PurchaseTaxCodeRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>items.SalesTaxCodeRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>items.PrefVendorRef.value = purchase_orders.VendorRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>items.AssetAccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>items.AssetAccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>items.ClassRef.value = purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>items.Id = purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>items.ParentRef.value = purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>items.PurchaseTaxCodeRef.value = purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>items.SalesTaxCodeRef.value = purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>items.PurchaseTaxCodeRef.value = purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>items.SalesTaxCodeRef.value = purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>items.AssetAccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>items.ClassRef.value = refund_receipts.ClassRef.value<br>```<br><br>```<br>items.Id = refund_receipts.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>items.ParentRef.value = refund_receipts.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>items.PurchaseTaxCodeRef.value = refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>items.SalesTaxCodeRef.value = refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>items.AssetAccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>items.AssetAccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>items.ClassRef.value = sales_receipts.ClassRef.value<br>```<br><br>```<br>items.Id = sales_receipts.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>items.ParentRef.value = sales_receipts.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>items.PurchaseTaxCodeRef.value = sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>items.SalesTaxCodeRef.value = sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [transfers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#transfers) | ```<br>items.AssetAccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>items.AssetAccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = transfers.ToAccountRef.value<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>items.AssetAccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>items.AssetAccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>items.ExpenseAccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>items.IncomeAccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>items.ClassRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>items.PurchaseTaxCodeRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>items.SalesTaxCodeRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>items.PrefVendorRef.value = vendor_credits.VendorRef.value<br>``` |
| [classes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#classes) | ```<br>items.ClassRef.value = classes.Id<br>```<br><br>```<br>items.ClassRef.value = classes.ParentRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>items.ClassRef.value = credit_memos.ClassRef.value<br>```<br><br>```<br>items.Id = credit_memos.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>items.ParentRef.value = credit_memos.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>items.PurchaseTaxCodeRef.value = credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>items.SalesTaxCodeRef.value = credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>items.ClassRef.value = estimates.ClassRef.value<br>```<br><br>```<br>items.Id = estimates.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>items.ParentRef.value = estimates.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>items.PurchaseTaxCodeRef.value = estimates.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>items.SalesTaxCodeRef.value = estimates.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>items.PurchaseTaxCodeRef.value = estimates.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>items.SalesTaxCodeRef.value = estimates.TxnTaxDetail.TxnTaxCodeRef.value<br>``` |
| [time_activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#time-activities) | ```<br>items.ClassRef.value = time_activities.ClassRef.value<br>```<br><br>```<br>items.Id = time_activities.ItemRef.value<br>```<br><br>```<br>items.ParentRef.value = time_activities.ItemRef.value<br>```<br><br>```<br>items.PrefVendorRef.value = time_activities.VendorRef.value<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>items.PurchaseTaxCodeRef.value = customers.DefaultTaxCodeRef.value<br>```<br><br>```<br>items.SalesTaxCodeRef.value = customers.DefaultTaxCodeRef.value<br>``` |
| [vendors](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendors) | ```<br>items.PrefVendorRef.value = vendors.Id<br>``` |

items table schema

| **AbatementRate**<br><br><br>NUMBER |
| --- |
| **Active**<br><br><br>BOOLEAN |
| **AssetAccountRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **ClassRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **Description**<br><br><br>STRING |
| **ExpenseAccountRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **FullyQualifiedName**<br><br><br>STRING |
| **Id**<br><br><br>STRING |
| **IncomeAccountRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **InvStartDate**<br><br><br>DATE-TIME |
| **ItemCategoryType**<br><br><br>STRING |
| **Level**<br><br><br>INTEGER |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **Name**<br><br><br>STRING |
| **ParentRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **PrefVendorRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **PurchaseCost**<br><br><br>INTEGER, NUMBER |
| **PurchaseDesc**<br><br><br>STRING |
| **PurchaseTaxCodeRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **PurchaseTaxIncluded**<br><br><br>BOOLEAN |
| **QtyOnHand**<br><br><br>INTEGER |
| **ReorderPoint**<br><br><br>NUMBER |
| **ReverseChargeRate**<br><br><br>NUMBER |
| **SalesTaxCodeRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **SalesTaxIncluded**<br><br><br>BOOLEAN |
| **ServiceType**<br><br><br>STRING |
| **Sku**<br><br><br>STRING |
| **Source**<br><br><br>STRING |
| **SubItem**<br><br><br>BOOLEAN |
| **SyncToken**<br><br><br>STRING |
| **TaxClassificationRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **Taxable**<br><br><br>BOOLEAN |
| **TrackQtyOnHand**<br><br><br>BOOLEAN |
| **Type**<br><br><br>STRING |
| **UQCDisplayText**<br><br><br>STRING |
| **UQCId**<br><br><br>STRING |
| **UnitPrice**<br><br><br>NUMBER |
| **domain**<br><br><br>STRING |
| **patternProperties**<br><br><br>OBJECT<br><br>Click to expand patternProperties<br><br><table></table> |

### journal\_entries

The `journal_entries` table contains info about the journal entries in your QuickBooks instance. A journal entry is a transaction that:

* Contains a pair of distribution lines, including a debit and a credit
* Each distribution line has an account from the Chart of Accounts
* The total of the debit column equals the total of the credit column

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/journalentry)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/journalentry/#query-a-journalentry "Opens in new tab: QuickBooks API method") |

journal\_entries table foreign keys

| Join journal\_entries with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#accounts) | ```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = accounts.Id<br>```<br><br>```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>journal_entries.CurrencyRef.value = accounts.CurrencyRef.value<br>``` |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>journal_entries.CurrencyRef.value = bill_payments.CurrencyRef.value<br>```<br><br>```<br>journal_entries.Id = bill_payments.Line.LinkedTxn.TxnId<br>``` |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>journal_entries.CurrencyRef.value = bills.CurrencyRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TxnTaxCodeRef.value = bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TxnTaxCodeRef.value = bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>journal_entries.Id = bills.Id<br>``` |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = budgets.BudgetDetail.AccountRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>journal_entries.CurrencyRef.value = deposits.CurrencyRef.value<br>```<br><br>```<br>journal_entries.Id = deposits.Line.LinkedTxn.TxnId<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>journal_entries.CurrencyRef.value = invoices.CurrencyRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TxnTaxCodeRef.value = invoices.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TxnTaxCodeRef.value = invoices.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>journal_entries.TaxRateRef.value = invoices.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value = invoices.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TxnTaxCodeRef.value = items.PurchaseTaxCodeRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TxnTaxCodeRef.value = items.SalesTaxCodeRef.value<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>journal_entries.CurrencyRef.value = payments.CurrencyRef.value<br>```<br><br>```<br>journal_entries.Id = payments.Id<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>journal_entries.CurrencyRef.value = purchase_orders.CurrencyRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TxnTaxCodeRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>journal_entries.CurrencyRef.value = purchases.CurrencyRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TxnTaxCodeRef.value = purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TxnTaxCodeRef.value = purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>journal_entries.CurrencyRef.value = refund_receipts.CurrencyRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TxnTaxCodeRef.value = refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>journal_entries.Id = refund_receipts.Id<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>journal_entries.CurrencyRef.value = sales_receipts.CurrencyRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TxnTaxCodeRef.value = sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>journal_entries.Id = sales_receipts.Id<br>``` |
| [transfers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#transfers) | ```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>journal_entries.CurrencyRef.value = transfers.CurrencyRef.value<br>```<br><br>```<br>journal_entries.Id = transfers.Id<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>journal_entries.Line.JournalEntryLineDetail.AccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>journal_entries.CurrencyRef.value = vendor_credits.CurrencyRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TxnTaxCodeRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>journal_entries.Id = vendor_credits.Id<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>journal_entries.CurrencyRef.value = credit_memos.CurrencyRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TxnTaxCodeRef.value = credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>journal_entries.CurrencyRef.value = customers.CurrencyRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TxnTaxCodeRef.value = customers.DefaultTaxCodeRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>journal_entries.CurrencyRef.value = estimates.CurrencyRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TxnTaxCodeRef.value = estimates.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TxnTaxCodeRef.value = estimates.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>journal_entries.TaxRateRef.value = estimates.TxnTaxDetail.TaxLine.TaxLineDetail.TaxLine.TaxLineDetail.TaxRateRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value = estimates.TxnTaxDetail.TaxLine.TaxLineDetail.TaxLine.TaxLineDetail.TaxRateRef.value<br>``` |
| [vendors](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendors) | ```<br>journal_entries.CurrencyRef.value = vendors.CurrencyRef.value<br>``` |
| [tax_codes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#tax-codes) | ```<br>journal_entries.TaxRateRef.value = tax_codes.PurchaseTaxRateList.TaxRateDetail.TaxRateRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value = tax_codes.PurchaseTaxRateList.TaxRateDetail.TaxRateRef.value<br>```<br><br>```<br>journal_entries.TaxRateRef.value = tax_codes.SalesTaxRateList.TaxRateDetail.TaxRateRef.value<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value = tax_codes.SalesTaxRateList.TaxRateDetail.TaxRateRef.value<br>``` |
| [tax_rates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#tax-rates) | ```<br>journal_entries.TaxRateRef.value = tax_rates.Id<br>```<br><br>```<br>journal_entries.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value = tax_rates.Id<br>``` |

journal\_entries table schema

| **Adjustment**<br><br><br>BOOLEAN |
| --- |
| **CurrencyRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DocNumber**<br><br><br>STRING |
| **ExchangeRate**<br><br><br>NUMBER |
| **GlobalTaxCalculation**<br><br><br>STRING |
| **HomeTotalAmt**<br><br><br>NUMBER |
| **Id**<br><br><br>STRING |
| **JournalCodeRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **Line**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>Amount: NUMBER</li><li>Description: STRING</li><li>DescriptionLineDetail: OBJECT, which is also a nested data structure.											<ul><li>ServiceDate: DATE-TIME</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>DetailType: STRING</li><li>Id: STRING</li><li>JournalEntryLineDetail: OBJECT, which is also a nested data structure.											<ul><li>AccountRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>BillableStatus: STRING</li><li>ClassRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DepartmentRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Entity: OBJECT, which is also a nested data structure.													<ul><li>EntityRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Type: STRING</li></ul></li><li>JournalCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>PostingType: STRING</li><li>TaxAmount: NUMBER</li><li>TaxApplicableOn: STRING</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxInclusiveAmt: NUMBER</li></ul></li><li>LineNum: NUMBER</li></ul> |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **PrivateNote**<br><br><br>STRING |
| **RecurDataRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **SyncToken**<br><br><br>STRING |
| **TaxRateRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **TotalAmt**<br><br><br>NUMBER |
| **TransactionLocationType**<br><br><br>STRING |
| **TxnDate**<br><br><br>DATE-TIME |
| **TxnTaxDetail**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>TaxLine: ARRAY, which is also a nested data structure.											<ul><li>Amount: NUMBER</li><li>DetailType: STRING</li><li>TaxLineDetail: OBJECT, which is also a nested data structure.													<ul><li>NetAmountTaxable: NUMBER</li><li>OverrideDeltaAmount: NUMBER</li><li>PercentBased: BOOLEAN</li><li>TaxInclusiveAmount: NUMBER</li><li>TaxPercent: NUMBER</li><li>TaxRateRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li></ul></li><li>TotalTax: NUMBER</li><li>TxnTaxCodeRef: OBJECT, which is also a nested data structure.											<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul> |
| **domain**<br><br><br>STRING |

### payment\_methods

The `payment_methods` table contains info about the methods of payment your company receives for goods. **Note**: Both active and inactive payment methods are included in the data for this table.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/paymentmethod)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/paymentmethod/#query-a-paymentmethod "Opens in new tab: QuickBooks API method") |

payment\_methods table foreign keys

| Join payment\_methods with | on |
| --- | --- |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>payment_methods.Id = customers.PaymentMethodRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>payment_methods.Id = deposits.Line.DepositLineDetail.PaymentMethodRef.value<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>payment_methods.Id = payments.PaymentMethodRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>payment_methods.Id = purchases.PaymentMethodRef.value<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>payment_methods.Id = refund_receipts.PaymentMethodRef.value<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>payment_methods.Id = sales_receipts.PaymentMethodRef.value<br>``` |

payment\_methods table schema

| **Active**<br><br><br>BOOLEAN |
| --- |
| **Id**<br><br><br>STRING |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **Name**<br><br><br>STRING |
| **SyncToken**<br><br><br>STRING |
| **Type**<br><br><br>STRING |
| **domain**<br><br><br>STRING |

### payments

The `payments` table contains info about the payments recorded in your QuickBooks instance.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/payment)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/payment/#query-a-payment "Opens in new tab: QuickBooks API method") |

payments table foreign keys

| Join payments with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#accounts) | ```<br>payments.DepositToAccountRef.value = accounts.Id<br>```<br><br>```<br>payments.DepositToAccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>payments.CurrencyRef.value = accounts.CurrencyRef.value<br>``` |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>payments.DepositToAccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>payments.DepositToAccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>payments.DepositToAccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>payments.CurrencyRef.value = bill_payments.CurrencyRef.value<br>``` |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>payments.DepositToAccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>payments.DepositToAccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>payments.CurrencyRef.value = bills.CurrencyRef.value<br>```<br><br>```<br>payments.CustomerRef.value = bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>``` |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>payments.DepositToAccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>payments.CustomerRef.value = budgets.BudgetDetail.CustomerRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>payments.DepositToAccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>payments.DepositToAccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>payments.DepositToAccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>payments.CurrencyRef.value = deposits.CurrencyRef.value<br>```<br><br>```<br>payments.Id = deposits.Line.LinkedTxn.TxnId<br>```<br><br>```<br>payments.PaymentMethodRef.value = deposits.Line.DepositLineDetail.PaymentMethodRef.value<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>payments.DepositToAccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>payments.DepositToAccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>payments.CurrencyRef.value = invoices.CurrencyRef.value<br>```<br><br>```<br>payments.CustomerRef.value = invoices.CustomerRef.value<br>```<br><br>```<br>payments.Line.LinkedTxn.TxnId = invoices.Id<br>```<br><br>```<br>payments.Id = invoices.LinkedTxn.TxnId<br>```<br><br>```<br>payments.Line.LinkedTxn.TxnId = invoices.LinkedTxn.TxnId<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>payments.DepositToAccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>payments.DepositToAccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>payments.DepositToAccountRef.value = items.IncomeAccountRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>payments.DepositToAccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>payments.CurrencyRef.value = journal_entries.CurrencyRef.value<br>```<br><br>```<br>payments.Id = journal_entries.Id<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>payments.DepositToAccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>payments.CurrencyRef.value = purchase_orders.CurrencyRef.value<br>```<br><br>```<br>payments.CustomerRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>payments.DepositToAccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>payments.DepositToAccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>payments.CurrencyRef.value = purchases.CurrencyRef.value<br>```<br><br>```<br>payments.CustomerRef.value = purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>payments.PaymentMethodRef.value = purchases.PaymentMethodRef.value<br>```<br><br>```<br>payments.Line.LinkedTxn.TxnId = purchases.Id<br>```<br><br>```<br>payments.Id = purchases.Id<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>payments.DepositToAccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>payments.CurrencyRef.value = refund_receipts.CurrencyRef.value<br>```<br><br>```<br>payments.CustomerRef.value = refund_receipts.CustomerRef.value<br>```<br><br>```<br>payments.PaymentMethodRef.value = refund_receipts.PaymentMethodRef.value<br>```<br><br>```<br>payments.Id = refund_receipts.Id<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>payments.DepositToAccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>payments.DepositToAccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>payments.CurrencyRef.value = sales_receipts.CurrencyRef.value<br>```<br><br>```<br>payments.CustomerRef.value = sales_receipts.CustomerRef.value<br>```<br><br>```<br>payments.PaymentMethodRef.value = sales_receipts.PaymentMethodRef.value<br>```<br><br>```<br>payments.Id = sales_receipts.Id<br>``` |
| [transfers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#transfers) | ```<br>payments.DepositToAccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>payments.DepositToAccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>payments.CurrencyRef.value = transfers.CurrencyRef.value<br>```<br><br>```<br>payments.Id = transfers.Id<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>payments.DepositToAccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>payments.DepositToAccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>payments.CurrencyRef.value = vendor_credits.CurrencyRef.value<br>```<br><br>```<br>payments.CustomerRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>payments.Line.LinkedTxn.TxnId = credit_memos.Id<br>```<br><br>```<br>payments.CurrencyRef.value = credit_memos.CurrencyRef.value<br>```<br><br>```<br>payments.CustomerRef.value = credit_memos.CustomerRef.value<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>payments.CurrencyRef.value = customers.CurrencyRef.value<br>```<br><br>```<br>payments.CustomerRef.value = customers.Id<br>```<br><br>```<br>payments.PaymentMethodRef.value = customers.PaymentMethodRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>payments.CurrencyRef.value = estimates.CurrencyRef.value<br>```<br><br>```<br>payments.CustomerRef.value = estimates.CustomerRef.value<br>```<br><br>```<br>payments.Line.LinkedTxn.TxnId = estimates.LinkedTxn.TxnId<br>```<br><br>```<br>payments.Id = estimates.Id<br>``` |
| [vendors](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendors) | ```<br>payments.CurrencyRef.value = vendors.CurrencyRef.value<br>``` |
| [payment_methods](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payment-methods) | ```<br>payments.PaymentMethodRef.value = payment_methods.Id<br>``` |
| [time_activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#time-activities) | ```<br>payments.Id = time_activities.Id<br>``` |

payments table schema

| **ARAccountRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| --- |
| **CreditCardPayment**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreditChargeInfo: OBJECT, which is also a nested data structure.											<ul><li>Amount: NUMBER</li><li>BillAddrStreet: STRING</li><li>CcExpiryMonth: INTEGER</li><li>CcExpiryYear: INTEGER</li><li>NameOnAcct: STRING</li><li>PostalCode: STRING</li><li>ProcessPayment: BOOLEAN</li><li>Type: STRING</li></ul></li><li>CreditChargeResponse: OBJECT, which is also a nested data structure.											<ul><li>AuthCode: STRING</li><li>CCTransId: STRING</li><li>Status: STRING</li><li>TxnAuthorizationTime: DATE-TIME</li></ul></li></ul> |
| **CurrencyRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **CustomerRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DepositToAccountRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **ExchangeRate**<br><br><br>NUMBER |
| **Id**<br><br><br>STRING |
| **Line**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>Amount: NUMBER</li><li>LineEx: OBJECT, which is also a nested data structure.											<ul><li>any: ARRAY, which is also a nested data structure.													<ul><li>declaredType: STRING</li><li>globalScope: BOOLEAN</li><li>name: STRING</li><li>nil: BOOLEAN</li><li>scope: STRING</li><li>typeSubstituted: BOOLEAN</li><li>value: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li></ul></li><li>LinkedTxn: ARRAY, which is also a nested data structure.											<ul><li>TxnId: STRING</li><li>TxnLineId: STRING</li><li>TxnType: STRING</li></ul></li></ul> |
| **LinkedTxn**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>TxnId: STRING</li><li>TxnLineId: STRING</li><li>TxnType: STRING</li></ul> |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **PaymentMethodRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **PaymentRefNum**<br><br><br>STRING |
| **PrivateNote**<br><br><br>STRING |
| **ProcessPayment**<br><br><br>BOOLEAN |
| **SyncToken**<br><br><br>STRING |
| **TaxExemptionRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **TotalAmt**<br><br><br>NUMBER |
| **TransactionLocationType**<br><br><br>STRING |
| **TxnDate**<br><br><br>DATE-TIME |
| **TxnSource**<br><br><br>STRING |
| **UnappliedAmt**<br><br><br>NUMBER |
| **domain**<br><br><br>STRING |

### profit\_loss\_report

The `profit_loss_report` table contains reports about profit and loss recorded in your QuickBooks instance.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | ReportDate |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/most-commonly-used/profitandloss)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/most-commonly-used/profitandloss#query-a-report "Opens in new tab: QuickBooks API method") |

profit\_loss\_report table schema

| **AccountingMethod**<br><br><br>STRING |
| --- |
| **Details**<br><br><br>OBJECT |
| **ReportDate**<br><br><br>DATE-TIME |

### purchase\_orders

The `purchase_orders` table contains info about purchase orders in your QuickBooks instance. A purchase order is a request to purchase goods or services from a third party.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/purchaseorder)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/purchaseorder/#query-a-purchaseorder "Opens in new tab: QuickBooks API method") |

purchase\_orders table foreign keys

| Join purchase\_orders with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#accounts) | ```<br>purchase_orders.APAccountRef.value = accounts.Id<br>```<br><br>```<br>purchase_orders.APAccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>purchase_orders.CurrencyRef.value = accounts.CurrencyRef.value<br>``` |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>purchase_orders.APAccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>purchase_orders.APAccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>purchase_orders.APAccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>purchase_orders.LinkedTxn.TxnId = bill_payments.Line.LinkedTxn.TxnId<br>```<br><br>```<br>purchase_orders.CurrencyRef.value = bill_payments.CurrencyRef.value<br>```<br><br>```<br>purchase_orders.DepartmentRef.value = bill_payments.DepartmentRef.value<br>```<br><br>```<br>purchase_orders.Id = bill_payments.Id<br>```<br><br>```<br>purchase_orders.VendorRef.value = bill_payments.VendorRef.value<br>``` |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>purchase_orders.APAccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>purchase_orders.APAccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>purchase_orders.LinkedTxn.TxnId = bills.Id<br>```<br><br>```<br>purchase_orders.CurrencyRef.value = bills.CurrencyRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value = bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>purchase_orders.DepartmentRef.value = bills.DepartmentRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value = bills.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>purchase_orders.Id = bills.LinkedTxn.TxnId<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchase_orders.SalesTermRef.value = bills.SalesTermRef.value<br>```<br><br>```<br>purchase_orders.VendorRef.value = bills.VendorRef.value<br>``` |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>purchase_orders.APAccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>purchase_orders.ClassRef.value = budgets.BudgetDetail.ClassRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value = budgets.BudgetDetail.ClassRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value = budgets.BudgetDetail.CustomerRef.value<br>```<br><br>```<br>purchase_orders.DepartmentRef.value = budgets.BudgetDetail.DepartmentRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>purchase_orders.APAccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>purchase_orders.APAccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>purchase_orders.APAccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>purchase_orders.CurrencyRef.value = deposits.CurrencyRef.value<br>```<br><br>```<br>purchase_orders.DepartmentRef.value = deposits.DepartmentRef.value<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>purchase_orders.APAccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>purchase_orders.APAccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>purchase_orders.ClassRef.value = invoices.ClassRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value = invoices.ClassRef.value<br>```<br><br>```<br>purchase_orders.ClassRef.value = invoices.Line.SalesItemLineDetail.ClassRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value = invoices.Line.SalesItemLineDetail.ClassRef.value<br>```<br><br>```<br>purchase_orders.CurrencyRef.value = invoices.CurrencyRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value = invoices.CustomerRef.value<br>```<br><br>```<br>purchase_orders.DepartmentRef.value = invoices.DepartmentRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value = invoices.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = invoices.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = invoices.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>purchase_orders.SalesTermRef.value = invoices.SalesTermRef.value<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>purchase_orders.APAccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>purchase_orders.APAccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>purchase_orders.APAccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>purchase_orders.ClassRef.value = items.ClassRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value = items.ClassRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value = items.Id<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value = items.ParentRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = items.PurchaseTaxCodeRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = items.SalesTaxCodeRef.value<br>```<br><br>```<br>purchase_orders.VendorRef.value = items.PrefVendorRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>purchase_orders.APAccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>purchase_orders.CurrencyRef.value = journal_entries.CurrencyRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = journal_entries.TxnTaxDetail.TxnTaxCodeRef.value<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>purchase_orders.APAccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>purchase_orders.CurrencyRef.value = payments.CurrencyRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value = payments.CustomerRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>purchase_orders.APAccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>purchase_orders.APAccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>purchase_orders.ClassRef.value = purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value = purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>purchase_orders.CurrencyRef.value = purchases.CurrencyRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value = purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>purchase_orders.DepartmentRef.value = purchases.DepartmentRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value = purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>purchase_orders.APAccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>purchase_orders.ClassRef.value = refund_receipts.ClassRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value = refund_receipts.ClassRef.value<br>```<br><br>```<br>purchase_orders.CurrencyRef.value = refund_receipts.CurrencyRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value = refund_receipts.CustomerRef.value<br>```<br><br>```<br>purchase_orders.DepartmentRef.value = refund_receipts.DepartmentRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value = refund_receipts.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>purchase_orders.APAccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>purchase_orders.APAccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>purchase_orders.ClassRef.value = sales_receipts.ClassRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value = sales_receipts.ClassRef.value<br>```<br><br>```<br>purchase_orders.CurrencyRef.value = sales_receipts.CurrencyRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value = sales_receipts.CustomerRef.value<br>```<br><br>```<br>purchase_orders.DepartmentRef.value = sales_receipts.DepartmentRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value = sales_receipts.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [transfers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#transfers) | ```<br>purchase_orders.APAccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>purchase_orders.APAccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>purchase_orders.CurrencyRef.value = transfers.CurrencyRef.value<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>purchase_orders.APAccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>purchase_orders.APAccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>purchase_orders.ClassRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>purchase_orders.CurrencyRef.value = vendor_credits.CurrencyRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>purchase_orders.DepartmentRef.value = vendor_credits.DepartmentRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchase_orders.VendorRef.value = vendor_credits.VendorRef.value<br>``` |
| [classes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#classes) | ```<br>purchase_orders.ClassRef.value = classes.Id<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value = classes.Id<br>```<br><br>```<br>purchase_orders.ClassRef.value = classes.ParentRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value = classes.ParentRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>purchase_orders.ClassRef.value = credit_memos.ClassRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value = credit_memos.ClassRef.value<br>```<br><br>```<br>purchase_orders.CurrencyRef.value = credit_memos.CurrencyRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value = credit_memos.CustomerRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value = credit_memos.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchase_orders.SalesTermRef.value = credit_memos.SalesTermRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>purchase_orders.ClassRef.value = estimates.ClassRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value = estimates.ClassRef.value<br>```<br><br>```<br>purchase_orders.CurrencyRef.value = estimates.CurrencyRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value = estimates.CustomerRef.value<br>```<br><br>```<br>purchase_orders.DepartmentRef.value = estimates.DepartmentRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value = estimates.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = estimates.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = estimates.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>purchase_orders.SalesTermRef.value = estimates.SalesTermRef.value<br>``` |
| [time_activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#time-activities) | ```<br>purchase_orders.ClassRef.value = time_activities.ClassRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value = time_activities.ClassRef.value<br>```<br><br>```<br>purchase_orders.DepartmentRef.value = time_activities.DepartmentRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value = time_activities.ItemRef.value<br>```<br><br>```<br>purchase_orders.VendorRef.value = time_activities.VendorRef.value<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>purchase_orders.CurrencyRef.value = customers.CurrencyRef.value<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value = customers.Id<br>```<br><br>```<br>purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = customers.DefaultTaxCodeRef.value<br>```<br><br>```<br>purchase_orders.SalesTermRef.value = customers.SalesTermRef.value<br>``` |
| [vendors](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendors) | ```<br>purchase_orders.CurrencyRef.value = vendors.CurrencyRef.value<br>```<br><br>```<br>purchase_orders.VendorRef.value = vendors.Id<br>``` |
| [departments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#departments) | ```<br>purchase_orders.DepartmentRef.value = departments.ParentRef.value<br>```<br><br>```<br>purchase_orders.DepartmentRef.value = departments.Id<br>``` |
| [terms](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#terms) | ```<br>purchase_orders.SalesTermRef.value = terms.Id<br>``` |

purchase\_orders table schema

| **APAccountRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| --- |
| **ClassRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **CurrencyRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **CustomField**<br><br><br>ARRAY |
| **DepartmentRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DocNumber**<br><br><br>STRING |
| **DueDate**<br><br><br>DATE-TIME |
| **EmailStatus**<br><br><br>STRING |
| **ExchangeRate**<br><br><br>NUMBER |
| **GlobalTaxCalculation**<br><br><br>STRING |
| **Id**<br><br><br>STRING |
| **Line**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>AccountBasedExpenseLineDetail: OBJECT, which is also a nested data structure.											<ul><li>AccountRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>BillableStatus: STRING</li><li>ClassRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>CustomerRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>MarkupInfo: OBJECT, which is also a nested data structure.													<ul><li>MarkUpIncomeAccountRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Percent: NUMBER</li><li>PriceLevelRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>TaxAmount: NUMBER</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxInclusiveAmt: NUMBER</li></ul></li><li>Amount: NUMBER</li><li>Description: STRING</li><li>DetailType: STRING</li><li>Id: STRING</li><li>ItemBasedExpenseLineDetail: OBJECT, which is also a nested data structure.											<ul><li>BillableStatus: STRING</li><li>ClassRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>CustomerRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>ItemRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>MarkupInfo: OBJECT, which is also a nested data structure.													<ul><li>MarkUpIncomeAccountRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Percent: NUMBER</li><li>PriceLevelRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>PriceLevelRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Qty: INTEGER</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxInclusiveAmt: NUMBER</li><li>UnitPrice: NUMBER</li></ul></li><li>LineNum: INTEGER</li><li>LinkedTxn: ARRAY, which is also a nested data structure.											<ul><li>TxnId: STRING</li><li>TxnLineId: STRING</li><li>TxnType: STRING</li></ul></li></ul> |
| **LinkedTxn**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>TxnId: STRING</li><li>TxnLineId: STRING</li><li>TxnType: STRING</li></ul> |
| **Memo**<br><br><br>STRING |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **POEmail**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>Address: STRING</li></ul> |
| **POStatus**<br><br><br>STRING |
| **PrivateNote**<br><br><br>STRING |
| **RecurDataRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **SalesTermRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **ShipAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **ShipMethodRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **ShipTo**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **SyncToken**<br><br><br>STRING |
| **TotalAmt**<br><br><br>NUMBER |
| **TransactionLocationType**<br><br><br>STRING |
| **TxnDate**<br><br><br>DATE-TIME |
| **TxnTaxDetail**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>TaxLine: ARRAY, which is also a nested data structure.											<ul><li>Amount: NUMBER</li><li>DetailType: STRING</li><li>TaxLineDetail: OBJECT, which is also a nested data structure.													<ul><li>NetAmountTaxable: NUMBER</li><li>OverrideDeltaAmount: NUMBER</li><li>PercentBased: BOOLEAN</li><li>TaxInclusiveAmount: NUMBER</li><li>TaxPercent: NUMBER</li><li>TaxRateRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li></ul></li><li>TotalTax: NUMBER</li><li>TxnTaxCodeRef: OBJECT, which is also a nested data structure.											<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul> |
| **VendorAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **VendorRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **domain**<br><br><br>STRING |

### purchases

The `purchases` table contains info about the purchases recorded in your QuickBooks instance. This table includes all purchase types: `Cash`, `Check`, and `CreditCard`.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/purchase)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/purchase/#query-a-purchase "Opens in new tab: QuickBooks API method") |

purchases table foreign keys

| Join purchases with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#accounts) | ```<br>purchases.AccountRef.value = accounts.Id<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = accounts.Id<br>```<br><br>```<br>purchases.AccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>purchases.CurrencyRef.value = accounts.CurrencyRef.value<br>``` |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>purchases.AccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>purchases.AccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>purchases.AccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>purchases.CurrencyRef.value = bill_payments.CurrencyRef.value<br>```<br><br>```<br>purchases.DepartmentRef.value = bill_payments.DepartmentRef.value<br>``` |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>purchases.AccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>purchases.AccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>purchases.CurrencyRef.value = bills.CurrencyRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value = bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>purchases.DepartmentRef.value = bills.DepartmentRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value = bills.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>purchases.AccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value = budgets.BudgetDetail.ClassRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value = budgets.BudgetDetail.CustomerRef.value<br>```<br><br>```<br>purchases.DepartmentRef.value = budgets.BudgetDetail.DepartmentRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>purchases.AccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>purchases.AccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>purchases.AccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>purchases.CurrencyRef.value = deposits.CurrencyRef.value<br>```<br><br>```<br>purchases.DepartmentRef.value = deposits.DepartmentRef.value<br>```<br><br>```<br>purchases.PaymentMethodRef.value = deposits.Line.DepositLineDetail.PaymentMethodRef.value<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>purchases.AccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>purchases.AccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value = invoices.ClassRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value = invoices.Line.SalesItemLineDetail.ClassRef.value<br>```<br><br>```<br>purchases.CurrencyRef.value = invoices.CurrencyRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value = invoices.CustomerRef.value<br>```<br><br>```<br>purchases.DepartmentRef.value = invoices.DepartmentRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value = invoices.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>purchases.Id = invoices.LinkedTxn.TxnId<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = invoices.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = invoices.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = invoices.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = invoices.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>purchases.Id = invoices.Id<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>purchases.AccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>purchases.AccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>purchases.AccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value = items.ClassRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value = items.Id<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value = items.ParentRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = items.PurchaseTaxCodeRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = items.PurchaseTaxCodeRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = items.SalesTaxCodeRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = items.SalesTaxCodeRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>purchases.AccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>purchases.CurrencyRef.value = journal_entries.CurrencyRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = journal_entries.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = journal_entries.TxnTaxDetail.TxnTaxCodeRef.value<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>purchases.AccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>purchases.CurrencyRef.value = payments.CurrencyRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value = payments.CustomerRef.value<br>```<br><br>```<br>purchases.PaymentMethodRef.value = payments.PaymentMethodRef.value<br>```<br><br>```<br>purchases.Id = payments.Line.LinkedTxn.TxnId<br>```<br><br>```<br>purchases.Id = payments.Id<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>purchases.AccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value = purchase_orders.ClassRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>purchases.CurrencyRef.value = purchase_orders.CurrencyRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>purchases.DepartmentRef.value = purchase_orders.DepartmentRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>purchases.AccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value = refund_receipts.ClassRef.value<br>```<br><br>```<br>purchases.CurrencyRef.value = refund_receipts.CurrencyRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value = refund_receipts.CustomerRef.value<br>```<br><br>```<br>purchases.DepartmentRef.value = refund_receipts.DepartmentRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value = refund_receipts.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>purchases.PaymentMethodRef.value = refund_receipts.PaymentMethodRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>purchases.AccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>purchases.AccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value = sales_receipts.ClassRef.value<br>```<br><br>```<br>purchases.CurrencyRef.value = sales_receipts.CurrencyRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value = sales_receipts.CustomerRef.value<br>```<br><br>```<br>purchases.DepartmentRef.value = sales_receipts.DepartmentRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value = sales_receipts.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>purchases.PaymentMethodRef.value = sales_receipts.PaymentMethodRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [transfers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#transfers) | ```<br>purchases.AccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>purchases.AccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>purchases.CurrencyRef.value = transfers.CurrencyRef.value<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>purchases.AccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>purchases.AccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>purchases.CurrencyRef.value = vendor_credits.CurrencyRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>purchases.DepartmentRef.value = vendor_credits.DepartmentRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [classes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#classes) | ```<br>purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value = classes.Id<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value = classes.ParentRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value = credit_memos.ClassRef.value<br>```<br><br>```<br>purchases.CurrencyRef.value = credit_memos.CurrencyRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value = credit_memos.CustomerRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value = credit_memos.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchases.Id = credit_memos.Id<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value = estimates.ClassRef.value<br>```<br><br>```<br>purchases.CurrencyRef.value = estimates.CurrencyRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value = estimates.CustomerRef.value<br>```<br><br>```<br>purchases.DepartmentRef.value = estimates.DepartmentRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value = estimates.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = estimates.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = estimates.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = estimates.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = estimates.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>purchases.Id = estimates.Id<br>``` |
| [time_activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#time-activities) | ```<br>purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value = time_activities.ClassRef.value<br>```<br><br>```<br>purchases.DepartmentRef.value = time_activities.DepartmentRef.value<br>```<br><br>```<br>purchases.EntityRef.value = time_activities.EmployeeRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value = time_activities.ItemRef.value<br>```<br><br>```<br>purchases.Id = time_activities.Id<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>purchases.CurrencyRef.value = customers.CurrencyRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value = customers.Id<br>```<br><br>```<br>purchases.PaymentMethodRef.value = customers.PaymentMethodRef.value<br>```<br><br>```<br>purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = customers.DefaultTaxCodeRef.value<br>```<br><br>```<br>purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value = customers.DefaultTaxCodeRef.value<br>``` |
| [vendors](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendors) | ```<br>purchases.CurrencyRef.value = vendors.CurrencyRef.value<br>``` |
| [departments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#departments) | ```<br>purchases.DepartmentRef.value = departments.ParentRef.value<br>```<br><br>```<br>purchases.DepartmentRef.value = departments.Id<br>``` |
| [employees](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#employees) | ```<br>purchases.EntityRef.value = employees.Id<br>``` |
| [payment_methods](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payment-methods) | ```<br>purchases.PaymentMethodRef.value = payment_methods.Id<br>``` |

purchases table schema

| **AccountRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| --- |
| **Credit**<br><br><br>BOOLEAN |
| **CurrencyRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DepartmentRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DocNumber**<br><br><br>STRING |
| **EntityRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>type: STRING</li><li>value: STRING</li></ul> |
| **ExchangeRate**<br><br><br>NUMBER |
| **GlobalTaxCalculation**<br><br><br>STRING |
| **Id**<br><br><br>STRING |
| **IncludeInAnnualTPAR**<br><br><br>BOOLEAN |
| **Line**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>AccountBasedExpenseLineDetail: OBJECT, which is also a nested data structure.											<ul><li>AccountRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>BillableStatus: STRING</li><li>ClassRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>CustomerRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>MarkupInfo: OBJECT, which is also a nested data structure.													<ul><li>MarkUpIncomeAccountRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Percent: NUMBER</li><li>PriceLevelRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>TaxAmount: NUMBER</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxInclusiveAmt: NUMBER</li></ul></li><li>Amount: NUMBER</li><li>Description: STRING</li><li>DetailType: STRING</li><li>Id: STRING</li><li>ItemBasedExpenseLineDetail: OBJECT, which is also a nested data structure.											<ul><li>BillableStatus: STRING</li><li>ClassRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>CustomerRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>ItemRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>MarkupInfo: OBJECT, which is also a nested data structure.													<ul><li>MarkUpIncomeAccountRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Percent: NUMBER</li><li>PriceLevelRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>PriceLevelRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Qty: INTEGER</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxInclusiveAmt: NUMBER</li><li>UnitPrice: NUMBER</li></ul></li><li>LineNum: INTEGER</li><li>LinkedTxn: ARRAY, which is also a nested data structure.											<ul><li>TxnId: STRING</li><li>TxnLineId: STRING</li><li>TxnType: STRING</li></ul></li></ul> |
| **LinkedTxn**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>TxnId: STRING</li><li>TxnLineId: STRING</li><li>TxnType: STRING</li></ul> |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **PaymentMethodRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **PaymentType**<br><br><br>STRING |
| **PrintStatus**<br><br><br>STRING |
| **PrivateNote**<br><br><br>STRING |
| **PurchaseEx**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>any: ARRAY, which is also a nested data structure.											<ul><li>declaredType: STRING</li><li>globalScope: BOOLEAN</li><li>name: STRING</li><li>nil: BOOLEAN</li><li>scope: STRING</li><li>typeSubstituted: BOOLEAN</li><li>value: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li></ul> |
| **RecurDataRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **RemitToAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **SyncToken**<br><br><br>STRING |
| **TotalAmt**<br><br><br>NUMBER |
| **TransactionLocationType**<br><br><br>STRING |
| **TxnDate**<br><br><br>DATE-TIME |
| **TxnSource**<br><br><br>STRING |
| **TxnTaxDetail**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>TaxLine: ARRAY, which is also a nested data structure.											<ul><li>Amount: NUMBER</li><li>DetailType: STRING</li><li>TaxLineDetail: OBJECT, which is also a nested data structure.													<ul><li>NetAmountTaxable: NUMBER</li><li>OverrideDeltaAmount: NUMBER</li><li>PercentBased: BOOLEAN</li><li>TaxInclusiveAmount: NUMBER</li><li>TaxPercent: NUMBER</li><li>TaxRateRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li></ul></li><li>TotalTax: NUMBER</li><li>TxnTaxCodeRef: OBJECT, which is also a nested data structure.											<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul> |
| **domain**<br><br><br>STRING |
| **patternProperties**<br><br><br>OBJECT<br><br>Click to expand patternProperties<br><br><table></table> |

### refund\_receipts

The `refund_receipts` table contains info about customer refunds recorded in your QuickBooks instance.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/refundreceipt)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/refundreceipt/#query-a-refundreceipt "Opens in new tab: QuickBooks API method") |

refund\_receipts table foreign keys

| Join refund\_receipts with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#accounts) | ```<br>refund_receipts.DepositToAccountRef.value = accounts.Id<br>```<br><br>```<br>refund_receipts.DepositToAccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>refund_receipts.CurrencyRef.value = accounts.CurrencyRef.value<br>``` |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>refund_receipts.DepositToAccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>refund_receipts.DepositToAccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>refund_receipts.DepositToAccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>refund_receipts.CurrencyRef.value = bill_payments.CurrencyRef.value<br>```<br><br>```<br>refund_receipts.DepartmentRef.value = bill_payments.DepartmentRef.value<br>``` |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>refund_receipts.DepositToAccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>refund_receipts.DepositToAccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>refund_receipts.CurrencyRef.value = bills.CurrencyRef.value<br>```<br><br>```<br>refund_receipts.CustomerRef.value = bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>refund_receipts.DepartmentRef.value = bills.DepartmentRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.ItemRef.value = bills.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>refund_receipts.DepositToAccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>refund_receipts.ClassRef.value = budgets.BudgetDetail.ClassRef.value<br>```<br><br>```<br>refund_receipts.CustomerRef.value = budgets.BudgetDetail.CustomerRef.value<br>```<br><br>```<br>refund_receipts.DepartmentRef.value = budgets.BudgetDetail.DepartmentRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>refund_receipts.DepositToAccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>refund_receipts.DepositToAccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>refund_receipts.DepositToAccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>refund_receipts.CurrencyRef.value = deposits.CurrencyRef.value<br>```<br><br>```<br>refund_receipts.DepartmentRef.value = deposits.DepartmentRef.value<br>```<br><br>```<br>refund_receipts.PaymentMethodRef.value = deposits.Line.DepositLineDetail.PaymentMethodRef.value<br>```<br><br>```<br>refund_receipts.Id = deposits.Line.LinkedTxn.TxnId<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>refund_receipts.DepositToAccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>refund_receipts.DepositToAccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>refund_receipts.ClassRef.value = invoices.ClassRef.value<br>```<br><br>```<br>refund_receipts.ClassRef.value = invoices.Line.SalesItemLineDetail.ClassRef.value<br>```<br><br>```<br>refund_receipts.CurrencyRef.value = invoices.CurrencyRef.value<br>```<br><br>```<br>refund_receipts.CustomerRef.value = invoices.CustomerRef.value<br>```<br><br>```<br>refund_receipts.DepartmentRef.value = invoices.DepartmentRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.ItemRef.value = invoices.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = invoices.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = invoices.TxnTaxDetail.TxnTaxCodeRef.value<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>refund_receipts.DepositToAccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>refund_receipts.DepositToAccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>refund_receipts.DepositToAccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>refund_receipts.ClassRef.value = items.ClassRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.ItemRef.value = items.Id<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.ItemRef.value = items.ParentRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = items.PurchaseTaxCodeRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = items.SalesTaxCodeRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>refund_receipts.DepositToAccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>refund_receipts.CurrencyRef.value = journal_entries.CurrencyRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = journal_entries.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>refund_receipts.Id = journal_entries.Id<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>refund_receipts.DepositToAccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>refund_receipts.CurrencyRef.value = payments.CurrencyRef.value<br>```<br><br>```<br>refund_receipts.CustomerRef.value = payments.CustomerRef.value<br>```<br><br>```<br>refund_receipts.PaymentMethodRef.value = payments.PaymentMethodRef.value<br>```<br><br>```<br>refund_receipts.Id = payments.Id<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>refund_receipts.DepositToAccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>refund_receipts.ClassRef.value = purchase_orders.ClassRef.value<br>```<br><br>```<br>refund_receipts.ClassRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>refund_receipts.CurrencyRef.value = purchase_orders.CurrencyRef.value<br>```<br><br>```<br>refund_receipts.CustomerRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>refund_receipts.DepartmentRef.value = purchase_orders.DepartmentRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.ItemRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>refund_receipts.DepositToAccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>refund_receipts.DepositToAccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>refund_receipts.ClassRef.value = purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>refund_receipts.CurrencyRef.value = purchases.CurrencyRef.value<br>```<br><br>```<br>refund_receipts.CustomerRef.value = purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>refund_receipts.DepartmentRef.value = purchases.DepartmentRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.ItemRef.value = purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>refund_receipts.PaymentMethodRef.value = purchases.PaymentMethodRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>refund_receipts.DepositToAccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>refund_receipts.DepositToAccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>refund_receipts.ClassRef.value = sales_receipts.ClassRef.value<br>```<br><br>```<br>refund_receipts.CurrencyRef.value = sales_receipts.CurrencyRef.value<br>```<br><br>```<br>refund_receipts.CustomerRef.value = sales_receipts.CustomerRef.value<br>```<br><br>```<br>refund_receipts.DepartmentRef.value = sales_receipts.DepartmentRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.ItemRef.value = sales_receipts.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>refund_receipts.PaymentMethodRef.value = sales_receipts.PaymentMethodRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>refund_receipts.Id = sales_receipts.Id<br>``` |
| [transfers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#transfers) | ```<br>refund_receipts.DepositToAccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>refund_receipts.DepositToAccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>refund_receipts.CurrencyRef.value = transfers.CurrencyRef.value<br>```<br><br>```<br>refund_receipts.Id = transfers.Id<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>refund_receipts.DepositToAccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>refund_receipts.DepositToAccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>refund_receipts.ClassRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>refund_receipts.CurrencyRef.value = vendor_credits.CurrencyRef.value<br>```<br><br>```<br>refund_receipts.CustomerRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>refund_receipts.DepartmentRef.value = vendor_credits.DepartmentRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [classes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#classes) | ```<br>refund_receipts.ClassRef.value = classes.Id<br>```<br><br>```<br>refund_receipts.ClassRef.value = classes.ParentRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>refund_receipts.ClassRef.value = credit_memos.ClassRef.value<br>```<br><br>```<br>refund_receipts.CurrencyRef.value = credit_memos.CurrencyRef.value<br>```<br><br>```<br>refund_receipts.CustomerRef.value = credit_memos.CustomerRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.ItemRef.value = credit_memos.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>refund_receipts.ClassRef.value = estimates.ClassRef.value<br>```<br><br>```<br>refund_receipts.CurrencyRef.value = estimates.CurrencyRef.value<br>```<br><br>```<br>refund_receipts.CustomerRef.value = estimates.CustomerRef.value<br>```<br><br>```<br>refund_receipts.DepartmentRef.value = estimates.DepartmentRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.ItemRef.value = estimates.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = estimates.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = estimates.TxnTaxDetail.TxnTaxCodeRef.value<br>``` |
| [time_activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#time-activities) | ```<br>refund_receipts.ClassRef.value = time_activities.ClassRef.value<br>```<br><br>```<br>refund_receipts.DepartmentRef.value = time_activities.DepartmentRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.ItemRef.value = time_activities.ItemRef.value<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>refund_receipts.CurrencyRef.value = customers.CurrencyRef.value<br>```<br><br>```<br>refund_receipts.CustomerRef.value = customers.Id<br>```<br><br>```<br>refund_receipts.PaymentMethodRef.value = customers.PaymentMethodRef.value<br>```<br><br>```<br>refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = customers.DefaultTaxCodeRef.value<br>``` |
| [vendors](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendors) | ```<br>refund_receipts.CurrencyRef.value = vendors.CurrencyRef.value<br>``` |
| [departments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#departments) | ```<br>refund_receipts.DepartmentRef.value = departments.ParentRef.value<br>```<br><br>```<br>refund_receipts.DepartmentRef.value = departments.Id<br>``` |
| [payment_methods](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payment-methods) | ```<br>refund_receipts.PaymentMethodRef.value = payment_methods.Id<br>``` |

refund\_receipts table schema

| **ApplyTaxAfterDiscount**<br><br><br>BOOLEAN |
| --- |
| **Balance**<br><br><br>NUMBER |
| **BillAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **BillEmail**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>Address: STRING</li></ul> |
| **CheckPayment**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>AcctNum: STRING</li><li>BankName: STRING</li><li>CheckNum: STRING</li><li>NameOnAcct: STRING</li><li>Status: STRING</li></ul> |
| **ClassRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **CreditCardPayment**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreditChargeInfo: OBJECT, which is also a nested data structure.											<ul><li>Amount: NUMBER</li><li>BillAddrStreet: STRING</li><li>CcExpiryMonth: INTEGER</li><li>CcExpiryYear: INTEGER</li><li>NameOnAcct: STRING</li><li>PostalCode: STRING</li><li>ProcessPayment: BOOLEAN</li><li>Type: STRING</li></ul></li><li>CreditChargeResponse: OBJECT, which is also a nested data structure.											<ul><li>AuthCode: STRING</li><li>CCTransId: STRING</li><li>Status: STRING</li><li>TxnAuthorizationTime: DATE-TIME</li></ul></li></ul> |
| **CurrencyRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **CustomField**<br><br><br>ARRAY |
| **CustomerMemo**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>value: STRING</li></ul> |
| **CustomerRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DepartmentRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DepositToAccountRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DocNumber**<br><br><br>STRING |
| **ExchangeRate**<br><br><br>NUMBER |
| **FreeFormAddress**<br><br><br>BOOLEAN |
| **GlobalTaxCalculation**<br><br><br>STRING |
| **HomeBalance**<br><br><br>NUMBER |
| **HomeTotalAmt**<br><br><br>NUMBER |
| **Id**<br><br><br>STRING |
| **Line**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>Amount: NUMBER</li><li>Description: STRING</li><li>DescriptionLineDetail: OBJECT, which is also a nested data structure.											<ul><li>ServiceDate: DATE-TIME</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>DetailType: STRING</li><li>DiscountLineDetail: OBJECT, which is also a nested data structure.											<ul><li>ClassRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountAccountRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountPercent: NUMBER</li><li>PercentBased: BOOLEAN</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>GroupLineDetail: OBJECT, which is also a nested data structure.											<ul><li>GroupItemRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Line: ARRAY, which is also a nested data structure.													<ul><li>Amount: NUMBER</li><li>Description: STRING</li><li>DetailType: STRING</li><li>Id: STRING</li><li>LineNum: NUMBER</li><li>SalesItemLineDetail: OBJECT, which is also a nested data structure.															<ul><li>ClassRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountAmt: NUMBER</li><li>DiscountRate: NUMBER</li><li>ItemAccountRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>ItemRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>MarkupInfo: OBJECT, which is also a nested data structure.																	<ul><li>MarkUpIncomeAccountRef: OBJECT, which is also a nested data structure.																			<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Percent: NUMBER</li><li>PriceLevelRef: OBJECT, which is also a nested data structure.																			<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>Qty: INTEGER</li><li>ServiceDate: DATE-TIME</li><li>TaxClassificationRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxCodeRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxInclusiveAmt: NUMBER</li><li>UnitPrice: NUMBER</li></ul></li></ul></li><li>Quantity: NUMBER</li></ul></li><li>Id: STRING</li><li>LineNum: INTEGER</li><li>SalesItemLineDetail: OBJECT, which is also a nested data structure.											<ul><li>ClassRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountAmt: NUMBER</li><li>DiscountRate: NUMBER</li><li>ItemAccountRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>ItemRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>MarkupInfo: OBJECT, which is also a nested data structure.													<ul><li>MarkUpIncomeAccountRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Percent: NUMBER</li><li>PriceLevelRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>Qty: INTEGER</li><li>ServiceDate: DATE-TIME</li><li>TaxClassificationRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxInclusiveAmt: NUMBER</li><li>UnitPrice: NUMBER</li></ul></li><li>SubtotalLineDetail: OBJECT, which is also a nested data structure.											<ul><li>ItemRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li></ul> |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **PaymentMethodRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **PaymentRefNum**<br><br><br>STRING |
| **PaymentType**<br><br><br>STRING |
| **PrintStatus**<br><br><br>STRING |
| **PrivateNote**<br><br><br>STRING |
| **RecurDataRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **ShipAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **SyncToken**<br><br><br>STRING |
| **TaxExemptionRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **TotalAmt**<br><br><br>NUMBER |
| **TransactionLocationType**<br><br><br>STRING |
| **TxnDate**<br><br><br>DATE-TIME |
| **TxnSource**<br><br><br>STRING |
| **TxnTaxDetail**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>TaxLine: ARRAY, which is also a nested data structure.											<ul><li>Amount: NUMBER</li><li>DetailType: STRING</li><li>TaxLineDetail: OBJECT, which is also a nested data structure.													<ul><li>NetAmountTaxable: NUMBER</li><li>OverrideDeltaAmount: NUMBER</li><li>PercentBased: BOOLEAN</li><li>TaxInclusiveAmount: NUMBER</li><li>TaxPercent: NUMBER</li><li>TaxRateRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li></ul></li><li>TotalTax: NUMBER</li><li>TxnTaxCodeRef: OBJECT, which is also a nested data structure.											<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul> |
| **domain**<br><br><br>STRING |
| **patternProperties**<br><br><br>OBJECT<br><br>Click to expand patternProperties<br><br><table></table> |

### sales\_receipts

The `sales_receipts` table contains info about the sales receipts recorded in your QuickBooks instance.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/salesreceipt)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/salesreceipt/#query-a-salesreceipt "Opens in new tab: QuickBooks API method") |

sales\_receipts table foreign keys

| Join sales\_receipts with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#accounts) | ```<br>sales_receipts.DepositToAccountRef.value = accounts.Id<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = accounts.Id<br>```<br><br>```<br>sales_receipts.DepositToAccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>sales_receipts.CurrencyRef.value = accounts.CurrencyRef.value<br>``` |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>sales_receipts.DepositToAccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>sales_receipts.DepositToAccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>sales_receipts.DepositToAccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>sales_receipts.CurrencyRef.value = bill_payments.CurrencyRef.value<br>```<br><br>```<br>sales_receipts.DepartmentRef.value = bill_payments.DepartmentRef.value<br>``` |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>sales_receipts.DepositToAccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>sales_receipts.DepositToAccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>sales_receipts.CurrencyRef.value = bills.CurrencyRef.value<br>```<br><br>```<br>sales_receipts.CustomerRef.value = bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>sales_receipts.DepartmentRef.value = bills.DepartmentRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.ItemRef.value = bills.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>sales_receipts.DepositToAccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>sales_receipts.ClassRef.value = budgets.BudgetDetail.ClassRef.value<br>```<br><br>```<br>sales_receipts.CustomerRef.value = budgets.BudgetDetail.CustomerRef.value<br>```<br><br>```<br>sales_receipts.DepartmentRef.value = budgets.BudgetDetail.DepartmentRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>sales_receipts.DepositToAccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>sales_receipts.DepositToAccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>sales_receipts.DepositToAccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>sales_receipts.CurrencyRef.value = deposits.CurrencyRef.value<br>```<br><br>```<br>sales_receipts.DepartmentRef.value = deposits.DepartmentRef.value<br>```<br><br>```<br>sales_receipts.PaymentMethodRef.value = deposits.Line.DepositLineDetail.PaymentMethodRef.value<br>```<br><br>```<br>sales_receipts.Id = deposits.Line.LinkedTxn.TxnId<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>sales_receipts.DepositToAccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>sales_receipts.DepositToAccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>sales_receipts.ClassRef.value = invoices.ClassRef.value<br>```<br><br>```<br>sales_receipts.ClassRef.value = invoices.Line.SalesItemLineDetail.ClassRef.value<br>```<br><br>```<br>sales_receipts.CurrencyRef.value = invoices.CurrencyRef.value<br>```<br><br>```<br>sales_receipts.CustomerRef.value = invoices.CustomerRef.value<br>```<br><br>```<br>sales_receipts.DepartmentRef.value = invoices.DepartmentRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.ItemRef.value = invoices.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = invoices.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = invoices.TxnTaxDetail.TxnTaxCodeRef.value<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>sales_receipts.DepositToAccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>sales_receipts.DepositToAccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>sales_receipts.DepositToAccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>sales_receipts.ClassRef.value = items.ClassRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.ItemRef.value = items.Id<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.ItemRef.value = items.ParentRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = items.PurchaseTaxCodeRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = items.SalesTaxCodeRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>sales_receipts.DepositToAccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>sales_receipts.CurrencyRef.value = journal_entries.CurrencyRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = journal_entries.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>sales_receipts.Id = journal_entries.Id<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>sales_receipts.DepositToAccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>sales_receipts.CurrencyRef.value = payments.CurrencyRef.value<br>```<br><br>```<br>sales_receipts.CustomerRef.value = payments.CustomerRef.value<br>```<br><br>```<br>sales_receipts.PaymentMethodRef.value = payments.PaymentMethodRef.value<br>```<br><br>```<br>sales_receipts.Id = payments.Id<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>sales_receipts.DepositToAccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>sales_receipts.ClassRef.value = purchase_orders.ClassRef.value<br>```<br><br>```<br>sales_receipts.ClassRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>sales_receipts.CurrencyRef.value = purchase_orders.CurrencyRef.value<br>```<br><br>```<br>sales_receipts.CustomerRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>sales_receipts.DepartmentRef.value = purchase_orders.DepartmentRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.ItemRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>sales_receipts.DepositToAccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>sales_receipts.DepositToAccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>sales_receipts.ClassRef.value = purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>sales_receipts.CurrencyRef.value = purchases.CurrencyRef.value<br>```<br><br>```<br>sales_receipts.CustomerRef.value = purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>sales_receipts.DepartmentRef.value = purchases.DepartmentRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.ItemRef.value = purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>sales_receipts.PaymentMethodRef.value = purchases.PaymentMethodRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>sales_receipts.DepositToAccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>sales_receipts.ClassRef.value = refund_receipts.ClassRef.value<br>```<br><br>```<br>sales_receipts.CurrencyRef.value = refund_receipts.CurrencyRef.value<br>```<br><br>```<br>sales_receipts.CustomerRef.value = refund_receipts.CustomerRef.value<br>```<br><br>```<br>sales_receipts.DepartmentRef.value = refund_receipts.DepartmentRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.ItemRef.value = refund_receipts.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>sales_receipts.PaymentMethodRef.value = refund_receipts.PaymentMethodRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>sales_receipts.Id = refund_receipts.Id<br>``` |
| [transfers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#transfers) | ```<br>sales_receipts.DepositToAccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>sales_receipts.DepositToAccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>sales_receipts.CurrencyRef.value = transfers.CurrencyRef.value<br>```<br><br>```<br>sales_receipts.Id = transfers.Id<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>sales_receipts.DepositToAccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>sales_receipts.DepositToAccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>sales_receipts.ClassRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>sales_receipts.CurrencyRef.value = vendor_credits.CurrencyRef.value<br>```<br><br>```<br>sales_receipts.CustomerRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>sales_receipts.DepartmentRef.value = vendor_credits.DepartmentRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [classes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#classes) | ```<br>sales_receipts.ClassRef.value = classes.Id<br>```<br><br>```<br>sales_receipts.ClassRef.value = classes.ParentRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>sales_receipts.ClassRef.value = credit_memos.ClassRef.value<br>```<br><br>```<br>sales_receipts.CurrencyRef.value = credit_memos.CurrencyRef.value<br>```<br><br>```<br>sales_receipts.CustomerRef.value = credit_memos.CustomerRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.ItemRef.value = credit_memos.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>sales_receipts.ClassRef.value = estimates.ClassRef.value<br>```<br><br>```<br>sales_receipts.CurrencyRef.value = estimates.CurrencyRef.value<br>```<br><br>```<br>sales_receipts.CustomerRef.value = estimates.CustomerRef.value<br>```<br><br>```<br>sales_receipts.DepartmentRef.value = estimates.DepartmentRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.ItemRef.value = estimates.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = estimates.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = estimates.TxnTaxDetail.TxnTaxCodeRef.value<br>``` |
| [time_activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#time-activities) | ```<br>sales_receipts.ClassRef.value = time_activities.ClassRef.value<br>```<br><br>```<br>sales_receipts.DepartmentRef.value = time_activities.DepartmentRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.ItemRef.value = time_activities.ItemRef.value<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>sales_receipts.CurrencyRef.value = customers.CurrencyRef.value<br>```<br><br>```<br>sales_receipts.CustomerRef.value = customers.Id<br>```<br><br>```<br>sales_receipts.PaymentMethodRef.value = customers.PaymentMethodRef.value<br>```<br><br>```<br>sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value = customers.DefaultTaxCodeRef.value<br>``` |
| [vendors](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendors) | ```<br>sales_receipts.CurrencyRef.value = vendors.CurrencyRef.value<br>``` |
| [departments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#departments) | ```<br>sales_receipts.DepartmentRef.value = departments.ParentRef.value<br>```<br><br>```<br>sales_receipts.DepartmentRef.value = departments.Id<br>``` |
| [payment_methods](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payment-methods) | ```<br>sales_receipts.PaymentMethodRef.value = payment_methods.Id<br>``` |

sales\_receipts table schema

| **ApplyTaxAfterDiscount**<br><br><br>BOOLEAN |
| --- |
| **Balance**<br><br><br>NUMBER |
| **BillAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **BillEmail**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>Address: STRING</li></ul> |
| **ClassRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **CreditCardPayment**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreditChargeInfo: OBJECT, which is also a nested data structure.											<ul><li>Amount: NUMBER</li><li>BillAddrStreet: STRING</li><li>CcExpiryMonth: INTEGER</li><li>CcExpiryYear: INTEGER</li><li>NameOnAcct: STRING</li><li>PostalCode: STRING</li><li>ProcessPayment: BOOLEAN</li><li>Type: STRING</li></ul></li><li>CreditChargeResponse: OBJECT, which is also a nested data structure.											<ul><li>AuthCode: STRING</li><li>CCTransId: STRING</li><li>Status: STRING</li><li>TxnAuthorizationTime: DATE-TIME</li></ul></li></ul> |
| **CurrencyRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **CustomField**<br><br><br>ARRAY |
| **CustomerMemo**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>value: STRING</li></ul> |
| **CustomerRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DeliveryInfo**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>DeliveryTime: DATE-TIME</li><li>DeliveryType: STRING</li></ul> |
| **DepartmentRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DepositToAccountRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DocNumber**<br><br><br>STRING |
| **EmailStatus**<br><br><br>STRING |
| **ExchangeRate**<br><br><br>NUMBER |
| **FreeFormAddress**<br><br><br>BOOLEAN |
| **GlobalTaxCalculation**<br><br><br>STRING |
| **HomeBalance**<br><br><br>NUMBER |
| **HomeTotalAmt**<br><br><br>NUMBER |
| **Id**<br><br><br>STRING |
| **Line**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>Amount: NUMBER</li><li>Description: STRING</li><li>DescriptionLineDetail: OBJECT, which is also a nested data structure.											<ul><li>ServiceDate: DATE-TIME</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>DetailType: STRING</li><li>DiscountLineDetail: OBJECT, which is also a nested data structure.											<ul><li>ClassRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountAccountRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountPercent: NUMBER</li><li>PercentBased: BOOLEAN</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>GroupLineDetail: OBJECT, which is also a nested data structure.											<ul><li>GroupItemRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Line: ARRAY, which is also a nested data structure.													<ul><li>Amount: NUMBER</li><li>Description: STRING</li><li>DetailType: STRING</li><li>Id: STRING</li><li>LineNum: NUMBER</li><li>SalesItemLineDetail: OBJECT, which is also a nested data structure.															<ul><li>ClassRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountAmt: NUMBER</li><li>DiscountRate: NUMBER</li><li>ItemAccountRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>ItemRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>MarkupInfo: OBJECT, which is also a nested data structure.																	<ul><li>MarkUpIncomeAccountRef: OBJECT, which is also a nested data structure.																			<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Percent: NUMBER</li><li>PriceLevelRef: OBJECT, which is also a nested data structure.																			<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>Qty: INTEGER</li><li>ServiceDate: DATE-TIME</li><li>TaxClassificationRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxCodeRef: OBJECT, which is also a nested data structure.																	<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxInclusiveAmt: NUMBER</li><li>UnitPrice: NUMBER</li></ul></li></ul></li><li>Quantity: NUMBER</li></ul></li><li>Id: STRING</li><li>LineNum: INTEGER</li><li>SalesItemLineDetail: OBJECT, which is also a nested data structure.											<ul><li>ClassRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>DiscountAmt: NUMBER</li><li>DiscountRate: NUMBER</li><li>ItemAccountRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>ItemRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>MarkupInfo: OBJECT, which is also a nested data structure.													<ul><li>MarkUpIncomeAccountRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Percent: NUMBER</li><li>PriceLevelRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>Qty: INTEGER</li><li>ServiceDate: DATE-TIME</li><li>TaxClassificationRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxInclusiveAmt: NUMBER</li><li>UnitPrice: NUMBER</li></ul></li><li>SubtotalLineDetail: OBJECT, which is also a nested data structure.											<ul><li>ItemRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li></ul> |
| **LinkedTxn**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>TxnId: STRING</li><li>TxnLineId: STRING</li><li>TxnType: STRING</li></ul> |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **PaymentMethodRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **PaymentRefNum**<br><br><br>STRING |
| **PrintStatus**<br><br><br>STRING |
| **PrivateNote**<br><br><br>STRING |
| **RecurDataRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **ShipAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **ShipDate**<br><br><br>DATE-TIME |
| **ShipFromAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **ShipMethodRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **SyncToken**<br><br><br>STRING |
| **TotalAmt**<br><br><br>NUMBER |
| **TrackingNum**<br><br><br>STRING |
| **TransactionLocationType**<br><br><br>STRING |
| **TxnDate**<br><br><br>DATE-TIME |
| **TxnSource**<br><br><br>STRING |
| **TxnTaxDetail**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>TaxLine: ARRAY, which is also a nested data structure.											<ul><li>Amount: NUMBER</li><li>DetailType: STRING</li><li>TaxLineDetail: OBJECT, which is also a nested data structure.													<ul><li>NetAmountTaxable: NUMBER</li><li>OverrideDeltaAmount: NUMBER</li><li>PercentBased: BOOLEAN</li><li>TaxInclusiveAmount: NUMBER</li><li>TaxPercent: NUMBER</li><li>TaxRateRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li></ul></li><li>TotalTax: NUMBER</li><li>TxnTaxCodeRef: OBJECT, which is also a nested data structure.											<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul> |
| **domain**<br><br><br>STRING |
| **patternProperties**<br><br><br>OBJECT<br><br>Click to expand patternProperties<br><br><table></table> |

### tax\_agencies

The `tax_agencies` table contains info about the tax-collecting entites defined in your QuickBooks instance.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/taxagency)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/taxagency/#query-a-taxagency "Opens in new tab: QuickBooks API method") |

tax\_agencies table foreign keys

| Join tax\_agencies with | on |
| --- | --- |
| [tax_rates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#tax-rates) | ```<br>tax_agencies.Id = tax_rates.AgencyRef.value<br>``` |

tax\_agencies table schema

| **DisplayName**<br><br><br>STRING |
| --- |
| **Id**<br><br><br>STRING |
| **LastFileDate**<br><br><br>DATE-TIME |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **SyncToken**<br><br><br>STRING |
| **TaxAgencyConfig**<br><br><br>STRING |
| **TaxRegistrationNumber**<br><br><br>STRING |
| **TaxTrackedOnPurchases**<br><br><br>BOOLEAN |
| **TaxTrackedOnSales**<br><br><br>BOOLEAN |
| **domain**<br><br><br>STRING |

### tax\_codes

The `tax_codes` table contains info about the tax codes defined in your QuickBooks instance. **Note**: Both active and inactive tax codes are included in the data for this table.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/taxcode "Opens in new tab: QuickBooks API method") |

tax\_codes table foreign keys

| Join tax\_codes with | on |
| --- | --- |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>tax_codes.PurchaseTaxRateList.TaxRateDetail.TaxRateRef.value = estimates.TxnTaxDetail.TaxLine.TaxLineDetail.TaxLine.TaxLineDetail.TaxRateRef.value<br>```<br><br>```<br>tax_codes.SalesTaxRateList.TaxRateDetail.TaxRateRef.value = estimates.TxnTaxDetail.TaxLine.TaxLineDetail.TaxLine.TaxLineDetail.TaxRateRef.value<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>tax_codes.PurchaseTaxRateList.TaxRateDetail.TaxRateRef.value = invoices.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value<br>```<br><br>```<br>tax_codes.SalesTaxRateList.TaxRateDetail.TaxRateRef.value = invoices.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>tax_codes.PurchaseTaxRateList.TaxRateDetail.TaxRateRef.value = journal_entries.TaxRateRef.value<br>```<br><br>```<br>tax_codes.SalesTaxRateList.TaxRateDetail.TaxRateRef.value = journal_entries.TaxRateRef.value<br>```<br><br>```<br>tax_codes.PurchaseTaxRateList.TaxRateDetail.TaxRateRef.value = journal_entries.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value<br>```<br><br>```<br>tax_codes.SalesTaxRateList.TaxRateDetail.TaxRateRef.value = journal_entries.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value<br>``` |
| [tax_rates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#tax-rates) | ```<br>tax_codes.PurchaseTaxRateList.TaxRateDetail.TaxRateRef.value = tax_rates.Id<br>```<br><br>```<br>tax_codes.SalesTaxRateList.TaxRateDetail.TaxRateRef.value = tax_rates.Id<br>``` |

tax\_codes table schema

| **Active**<br><br><br>BOOLEAN |
| --- |
| **Description**<br><br><br>STRING |
| **Hidden**<br><br><br>BOOLEAN |
| **Id**<br><br><br>STRING |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **Name**<br><br><br>STRING |
| **PurchaseTaxRateList**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>TaxRateDetail: ARRAY, which is also a nested data structure.											<ul><li>TaxOrder: INTEGER</li><li>TaxRateRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxTypeApplicable: STRING</li></ul></li></ul> |
| **SalesTaxRateList**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>TaxRateDetail: ARRAY, which is also a nested data structure.											<ul><li>TaxOrder: INTEGER</li><li>TaxRateRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxTypeApplicable: STRING</li></ul></li></ul> |
| **SyncToken**<br><br><br>STRING |
| **TaxCodeConfigType**<br><br><br>STRING |
| **TaxGroup**<br><br><br>BOOLEAN |
| **Taxable**<br><br><br>BOOLEAN |
| **domain**<br><br><br>STRING |

### tax\_rates

The `tax_rates` table contains info about the tax rates defined in your QuickBooks instance. **Note**: Both active and inactive tax rates are included in the data for this table.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/taxrate)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/taxrate#query-a-taxrate "Opens in new tab: QuickBooks API method") |

tax\_rates table foreign keys

| Join tax\_rates with | on |
| --- | --- |
| [tax_agencies](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#tax-agencies) | ```<br>tax_rates.AgencyRef.value = tax_agencies.Id<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>tax_rates.Id = estimates.TxnTaxDetail.TaxLine.TaxLineDetail.TaxLine.TaxLineDetail.TaxRateRef.value<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>tax_rates.Id = invoices.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>tax_rates.Id = journal_entries.TaxRateRef.value<br>```<br><br>```<br>tax_rates.Id = journal_entries.TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef.value<br>``` |
| [tax_codes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#tax-codes) | ```<br>tax_rates.Id = tax_codes.PurchaseTaxRateList.TaxRateDetail.TaxRateRef.value<br>```<br><br>```<br>tax_rates.Id = tax_codes.SalesTaxRateList.TaxRateDetail.TaxRateRef.value<br>``` |

tax\_rates table schema

| **Active**<br><br><br>BOOLEAN |
| --- |
| **AgencyRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **Description**<br><br><br>STRING |
| **DisplayType**<br><br><br>STRING |
| **EffectiveTaxRate**<br><br>OBJECT<br><br>Click to expand EffectiveTaxRate<br><br><table></table><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>EffectiveDate: DATE-TIME</li><li>EndDate: DATE-TIME</li><li>RateValue: NUMBER</li></ul> |
| **Id**<br><br><br>STRING |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **Name**<br><br><br>STRING |
| **OriginalTaxRate**<br><br><br>STRING |
| **RateValue**<br><br><br>NUMBER |
| **SpecialTaxType**<br><br><br>STRING |
| **SyncToken**<br><br><br>STRING |
| **TaxReturnLineRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **domain**<br><br><br>STRING |

### terms

The `terms` table contains info about the sale terms defined in your QuickBooks instance. **Note**: Both active and inactive terms are included in the data for this table.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/term)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/term#query-a-term "Opens in new tab: QuickBooks API method") |

terms table foreign keys

| Join terms with | on |
| --- | --- |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>terms.Id = bills.SalesTermRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>terms.Id = credit_memos.SalesTermRef.value<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>terms.Id = customers.SalesTermRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>terms.Id = estimates.SalesTermRef.value<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>terms.Id = invoices.SalesTermRef.value<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>terms.Id = purchase_orders.SalesTermRef.value<br>``` |

terms table schema

| **Active**<br><br><br>BOOLEAN |
| --- |
| **DayOfMonthDue**<br><br><br>INTEGER |
| **DiscountDayOfMonth**<br><br><br>INTEGER |
| **DiscountDays**<br><br><br>INTEGER |
| **DiscountPercent**<br><br><br>NUMBER |
| **DueDays**<br><br><br>INTEGER |
| **DueNextMonthDays**<br><br><br>INTEGER |
| **Id**<br><br><br>STRING |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **Name**<br><br><br>STRING |
| **SyncToken**<br><br><br>STRING |
| **Type**<br><br><br>STRING |
| **domain**<br><br><br>STRING |

### time\_activities

The `time_activities` table contains info about vendor and employee time records in your QuickBooks instance.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/timeactivity)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/timeactivity#query-a-timeactivity "Opens in new tab: QuickBooks API method") |

time\_activities table foreign keys

| Join time\_activities with | on |
| --- | --- |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>time_activities.ClassRef.value = budgets.BudgetDetail.ClassRef.value<br>```<br><br>```<br>time_activities.DepartmentRef.value = budgets.BudgetDetail.DepartmentRef.value<br>``` |
| [classes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#classes) | ```<br>time_activities.ClassRef.value = classes.Id<br>```<br><br>```<br>time_activities.ClassRef.value = classes.ParentRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>time_activities.ClassRef.value = credit_memos.ClassRef.value<br>```<br><br>```<br>time_activities.ItemRef.value = credit_memos.Line.SalesItemLineDetail.ItemRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>time_activities.ClassRef.value = estimates.ClassRef.value<br>```<br><br>```<br>time_activities.DepartmentRef.value = estimates.DepartmentRef.value<br>```<br><br>```<br>time_activities.ItemRef.value = estimates.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>time_activities.Id = estimates.Id<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>time_activities.ClassRef.value = invoices.ClassRef.value<br>```<br><br>```<br>time_activities.ClassRef.value = invoices.Line.SalesItemLineDetail.ClassRef.value<br>```<br><br>```<br>time_activities.DepartmentRef.value = invoices.DepartmentRef.value<br>```<br><br>```<br>time_activities.ItemRef.value = invoices.Line.SalesItemLineDetail.ItemRef.value<br>```<br><br>```<br>time_activities.Id = invoices.LinkedTxn.TxnId<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>time_activities.ClassRef.value = items.ClassRef.value<br>```<br><br>```<br>time_activities.ItemRef.value = items.Id<br>```<br><br>```<br>time_activities.ItemRef.value = items.ParentRef.value<br>```<br><br>```<br>time_activities.VendorRef.value = items.PrefVendorRef.value<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>time_activities.ClassRef.value = purchase_orders.ClassRef.value<br>```<br><br>```<br>time_activities.ClassRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>time_activities.DepartmentRef.value = purchase_orders.DepartmentRef.value<br>```<br><br>```<br>time_activities.ItemRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>time_activities.VendorRef.value = purchase_orders.VendorRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>time_activities.ClassRef.value = purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>time_activities.DepartmentRef.value = purchases.DepartmentRef.value<br>```<br><br>```<br>time_activities.EmployeeRef.value = purchases.EntityRef.value<br>```<br><br>```<br>time_activities.ItemRef.value = purchases.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>time_activities.Id = purchases.Id<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>time_activities.ClassRef.value = refund_receipts.ClassRef.value<br>```<br><br>```<br>time_activities.DepartmentRef.value = refund_receipts.DepartmentRef.value<br>```<br><br>```<br>time_activities.ItemRef.value = refund_receipts.Line.SalesItemLineDetail.ItemRef.value<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>time_activities.ClassRef.value = sales_receipts.ClassRef.value<br>```<br><br>```<br>time_activities.DepartmentRef.value = sales_receipts.DepartmentRef.value<br>```<br><br>```<br>time_activities.ItemRef.value = sales_receipts.Line.SalesItemLineDetail.ItemRef.value<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>time_activities.ClassRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>time_activities.DepartmentRef.value = vendor_credits.DepartmentRef.value<br>```<br><br>```<br>time_activities.VendorRef.value = vendor_credits.VendorRef.value<br>``` |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>time_activities.DepartmentRef.value = bills.DepartmentRef.value<br>```<br><br>```<br>time_activities.ItemRef.value = bills.Line.ItemBasedExpenseLineDetail.ItemRef.value<br>```<br><br>```<br>time_activities.VendorRef.value = bills.VendorRef.value<br>``` |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>time_activities.DepartmentRef.value = bill_payments.DepartmentRef.value<br>```<br><br>```<br>time_activities.VendorRef.value = bill_payments.VendorRef.value<br>``` |
| [departments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#departments) | ```<br>time_activities.DepartmentRef.value = departments.ParentRef.value<br>```<br><br>```<br>time_activities.DepartmentRef.value = departments.Id<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>time_activities.DepartmentRef.value = deposits.DepartmentRef.value<br>``` |
| [employees](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#employees) | ```<br>time_activities.EmployeeRef.value = employees.Id<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>time_activities.Id = payments.Id<br>``` |
| [vendors](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendors) | ```<br>time_activities.VendorRef.value = vendors.Id<br>``` |

time\_activities table schema

| **BillableStatus**<br><br><br>STRING |
| --- |
| **BreakHours**<br><br><br>INTEGER |
| **BreakMinutes**<br><br><br>INTEGER |
| **ClassRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **CostRate**<br><br><br>NUMBER |
| **CustomerRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DepartmentRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **Description**<br><br><br>STRING |
| **EmployeeRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **EndTime**<br><br><br>DATE-TIME |
| **HourlyRate**<br><br><br>INTEGER |
| **Hours**<br><br><br>INTEGER |
| **Id**<br><br><br>STRING |
| **ItemRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **Minutes**<br><br><br>INTEGER |
| **NameOf**<br><br><br>STRING |
| **PayrollItemRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **StartTime**<br><br><br>DATE-TIME |
| **SyncToken**<br><br><br>STRING |
| **Taxable**<br><br><br>BOOLEAN |
| **TransactionLocationType**<br><br><br>STRING |
| **TxnDate**<br><br><br>DATE-TIME |
| **VendorRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **domain**<br><br><br>STRING |
| **patternProperties**<br><br><br>OBJECT<br><br>Click to expand patternProperties<br><br><table></table> |

### transfers

The `transfers` table contains info about account transfers from your company’s QuickBooks chart of accounts.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/transfer)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/transfer#query-a-transfer "Opens in new tab: QuickBooks API method") |

transfers table foreign keys

| Join transfers with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#accounts) | ```<br>transfers.FromAccountRef.value = accounts.Id<br>```<br><br>```<br>transfers.ToAccountRef.value = accounts.Id<br>```<br><br>```<br>transfers.FromAccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>transfers.CurrencyRef.value = accounts.CurrencyRef.value<br>``` |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>transfers.FromAccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>transfers.FromAccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>transfers.FromAccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>transfers.CurrencyRef.value = bill_payments.CurrencyRef.value<br>``` |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>transfers.FromAccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>transfers.FromAccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>transfers.CurrencyRef.value = bills.CurrencyRef.value<br>``` |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>transfers.FromAccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = budgets.BudgetDetail.AccountRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>transfers.FromAccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>transfers.FromAccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>transfers.FromAccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>transfers.CurrencyRef.value = deposits.CurrencyRef.value<br>```<br><br>```<br>transfers.Id = deposits.Line.LinkedTxn.TxnId<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>transfers.FromAccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>transfers.FromAccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>transfers.CurrencyRef.value = invoices.CurrencyRef.value<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>transfers.FromAccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>transfers.FromAccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>transfers.FromAccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = items.IncomeAccountRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>transfers.FromAccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>transfers.CurrencyRef.value = journal_entries.CurrencyRef.value<br>```<br><br>```<br>transfers.Id = journal_entries.Id<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>transfers.FromAccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>transfers.CurrencyRef.value = payments.CurrencyRef.value<br>```<br><br>```<br>transfers.Id = payments.Id<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>transfers.FromAccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>transfers.CurrencyRef.value = purchase_orders.CurrencyRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>transfers.FromAccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>transfers.FromAccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>transfers.CurrencyRef.value = purchases.CurrencyRef.value<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>transfers.FromAccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>transfers.CurrencyRef.value = refund_receipts.CurrencyRef.value<br>```<br><br>```<br>transfers.Id = refund_receipts.Id<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>transfers.FromAccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>transfers.FromAccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>transfers.CurrencyRef.value = sales_receipts.CurrencyRef.value<br>```<br><br>```<br>transfers.Id = sales_receipts.Id<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>transfers.FromAccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = vendor_credits.APAccountRef.value<br>```<br><br>```<br>transfers.FromAccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>transfers.ToAccountRef.value = vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>transfers.CurrencyRef.value = vendor_credits.CurrencyRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>transfers.CurrencyRef.value = credit_memos.CurrencyRef.value<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>transfers.CurrencyRef.value = customers.CurrencyRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>transfers.CurrencyRef.value = estimates.CurrencyRef.value<br>``` |
| [vendors](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendors) | ```<br>transfers.CurrencyRef.value = vendors.CurrencyRef.value<br>``` |

transfers table schema

| **Amount**<br><br><br>NUMBER |
| --- |
| **CurrencyRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **ExchangeRate**<br><br><br>NUMBER |
| **FromAccountRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **Id**<br><br><br>STRING |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **PrivateNote**<br><br><br>STRING |
| **RecurDataRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **SyncToken**<br><br><br>STRING |
| **ToAccountRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **TransactionLocationType**<br><br><br>STRING |
| **TxnDate**<br><br><br>DATE-TIME |
| **domain**<br><br><br>STRING |

### vendor\_credits

The `vendor_credits` table contains info about credits that a vendor owes your company.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/vendorcredit)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/vendorcredit#query-a-vendorcredit "Opens in new tab: QuickBooks API method") |

vendor\_credits table foreign keys

| Join vendor\_credits with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#accounts) | ```<br>vendor_credits.APAccountRef.value = accounts.Id<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = accounts.Id<br>```<br><br>```<br>vendor_credits.APAccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = accounts.ParentRef.value<br>```<br><br>```<br>vendor_credits.CurrencyRef.value = accounts.CurrencyRef.value<br>``` |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>vendor_credits.APAccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = bill_payments.APAccountRef.value<br>```<br><br>```<br>vendor_credits.APAccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = bill_payments.CheckPayment.BankAccountRef.value<br>```<br><br>```<br>vendor_credits.APAccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = bill_payments.CreditCardPayment.CCAccountRef.value<br>```<br><br>```<br>vendor_credits.CurrencyRef.value = bill_payments.CurrencyRef.value<br>```<br><br>```<br>vendor_credits.DepartmentRef.value = bill_payments.DepartmentRef.value<br>```<br><br>```<br>vendor_credits.Id = bill_payments.Line.LinkedTxn.TxnId<br>```<br><br>```<br>vendor_credits.VendorRef.value = bill_payments.VendorRef.value<br>``` |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>vendor_credits.APAccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = bills.APAccountRef.value<br>```<br><br>```<br>vendor_credits.APAccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = bills.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>vendor_credits.CurrencyRef.value = bills.CurrencyRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value = bills.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>vendor_credits.DepartmentRef.value = bills.DepartmentRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = bills.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = bills.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>vendor_credits.Id = bills.Id<br>```<br><br>```<br>vendor_credits.VendorRef.value = bills.VendorRef.value<br>``` |
| [budgets](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#budgets) | ```<br>vendor_credits.APAccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = budgets.BudgetDetail.AccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value = budgets.BudgetDetail.ClassRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value = budgets.BudgetDetail.CustomerRef.value<br>```<br><br>```<br>vendor_credits.DepartmentRef.value = budgets.BudgetDetail.DepartmentRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>vendor_credits.APAccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = deposits.CashBack.AccountRef.value<br>```<br><br>```<br>vendor_credits.APAccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = deposits.DepositToAccountRef.value<br>```<br><br>```<br>vendor_credits.APAccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = deposits.Line.DepositLineDetail.AccountRef.value<br>```<br><br>```<br>vendor_credits.CurrencyRef.value = deposits.CurrencyRef.value<br>```<br><br>```<br>vendor_credits.DepartmentRef.value = deposits.DepartmentRef.value<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>vendor_credits.APAccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = invoices.DepositToAccountRef.value<br>```<br><br>```<br>vendor_credits.APAccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = invoices.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value = invoices.ClassRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value = invoices.Line.SalesItemLineDetail.ClassRef.value<br>```<br><br>```<br>vendor_credits.CurrencyRef.value = invoices.CurrencyRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value = invoices.CustomerRef.value<br>```<br><br>```<br>vendor_credits.DepartmentRef.value = invoices.DepartmentRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = invoices.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = invoices.TxnTaxDetail.TxnTaxCodeRef.value<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>vendor_credits.APAccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = items.AssetAccountRef.value<br>```<br><br>```<br>vendor_credits.APAccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = items.ExpenseAccountRef.value<br>```<br><br>```<br>vendor_credits.APAccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = items.IncomeAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value = items.ClassRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = items.PurchaseTaxCodeRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = items.SalesTaxCodeRef.value<br>```<br><br>```<br>vendor_credits.VendorRef.value = items.PrefVendorRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>vendor_credits.APAccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = journal_entries.Line.JournalEntryLineDetail.AccountRef.value<br>```<br><br>```<br>vendor_credits.CurrencyRef.value = journal_entries.CurrencyRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = journal_entries.TxnTaxDetail.TxnTaxCodeRef.value<br>```<br><br>```<br>vendor_credits.Id = journal_entries.Id<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>vendor_credits.APAccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = payments.DepositToAccountRef.value<br>```<br><br>```<br>vendor_credits.CurrencyRef.value = payments.CurrencyRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value = payments.CustomerRef.value<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>vendor_credits.APAccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = purchase_orders.APAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value = purchase_orders.ClassRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>vendor_credits.CurrencyRef.value = purchase_orders.CurrencyRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>vendor_credits.DepartmentRef.value = purchase_orders.DepartmentRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = purchase_orders.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>vendor_credits.VendorRef.value = purchase_orders.VendorRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>vendor_credits.APAccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = purchases.AccountRef.value<br>```<br><br>```<br>vendor_credits.APAccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = purchases.Line.AccountBasedExpenseLineDetail.AccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value = purchases.Line.AccountBasedExpenseLineDetail.ClassRef.value<br>```<br><br>```<br>vendor_credits.CurrencyRef.value = purchases.CurrencyRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value = purchases.Line.AccountBasedExpenseLineDetail.CustomerRef.value<br>```<br><br>```<br>vendor_credits.DepartmentRef.value = purchases.DepartmentRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = purchases.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = purchases.Line.ItemBasedExpenseLineDetail.TaxCodeRef.value<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>vendor_credits.APAccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = refund_receipts.DepositToAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value = refund_receipts.ClassRef.value<br>```<br><br>```<br>vendor_credits.CurrencyRef.value = refund_receipts.CurrencyRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value = refund_receipts.CustomerRef.value<br>```<br><br>```<br>vendor_credits.DepartmentRef.value = refund_receipts.DepartmentRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = refund_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>vendor_credits.APAccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = sales_receipts.DepositToAccountRef.value<br>```<br><br>```<br>vendor_credits.APAccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = sales_receipts.Line.DiscountLineDetail.DiscountAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value = sales_receipts.ClassRef.value<br>```<br><br>```<br>vendor_credits.CurrencyRef.value = sales_receipts.CurrencyRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value = sales_receipts.CustomerRef.value<br>```<br><br>```<br>vendor_credits.DepartmentRef.value = sales_receipts.DepartmentRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = sales_receipts.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [transfers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#transfers) | ```<br>vendor_credits.APAccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = transfers.FromAccountRef.value<br>```<br><br>```<br>vendor_credits.APAccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.AccountRef.value = transfers.ToAccountRef.value<br>```<br><br>```<br>vendor_credits.CurrencyRef.value = transfers.CurrencyRef.value<br>``` |
| [classes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#classes) | ```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value = classes.Id<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value = classes.ParentRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value = credit_memos.ClassRef.value<br>```<br><br>```<br>vendor_credits.CurrencyRef.value = credit_memos.CurrencyRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value = credit_memos.CustomerRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = credit_memos.Line.SalesItemLineDetail.TaxCodeRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value = estimates.ClassRef.value<br>```<br><br>```<br>vendor_credits.CurrencyRef.value = estimates.CurrencyRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value = estimates.CustomerRef.value<br>```<br><br>```<br>vendor_credits.DepartmentRef.value = estimates.DepartmentRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = estimates.Line.SalesItemLineDetail.TaxCodeRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = estimates.TxnTaxDetail.TxnTaxCodeRef.value<br>``` |
| [time_activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#time-activities) | ```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.ClassRef.value = time_activities.ClassRef.value<br>```<br><br>```<br>vendor_credits.DepartmentRef.value = time_activities.DepartmentRef.value<br>```<br><br>```<br>vendor_credits.VendorRef.value = time_activities.VendorRef.value<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>vendor_credits.CurrencyRef.value = customers.CurrencyRef.value<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.CustomerRef.value = customers.Id<br>```<br><br>```<br>vendor_credits.Line.AccountBasedExpenseLineDetail.TaxCodeRef.value = customers.DefaultTaxCodeRef.value<br>``` |
| [vendors](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendors) | ```<br>vendor_credits.CurrencyRef.value = vendors.CurrencyRef.value<br>```<br><br>```<br>vendor_credits.VendorRef.value = vendors.Id<br>``` |
| [departments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#departments) | ```<br>vendor_credits.DepartmentRef.value = departments.ParentRef.value<br>```<br><br>```<br>vendor_credits.DepartmentRef.value = departments.Id<br>``` |

vendor\_credits table schema

| **APAccountRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| --- |
| **Balance**<br><br><br>NUMBER |
| **CurrencyRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DepartmentRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DocNumber**<br><br><br>STRING |
| **ExchangeRate**<br><br><br>NUMBER |
| **GlobalTaxCalculation**<br><br><br>STRING |
| **Id**<br><br><br>STRING |
| **IncludeInAnnualTPAR**<br><br><br>BOOLEAN |
| **Line**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>AccountBasedExpenseLineDetail: OBJECT, which is also a nested data structure.											<ul><li>AccountRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>BillableStatus: STRING</li><li>ClassRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>CustomerRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>MarkupInfo: OBJECT, which is also a nested data structure.													<ul><li>MarkUpIncomeAccountRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Percent: NUMBER</li><li>PriceLevelRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>TaxAmount: NUMBER</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxInclusiveAmt: NUMBER</li></ul></li><li>Amount: NUMBER</li><li>Description: STRING</li><li>DetailType: STRING</li><li>Id: STRING</li><li>ItemBasedExpenseLineDetail: OBJECT, which is also a nested data structure.											<ul><li>BillableStatus: STRING</li><li>ClassRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>CustomerRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>ItemRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>MarkupInfo: OBJECT, which is also a nested data structure.													<ul><li>MarkUpIncomeAccountRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Percent: NUMBER</li><li>PriceLevelRef: OBJECT, which is also a nested data structure.															<ul><li>name: STRING</li><li>value: STRING</li></ul></li></ul></li><li>PriceLevelRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>Qty: INTEGER</li><li>TaxCodeRef: OBJECT, which is also a nested data structure.													<ul><li>name: STRING</li><li>value: STRING</li></ul></li><li>TaxInclusiveAmt: NUMBER</li><li>UnitPrice: NUMBER</li></ul></li><li>LineNum: INTEGER</li><li>LinkedTxn: ARRAY, which is also a nested data structure.											<ul><li>TxnId: STRING</li><li>TxnLineId: STRING</li><li>TxnType: STRING</li></ul></li></ul> |
| **LinkedTxn**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>TxnId: STRING</li><li>TxnLineId: STRING</li><li>TxnType: STRING</li></ul> |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul><br><br>Click to expand MetaData<br><br><table><tr><td><p><strong>								CreateTime							</strong></p><p>							DATE-TIME						</p></td></tr><tr><td><p><strong>								LastUpdatedTime							</strong></p><p>							DATE-TIME						</p></td></tr></table> |
| **PrivateNote**<br><br><br>STRING |
| **RecurDataRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **SyncToken**<br><br><br>STRING |
| **TotalAmt**<br><br><br>NUMBER |
| **TransactionLocationType**<br><br><br>STRING |
| **TxnDate**<br><br><br>DATE-TIME |
| **VendorRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **domain**<br><br><br>STRING |

### vendors

The `vendors` table contains info about the sellers your company purchases products from. **Note**: Both active and inactive vendors are included in the data for this table.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | Id |
| **Useful links** | [QuickBooks documentation](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/vendor)<br><br>[QuickBooks API method](https://developer.intuit.com/app/developer/qbo/Content/api/accounting/all-entities/vendor#query-a-vendor "Opens in new tab: QuickBooks API method") |

vendors table foreign keys

| Join vendors with | on |
| --- | --- |
| [accounts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#accounts) | ```<br>vendors.CurrencyRef.value = accounts.CurrencyRef.value<br>``` |
| [bill_payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bill-payments) | ```<br>vendors.CurrencyRef.value = bill_payments.CurrencyRef.value<br>```<br><br>```<br>vendors.Id = bill_payments.VendorRef.value<br>``` |
| [bills](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#bills) | ```<br>vendors.CurrencyRef.value = bills.CurrencyRef.value<br>```<br><br>```<br>vendors.Id = bills.VendorRef.value<br>``` |
| [credit_memos](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#credit-memos) | ```<br>vendors.CurrencyRef.value = credit_memos.CurrencyRef.value<br>``` |
| [customers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#customers) | ```<br>vendors.CurrencyRef.value = customers.CurrencyRef.value<br>``` |
| [deposits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#deposits) | ```<br>vendors.CurrencyRef.value = deposits.CurrencyRef.value<br>``` |
| [estimates](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#estimates) | ```<br>vendors.CurrencyRef.value = estimates.CurrencyRef.value<br>``` |
| [invoices](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#invoices) | ```<br>vendors.CurrencyRef.value = invoices.CurrencyRef.value<br>``` |
| [journal_entries](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#journal-entries) | ```<br>vendors.CurrencyRef.value = journal_entries.CurrencyRef.value<br>``` |
| [payments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#payments) | ```<br>vendors.CurrencyRef.value = payments.CurrencyRef.value<br>``` |
| [purchase_orders](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchase-orders) | ```<br>vendors.CurrencyRef.value = purchase_orders.CurrencyRef.value<br>```<br><br>```<br>vendors.Id = purchase_orders.VendorRef.value<br>``` |
| [purchases](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#purchases) | ```<br>vendors.CurrencyRef.value = purchases.CurrencyRef.value<br>``` |
| [refund_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#refund-receipts) | ```<br>vendors.CurrencyRef.value = refund_receipts.CurrencyRef.value<br>``` |
| [sales_receipts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#sales-receipts) | ```<br>vendors.CurrencyRef.value = sales_receipts.CurrencyRef.value<br>``` |
| [transfers](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#transfers) | ```<br>vendors.CurrencyRef.value = transfers.CurrencyRef.value<br>``` |
| [vendor_credits](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#vendor-credits) | ```<br>vendors.CurrencyRef.value = vendor_credits.CurrencyRef.value<br>```<br><br>```<br>vendors.Id = vendor_credits.VendorRef.value<br>``` |
| [items](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#items) | ```<br>vendors.Id = items.PrefVendorRef.value<br>``` |
| [time_activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-QuickBooks-v2.htm#time-activities) | ```<br>vendors.Id = time_activities.VendorRef.value<br>``` |

vendors table schema

| **APAccountRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| --- |
| **AcctNum**<br><br><br>STRING |
| **Active**<br><br><br>BOOLEAN |
| **AlternatePhone**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>FreeFormNumber: STRING</li></ul> |
| **Balance**<br><br><br>NUMBER |
| **BillAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>City: STRING</li><li>Country: STRING</li><li>CountrySubDivisionCode: STRING</li><li>Id: STRING</li><li>Lat: STRING</li><li>Line1: STRING</li><li>Line2: STRING</li><li>Line3: STRING</li><li>Line4: STRING</li><li>Line5: STRING</li><li>Long: STRING</li><li>PostalCode: STRING</li></ul> |
| **BillRate**<br><br><br>NUMBER |
| **BusinessNumber**<br><br><br>STRING |
| **CompanyName**<br><br><br>STRING |
| **CostRate**<br><br><br>NUMBER |
| **CurrencyRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **DisplayName**<br><br><br>STRING |
| **FamilyName**<br><br><br>STRING |
| **Fax**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>FreeFormNumber: STRING</li></ul> |
| **GSTIN**<br><br><br>STRING |
| **GSTRegistrationType**<br><br><br>STRING |
| **GivenName**<br><br><br>STRING |
| **HasTPAR**<br><br><br>BOOLEAN |
| **Id**<br><br><br>STRING |
| **MetaData**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>CreateTime: DATE-TIME</li><li>LastUpdatedTime: DATE-TIME</li></ul> |
| **MiddleName**<br><br><br>STRING |
| **Mobile**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>FreeFormNumber: STRING</li></ul> |
| **OtherContactInfo**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>Type: STRING</li></ul> |
| **PrimaryEmailAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>Address: STRING</li></ul> |
| **PrimaryPhone**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>FreeFormNumber: STRING</li></ul> |
| **PrintOnCheckName**<br><br><br>STRING |
| **Source**<br><br><br>STRING |
| **Suffix**<br><br><br>STRING |
| **SyncToken**<br><br><br>STRING |
| **T4AEligible**<br><br><br>BOOLEAN |
| **T5018Eligible**<br><br><br>BOOLEAN |
| **TaxIdentifier**<br><br><br>STRING |
| **TaxReportingBasis**<br><br><br>STRING |
| **TermRef**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>name: STRING</li><li>value: STRING</li></ul> |
| **Title**<br><br><br>STRING |
| **Vendor1099**<br><br><br>BOOLEAN |
| **VendorPaymentBankDetail**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>BankAccountName: STRING</li><li>BankAccountNumber: STRING</li><li>BankBranchIdentifier: STRING</li><li>StatementText: STRING</li></ul> |
| **WebAddr**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>URI: STRING</li></ul> |
| **domain**<br><br><br>STRING |
| **patternProperties**<br><br><br>OBJECT<br><br>Click to expand patternProperties<br><br><table></table> |