Skip to content

QuickBooks: Sparse update companyinfo

QuickBooks companyinfo.updateSparse: arguments, response, policy and SDK examples.

← companyinfo operations · Get started · OpenAPI downloads

Contract 2026-10-20 · Operation quickbooks.companyinfo.sparse_update_companyinfo

Provider route: POST /v3/company/{realmID}/companyinfo. 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["companyinfo"]["updateSparse"]>[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.companyinfo.updateSparse(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.companyinfo.update_sparse(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectOptionalAdditional keys: not allowed
query.minorversionintegerOptionalMust equal: 75
query.requestidstringOptionalMinimum length: 1
bodyobjectRequired within parentFields not accepted: sparse
Additional keys: not allowed
body.CompanyAddrModelOptionalExpand Create a vendor — request body — body Bill Addr
Company Address as described in preference. If a physical address is updated from within the transaction object, the QuickBooks Online API flows individual address components differently into the Line elements of the transaction response then when the transaction was first created: Line1 and Line2 elements are populated with the customer name and company name. Original Line1 through Line 5 contents, City , SubDivisionCode , and PostalCode flow into Line3 through Line5 as a free format strings.
body.CompanyNamestringOptionalThe name of the company.
body.CompanyStartDatestringOptionalDateTime when company file was created. This field and Metadata.CreateTime contain the same value.
Read only: true
body.CountrystringOptionalCountry name to which the company belongs for financial calculations.
body.CustomerCommunicationAddrModelOptionalExpand Create a vendor — request body — body Bill Addr
Address of the company as given to their customer, sometimes the address given to the customer mail address is different from Company address. If a physical address is updated from within the transaction object, the QuickBooks Online API flows individual address components differently into the Line elements of the transaction response then when the transaction was first created: Line1 and Line2 elements are populated with the customer name and company name. Original Line1 through Line 5 contents, City , SubDivisionCode , and PostalCode flow into Line3 through Line5 as a free format strings.
body.EmailModelOptionalExpand Full update companyinfo — request body — body Email
Default email address.
body.EmployerIdstringOptionalIf your QuickBooks company has defined an EIN in company settings, this value is returned.
body.FiscalYearStartMonthstringOptionalThe start month of fiscal year.
body.IdstringRequired within parent
body.LegalAddrModelOptionalExpand Create a vendor — request body — body Bill Addr
Legal Address given to the government for any government communication. If a physical address is updated from within the transaction object, the QuickBooks Online API flows individual address components differently into the Line elements of the transaction response then when the transaction was first created: Line1 and Line2 elements are populated with the customer name and company name. Original Line1 through Line 5 contents, City , SubDivisionCode , and PostalCode flow into Line3 through Line5 as a free format strings.
body.LegalNamestringOptionalThe legal name of the company.
body.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.
body.NameValuearrayOptionalAny other preference not covered with the standard set of attributes. See Data Services Extensions, below, for special reserved name/value pairs. NameValue.Name—Name of the element. NameValue.Value—Value of the element.
body.NameValue[]objectEach itemAdditional keys: allowed
body.PrimaryPhoneModelOptionalExpand Create a vendor — request body — body Fax
Primary phone number.
body.SupportedLanguagesstringOptionalComma separated list of languages.
body.SyncTokenstringRequired within parent
body.WebAddrModelOptionalExpand Create a vendor — request body — body Web Addr
Website address.
body.domainstringOptional
body.sparsebooleanRequired within parentMust equal: true

Referenced models: Full update companyinfo — request body — body Email, Read a bill — response body — Bill Meta Data, Create a vendor — request body — body Bill Addr, Create a vendor — request body — body Fax, Create a vendor — request body — body Web Addr

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
CompanyInfoModelOptionalExpand Read companyinfo — response body — Company Info

Referenced models: Read companyinfo — response body — Company Info

SDK function policy ID: quickbooks.companyinfo.sparse_update_companyinfo. Catalog operation: companyinfo/full_update_companyinfo. 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 which product and documentation features are useful.

Performance diagnostics

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

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