Skip to content

QuickBooks: Query preferences

QuickBooks preferences.query: arguments, response, policy and SDK examples.

← Preferences operations · Get started

Operation quickbooks.preferences.query_preferences

Provider route: GET /v3/company/{realmID}/query. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/quickbooks with npm, or alter-sdk-quickbooks with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { QuickBooksIntegration } from "@alter-ai/quickbooks";
async function execute(input: Parameters<QuickBooksIntegration["preferences"]["query"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new QuickBooksIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.preferences.query(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_quickbooks import QuickBooksIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = QuickBooksIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.preferences.query(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectRequired within parentAdditional keys: not allowed
query.querystringRequired within parent
query.minorversionintegerOptionalMust equal: 75
query.requestidstringOptionalMinimum length: 1

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
timestringOptional
QueryResponseobjectOptionalAdditional keys: allowed
QueryResponse.PreferencesarrayOptional
QueryResponse.Preferences[]ModelEach itemExpand Read preferences — response body — Preferences
QueryResponse.startPositionJSONOptional
QueryResponse.startPosition (anyOf 1)integerAlternative
QueryResponse.startPosition (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
QueryResponse.maxResultsJSONOptional
QueryResponse.maxResults (anyOf 1)integerAlternative
QueryResponse.maxResults (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
QueryResponse.totalCountJSONOptional
QueryResponse.totalCount (anyOf 1)integerAlternative
QueryResponse.totalCount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Read preferences — response body — Preferences

12 more schemas are linked from the tables above, on the schema pages.

Read preferences — response body — Preferences
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
AccountingInfoPrefsModelOptionalExpand Read preferences — response body — Preferences Accounting Info Prefs
The following settings are available for QuickBooks Online Plus editions, only. To determine this edition type, query the value of the OfferingSku CustomerInfo.Name name/value pair for QuickBooks Online Plus .
CurrencyPrefsModelOptionalExpand Read preferences — response body — Preferences Currency Prefs
EmailMessagesPrefsModelOptionalExpand Full update preferences — request body — body Email Messages Prefs
IdstringOptionalUnique identifier for this object.
Read only: true
MetaDataModelOptionalExpand Read a bill — response body — Bill Meta Data
Descriptive information about the object. The MetaData values are set by Data Services and are read only for all applications.
OtherPrefsobjectOptionalSpecifies extension of Preference resource to allow extension of Name-Value pair based extension at the top level.
Additional keys: allowed
ProductAndServicesPrefsModelOptionalExpand Read preferences — response body — Preferences Product And Services Prefs
ReportPrefsModelOptionalExpand Read preferences — response body — Preferences Report Prefs
SalesFormsPrefsModelOptionalExpand Read preferences — response body — Preferences Sales Forms Prefs
SyncTokenstringOptionalVersion number of the object. It is used to lock an object for use by one app at a time. As soon as an application modifies an object, its SyncToken is incremented. Attempts to modify an object specifying an older SyncToken fails. Only the latest version of the object is maintained by QuickBooks Online.
Read only: true
TaxPrefsModelOptionalExpand Read preferences — response body — Preferences Tax Prefs
TimeTrackingPrefsModelOptionalExpand Read preferences — response body — Preferences Time Tracking Prefs
VendorAndPurchasesPrefsModelOptionalExpand Read preferences — response body — Preferences Vendor And Purchases Prefs

Referenced models: Read preferences — response body — Preferences Accounting Info Prefs, Read preferences — response body — Preferences Currency Prefs, Full update preferences — request body — body Email Messages Prefs, Read a bill — response body — Bill Meta Data, Read preferences — response body — Preferences Product And Services Prefs, Read preferences — response body — Preferences Report Prefs, Read preferences — response body — Preferences Sales Forms Prefs, Read preferences — response body — Preferences Tax Prefs, Read preferences — response body — Preferences Time Tracking Prefs, Read preferences — response body — Preferences Vendor And Purchases Prefs

Read preferences — response body — Preferences Accounting Info Prefs
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
BookCloseDatestringOptionalThis setting corresponds to the Closing date preference in the QuickBooks Online Company Settings and specifies the date the books are closed: income and expense accounts are closed and net profit or loss is rolled up into the retained earnings account. Transactions before this date are protected from changes.
Read only: true
ClassTrackingPerTxnJSONOptionalThis setting correspond to how classes are assigned when Track classes in QuickBooks Online Company Settings under Categories is set to On . If set to true , assign classes at the transaction level. Only one of ClassTrackingPerTxnLine or ClassTrackingPerTxn can be set to true at a given time. If Track classes is set to Off in company settings, both are set to false .
ClassTrackingPerTxn (anyOf 1)booleanAlternative
ClassTrackingPerTxn (anyOf 2)stringAlternativeKnown values: true, false
ClassTrackingPerTxnLineJSONOptionalThis setting correspond to how classes are assigned when Track classes in QuickBooks Online Company Settings under Categories is set to On . If set to true , assign classes at the line level. Only one of ClassTrackingPerTxnLine or ClassTrackingPerTxn can be set to true at a given time. If Track classes is set to Off in company settings, both are set to false .
ClassTrackingPerTxnLine (anyOf 1)booleanAlternative
ClassTrackingPerTxnLine (anyOf 2)stringAlternativeKnown values: true, false
CustomerTerminologystringOptionalThis setting corresponds to the Customer label preference in QuickBooks Online Company Settings and specifies the term used by the company for customers. This string is used in many places throughout the QuickBooks UI having to do with sales-side activities. Possible values include: Clients , Customers , Donors , Guests , Members , Patients , Tenants .
DepartmentTerminologystringOptionalSpecifies the term used by the company for department. This string is used as a label on transaction forms. Possible values include: Business , Department , Division , Location , Property , Store , Territory . This is returned only if the company's Track location preference is enabled. See TrackDepartments for more details.
FirstMonthOfFiscalYearstringOptionalThis setting corresponds to the First month of fiscal year preference in the QuickBooks Online Company Settings to specify the beginning of the company's fiscal year. Specify months as fulling spelled out: January , February , and so on.
Read only: true
TaxFormstringOptionalThis setting corresponds to the Tax form preference in the QuickBooks Online Company Settings to specify the tax form your company files.
Read only: true
TaxYearMonthstringOptionalThis setting corresponds to the First month of income tax year preference in the QuickBooks Online Company Settings to specify the beginning of the company's fiscal year. Specify months as fulling spelled out: January , February , and so on.
Read only: true
TrackDepartmentsJSONOptionalThis setting corresponds to the Track locations preference in QuickBooks Online Company Settings under Categories. If Track locations is set to On , this attribute is returned as true in the response. Otherwise, false is returned.
TrackDepartments (anyOf 1)booleanAlternative
TrackDepartments (anyOf 2)stringAlternativeKnown values: true, false
UseAccountNumbersJSONOptionalThis setting corresponds to Enable account numbers in QuickBooks Online Company Settings. If set to On , account names are displayed with their corresponding account numbers in chart of accounts. If set to off , account numbers are not displayed with account names in chart of accounts.
Read only: true
UseAccountNumbers (anyOf 1)booleanAlternative
UseAccountNumbers (anyOf 2)stringAlternativeKnown values: true, false
Read preferences — response body — Preferences Currency Prefs
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
HomeCurrencyModelOptionalExpand Read an item — response body — Item Class Ref
MultiCurrencyEnabledJSONOptionalMulticurrency enabled for this company. Not available with QuickBooks Simple Start.
Read only: true
MultiCurrencyEnabled (anyOf 1)booleanAlternative
MultiCurrencyEnabled (anyOf 2)stringAlternativeKnown values: true, false

Referenced models: Read an item — response body — Item Class Ref

Full update preferences — request body — body Email Messages Prefs
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
EstimateMessageModelOptionalExpand Full update preferences — request body — body Email Messages Prefs Invoice Message
Email message details for Estimate.
InvoiceMessageModelOptionalExpand Full update preferences — request body — body Email Messages Prefs Invoice Message
Email message details for Invoice.
SalesReceiptMessageModelOptionalExpand Full update preferences — request body — body Email Messages Prefs Invoice Message
Email message details for SalesReceipt.
StatementMessageModelOptionalExpand Full update preferences — request body — body Email Messages Prefs Invoice Message
Email message details for Statement.

Referenced models: Full update preferences — request body — body Email Messages Prefs Invoice Message

Read a bill — response body — Bill Meta Data
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
CreateTimestringOptionalTime the entity was created in the source domain.
Read only: true
LastUpdatedTimestringOptionalTime the entity was last updated in the source domain.
Read only: true
Full update preferences — request body — body Email Messages Prefs Invoice Message
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
MessagestringOptionalThe body of the email message.
SubjectstringOptionalThe subject of the email.

SDK function policy ID: quickbooks.preferences.query_preferences. Catalog operation: query. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.