Skip to content

QuickBooks: Read a vendor

QuickBooks vendor.get: arguments, response, policy and SDK examples.

← Vendor operations · Get started

Operation quickbooks.vendor.read_a_vendor

Provider route: GET /v3/company/{realmID}/vendor/{vendorId}. 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["vendor"]["get"]>[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.vendor.get(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.vendor.get(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
query.includestringOptionalOne of: enhancedAllCustomFields
pathobjectRequired within parentAdditional keys: not allowed
path.vendorIdstringRequired within parentMinimum 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
VendorModelOptionalExpand Read a vendor — response body — Vendor

Referenced models: Read a vendor — response body — Vendor

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

Read a vendor — response body — Vendor
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
AcctNumstringOptionalName or number of the account associated with this vendor.
ActiveJSONOptionalIf true, this object is currently enabled for use by QuickBooks.
Active (anyOf 1)booleanAlternative
Active (anyOf 2)stringAlternativeKnown values: true, false
AlternatePhoneModelOptionalExpand Create a vendor — request body — body Fax
Alternate phone number.
BalanceJSONOptionalSpecifies the open balance amount or the amount unpaid by the customer. For the create operation, this represents the opening balance for the customer. When returned in response to the query request it represents the current open balance (unpaid amount) for that customer. Write-on-create, read-only otherwise.
Decimal string
Read only: true
Balance (anyOf 1)JSONAlternative
Balance (anyOf 1) (anyOf 1)numberAlternative
Balance (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Balance (anyOf 2)stringAlternative
BillAddrModelOptionalExpand Create a vendor — request body — body Bill Addr
Default billing 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.
BillRateJSONOptionalBillRate can be set to specify this vendor's hourly billing rate.
Decimal string
BillRate (anyOf 1)JSONAlternative
BillRate (anyOf 1) (anyOf 1)numberAlternative
BillRate (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
BillRate (anyOf 2)stringAlternative
CompanyNamestringOptionalThe name of the company associated with the person or organization.
CostRateJSONOptionalPay rate of the vendor
Decimal string
CostRate (anyOf 1)JSONAlternative
CostRate (anyOf 1) (anyOf 1)numberAlternative
CostRate (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
CostRate (anyOf 2)stringAlternative
CurrencyRefModelOptionalExpand Read a bill — response body — Bill Currency Ref
Reference to the currency in which all amounts associated with this vendor are expressed. Once set, it cannot be changed. If specified currency is not currently in the company's currency list, it is added. If not specified, currency for this vendor is the home currency of the company, as defined by Preferences.CurrencyPrefs.HomeCurrency . Read-only after object is created.
Read only: true
DisplayNamestringOptionalThe name of the vendor as displayed. Must be unique across all Vendor, Customer, and Employee objects. Cannot be removed with sparse update. If not supplied, the system generates DisplayName by concatenating vendor name components supplied in the request from the following list: Title , GivenName , MiddleName , FamilyName , and Suffix .
FamilyNamestringOptionalFamily name or the last name of the person. The DisplayName attribute or at least one of Title , GivenName , MiddleName , FamilyName , or Suffix attributes is required for object create.
Conditionally required
FaxModelOptionalExpand Create a vendor — request body — body Fax
Fax number.
GivenNamestringOptionalGiven name or first name of a person. The DisplayName attribute or at least one of Title , GivenName , MiddleName , FamilyName , or Suffix attributes is required for object create.
Conditionally required
HasTPARJSONOptionalIndicate if the vendor has TPAR enabled. TPAR stands for Taxable Payments Annual Report. The TPAR is mandated by ATO to get the details payments that businesses make to contractors for providing services. Some government entities also need to report the grants they have paid in a TPAR.
HasTPAR (anyOf 1)booleanAlternative
HasTPAR (anyOf 2)stringAlternativeKnown values: true, false
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.
MiddleNamestringOptionalMiddle name of the person. The person can have zero or more middle names. The DisplayName attribute or at least one of Title , GivenName , MiddleName , FamilyName , or Suffix attributes is required for object create.
Conditionally required
MobileModelOptionalExpand Create a vendor — request body — body Fax
Mobile phone number.
OtherContactInfoarrayOptionalList of ContactInfo entities of any contact info type.
OtherContactInfo[]ModelEach itemExpand Create a vendor — request body — body Other Contact Info item
PrimaryEmailAddrModelOptionalExpand Full update companyinfo — request body — body Email
Primary email address.
PrimaryPhoneModelOptionalExpand Create a vendor — request body — body Fax
Primary phone number.
PrintOnCheckNamestringOptionalName of the person or organization as printed on a check. If not provided, this is populated from DisplayName . Cannot be removed with sparse update.
SourcestringOptionalThe Source type of the transactions created by QuickBooks Commerce. Valid values include: QBCommerce
SuffixstringOptionalSuffix of the name. For example, Jr . The DisplayName attribute or at least one of Title , GivenName , MiddleName , FamilyName , or Suffix attributes is required for object create.
Conditionally required
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
T4AEligibleJSONOptionalTrue if vendor is T4A eligible. Valid for CA locale
T4AEligible (anyOf 1)booleanAlternative
T4AEligible (anyOf 2)stringAlternativeKnown values: true, false
T5018EligibleJSONOptionalTrue if vendor is T5018 eligible. Valid for CA locale
T5018Eligible (anyOf 1)booleanAlternative
T5018Eligible (anyOf 2)stringAlternativeKnown values: true, false
TaxIdentifierstringOptionalThe tax ID of the Person or Organization. The value is masked in responses, exposing only last four characters. For example, the ID of 123-45-6789 is returned as XXXXXXX6789 .
TermRefModelOptionalExpand Read an item — response body — Item Class Ref
Reference to a default Term associated with this Vendor object. Query the Term name list resource to determine the appropriate Term object for this reference. Use Term.Id and Term.Name from that object for TermRef.value and TermRef.name , respectively.
TitlestringOptionalTitle of the person. This tag supports i18n, all locales. The DisplayName attribute or at least one of Title , GivenName , MiddleName , FamilyName , or Suffix attributes are required during create.
Conditionally required
Vendor1099JSONOptionalThis vendor is an independent contractor; someone who is given a 1099-MISC form at the end of the year. A 1099 vendor is paid with regular checks, and taxes are not withheld on their behalf.
Vendor1099 (anyOf 1)booleanAlternative
Vendor1099 (anyOf 2)stringAlternativeKnown values: true, false
VendorPaymentBankDetailModelOptionalExpand Create a vendor — request body — body Vendor Payment Bank Detail
Vendor Payment Bank Detail.
WebAddrModelOptionalExpand Create a vendor — request body — body Web Addr
Website address.

Referenced models: Create a vendor — request body — body Other Contact Info item, Read a bill — response body — Bill Currency Ref, Full update companyinfo — request body — body Email, Read a bill — response body — Bill Meta Data, Create a vendor — request body — body Bill Addr, Read an item — response body — Item Class Ref, Create a vendor — request body — body Fax, Create a vendor — request body — body Vendor Payment Bank Detail, Create a vendor — request body — body Web Addr

Create a vendor — request body — body Other Contact Info item
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
TelephonestringOptional
TypestringOptionalThe type of contact information. Valid values: TelephoneNumber
Read a bill — response body — Bill Currency Ref
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
namestringOptionalThe full name of the currency.
valueJSONOptional
value (anyOf 1)stringAlternative
value (anyOf 2)JSONAlternative
value (anyOf 2) (anyOf 1)integerAlternative
value (anyOf 2) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

SDK function policy ID: quickbooks.vendor.read_a_vendor. Catalog operation: vendors/get. 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.