QuickBooks: Full update preferences
QuickBooks preferences.update: arguments, response, policy and SDK examples.
← Preferences operations · Get started
Operation quickbooks.preferences.full_update_preferences
Provider route: POST /v3/company/{realmID}/preferences. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”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"]["update"]>[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.update(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom 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.update(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
query | object | Optional | Additional keys: not allowed |
query.minorversion | integer | Optional | Must equal: 75 |
query.requestid | string | Optional | Minimum length: 1 |
body | object | Required within parent | Fields not accepted: sparse Additional keys: not allowed |
body.AccountingInfoPrefs | Model | Optional | Expand Full update preferences — request body — body 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 . |
body.CurrencyPrefs | Model | Optional | Expand Full update preferences — request body — body Currency Prefs |
body.EmailMessagesPrefs | Model | Optional | Expand Full update preferences — request body — body Email Messages Prefs |
body.Id | string | Required within parent | |
body.MetaData | Model | Optional | Expand 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. |
body.OtherPrefs | object | Optional | Specifies extension of Preference resource to allow extension of Name-Value pair based extension at the top level. Additional keys: allowed |
body.ProductAndServicesPrefs | Model | Optional | Expand Full update preferences — request body — body Product And Services Prefs |
body.ReportPrefs | Model | Optional | Expand Full update preferences — request body — body Report Prefs |
body.SalesFormsPrefs | Model | Optional | Expand Full update preferences — request body — body Sales Forms Prefs |
body.SyncToken | string | Required within parent | |
body.TaxPrefs | Model | Optional | Expand Full update preferences — request body — body Tax Prefs |
body.TimeTrackingPrefs | Model | Optional | Expand Full update preferences — request body — body Time Tracking Prefs |
body.VendorAndPurchasesPrefs | Model | Optional | Expand Full update preferences — request body — body Vendor And Purchases Prefs |
body.domain | string | Optional | |
body.sparse | boolean | Optional | Must equal: false |
Referenced models: Full update preferences — request body — body Email Messages Prefs, Read a bill — response body — Bill Meta Data, Full update preferences — request body — body Accounting Info Prefs, Full update preferences — request body — body Currency Prefs, Full update preferences — request body — body Product And Services Prefs, Full update preferences — request body — body Report Prefs, Full update preferences — request body — body Sales Forms Prefs, Full update preferences — request body — body Tax Prefs, Full update preferences — request body — body Time Tracking Prefs, Full update preferences — request body — body Vendor And Purchases Prefs
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
time | string | Optional | |
Preferences | Model | Optional | Expand Read preferences — response body — Preferences |
Referenced models: Read preferences — response body — Preferences
Schemas
Section titled “Schemas”23 more schemas are linked from the tables above, on the schema pages.
Full update preferences — request body — body Email Messages Prefs
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
EstimateMessage | Model | Optional | Expand Full update preferences — request body — body Email Messages Prefs Invoice Message Email message details for Estimate. |
InvoiceMessage | Model | Optional | Expand Full update preferences — request body — body Email Messages Prefs Invoice Message Email message details for Invoice. |
SalesReceiptMessage | Model | Optional | Expand Full update preferences — request body — body Email Messages Prefs Invoice Message Email message details for SalesReceipt. |
StatementMessage | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
CreateTime | string | Optional | Time the entity was created in the source domain. Read only: true |
LastUpdatedTime | string | Optional | Time the entity was last updated in the source domain. Read only: true |
Read preferences — response body — Preferences
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
AccountingInfoPrefs | Model | Optional | Expand 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 . |
CurrencyPrefs | Model | Optional | Expand Read preferences — response body — Preferences Currency Prefs |
EmailMessagesPrefs | Model | Optional | Expand Full update preferences — request body — body Email Messages Prefs |
Id | string | Optional | Unique identifier for this object. Read only: true |
MetaData | Model | Optional | Expand 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. |
OtherPrefs | object | Optional | Specifies extension of Preference resource to allow extension of Name-Value pair based extension at the top level. Additional keys: allowed |
ProductAndServicesPrefs | Model | Optional | Expand Read preferences — response body — Preferences Product And Services Prefs |
ReportPrefs | Model | Optional | Expand Read preferences — response body — Preferences Report Prefs |
SalesFormsPrefs | Model | Optional | Expand Read preferences — response body — Preferences Sales Forms Prefs |
SyncToken | string | Optional | Version 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 |
TaxPrefs | Model | Optional | Expand Read preferences — response body — Preferences Tax Prefs |
TimeTrackingPrefs | Model | Optional | Expand Read preferences — response body — Preferences Time Tracking Prefs |
VendorAndPurchasesPrefs | Model | Optional | Expand 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
Full update preferences — request body — body Accounting Info Prefs
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
BookCloseDate | string | Optional | This 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 |
ClassTrackingPerTxn | JSON | Optional | This 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) | boolean | Alternative | |
ClassTrackingPerTxn (anyOf 2) | string | Alternative | One of: true, false |
ClassTrackingPerTxnLine | JSON | Optional | This 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) | boolean | Alternative | |
ClassTrackingPerTxnLine (anyOf 2) | string | Alternative | One of: true, false |
CustomerTerminology | string | Optional | This 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 . |
DepartmentTerminology | string | Optional | Specifies 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. |
FirstMonthOfFiscalYear | string | Optional | This 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 |
TaxForm | string | Optional | This setting corresponds to the Tax form preference in the QuickBooks Online Company Settings to specify the tax form your company files. Read only: true |
TaxYearMonth | string | Optional | This 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 |
TrackDepartments | JSON | Optional | This 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) | boolean | Alternative | |
TrackDepartments (anyOf 2) | string | Alternative | One of: true, false |
UseAccountNumbers | JSON | Optional | This 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) | boolean | Alternative | |
UseAccountNumbers (anyOf 2) | string | Alternative | One of: true, false |
Full update preferences — request body — body Currency Prefs
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
HomeCurrency | Model | Optional | Expand Create a purchase order — request body — body Ship To |
MultiCurrencyEnabled | JSON | Optional | Multicurrency enabled for this company. Not available with QuickBooks Simple Start. Read only: true |
MultiCurrencyEnabled (anyOf 1) | boolean | Alternative | |
MultiCurrencyEnabled (anyOf 2) | string | Alternative | One of: true, false |
Referenced models: Create a purchase order — request body — body Ship To
Full update preferences — request body — body Email Messages Prefs Invoice Message
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
Message | string | Optional | The body of the email message. |
Subject | string | Optional | The subject of the email. |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: quickbooks.preferences.full_update_preferences. Catalog operation: preferences/full_update_preferences. 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.