Company-level reads: CompanyInfo (name, address, fiscal year start, country) and Preferences (currency, accounting, sales-form and tax settings an agent should check before writing transactions, e.g. whether multicurrency or class tracking is on).

info ::quickbooks::company/company-info()
info.CompanyName
prefs ::quickbooks::company/preferences()
prefs.CurrencyPrefs.HomeCurrency.value

Functions

company-info

fn (): Map
fn (opts: Map): Map

GET /companyinfo/{realmId} - the connected company's CompanyInfo.

Example

info ::quickbooks::company/company-info()
info.CompanyName

// Another company, for this call only
other ::quickbooks::company/company-info({realm-id: "9341453", access-token: ::hot::ctx/get("quickbooks.access.token")})
other.Country

preferences

fn (): Map
fn (opts: Map): Map

GET /preferences - the company's Preferences.

Example

prefs ::quickbooks::company/preferences()
prefs.CurrencyPrefs.MultiCurrencyEnabled
prefs.AccountingInfoPrefs.ClassTrackingPerTxn