QuickBooks: Sparse update companyinfo
QuickBooks companyinfo.updateSparse: arguments, response, policy and SDK examples.
← Companyinfo operations · Get started
Operation quickbooks.companyinfo.sparse_update_companyinfo
Provider route: POST /v3/company/{realmID}/companyinfo. 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["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 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.companyinfo.update_sparse(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.CompanyAddr | Model | Optional | Expand 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.CompanyName | string | Optional | The name of the company. |
body.CompanyStartDate | string | Optional | DateTime when company file was created. This field and Metadata.CreateTime contain the same value. Read only: true |
body.Country | string | Optional | Country name to which the company belongs for financial calculations. |
body.CustomerCommunicationAddr | Model | Optional | Expand 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.Email | Model | Optional | Expand Full update companyinfo — request body — body Email Default email address. |
body.EmployerId | string | Optional | If your QuickBooks company has defined an EIN in company settings, this value is returned. |
body.FiscalYearStartMonth | string | Optional | The start month of fiscal year. |
body.Id | string | Required within parent | |
body.LegalAddr | Model | Optional | Expand 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.LegalName | string | Optional | The legal name of the company. |
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.NameValue | array | Optional | Any 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[] | object | Each item | Additional keys: allowed |
body.PrimaryPhone | Model | Optional | Expand Create a vendor — request body — body Fax Primary phone number. |
body.SupportedLanguages | string | Optional | Comma separated list of languages. |
body.SyncToken | string | Required within parent | |
body.WebAddr | Model | Optional | Expand Create a vendor — request body — body Web Addr Website address. |
body.domain | string | Optional | |
body.sparse | boolean | Required within parent | Must 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
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 | |
CompanyInfo | Model | Optional | Expand Read companyinfo — response body — Company Info |
Referenced models: Read companyinfo — response body — Company Info
Schemas
Section titled “Schemas”Read companyinfo — response body — Company Info
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
CompanyAddr | Model | Optional | Expand 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. |
CompanyName | string | Optional | The name of the company. |
CompanyStartDate | string | Optional | DateTime when company file was created. This field and Metadata.CreateTime contain the same value. Read only: true |
Country | string | Optional | Country name to which the company belongs for financial calculations. |
CustomerCommunicationAddr | Model | Optional | Expand 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. |
Email | Model | Optional | Expand Full update companyinfo — request body — body Email Default email address. |
EmployerId | string | Optional | If your QuickBooks company has defined an EIN in company settings, this value is returned. |
FiscalYearStartMonth | string | Optional | The start month of fiscal year. |
Id | string | Optional | Unique identifier for this object. Read only: true |
LegalAddr | Model | Optional | Expand 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. |
LegalName | string | Optional | The legal name of the company. |
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. |
NameValue | array | Optional | Any 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. |
NameValue[] | object | Each item | Additional keys: allowed |
PrimaryPhone | Model | Optional | Expand Create a vendor — request body — body Fax Primary phone number. |
SupportedLanguages | string | Optional | Comma separated list of languages. |
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 |
WebAddr | Model | Optional | Expand Create a vendor — request body — body Web Addr Website address. |
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
Full update companyinfo — request body — body Email
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
Address | string | Optional | An email address. The address format must follow the RFC 822 standard. |
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 |
Create a vendor — request body — body Bill Addr
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
City | string | Optional | City name. |
Country | string | Optional | For international addresses, the request can be an ISO alpha-3 code or the full name of the country. The response for update and read operations returns ISO alpha-3 country codes only. |
CountrySubDivisionCode | string | Optional | Region within a country. For example, state name for USA, province name for Canada. |
Id | string | Optional | Unique identifier of the QuickBooks object for the address, autoincremented when the address is changed. This is an internal value included for backwards compatibility and can be ignored. Read only: true |
Line1 | string | Optional | First line of the address. |
Line2 | string | Optional | Second line of the address. |
Line3 | string | Optional | Third line of the address. |
Line4 | string | Optional | Fourth line of the address. |
Line5 | string | Optional | Fifth line of the address. |
PostalCode | string | Optional | Postal code. For example, zip code for USA and Canada |
Create a vendor — request body — body Fax
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
FreeFormNumber | string | Optional | Specifies the telephone number in free form. |
Create a vendor — request body — body Web Addr
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
URI | string | Optional | Uniform Resource Identifier for the web site. |
Policy, approvals and errors
Section titled “Policy, approvals and errors”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.