A vendor in QuickBooks Desktop is an entity that represents a person, company, or business entity from which a business purchases goods or services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. This entity is crucial for tracking and managing expenses and accounts payable.

To see all of the request parameters and response fields for , check out our client library’s amazing autocomplete.

Fetching vendors

It is quite simple to fetch vendors. There are many optional request parameters you can use to filter the results.

Fetching all vendors
const vendors = await conductor.qbd.vendor.query("{{END_USER_ID}}");
Fetching all vendors with a filter
const vendors = await conductor.qbd.vendor.query("{{END_USER_ID}}", {
  NameFilter: {
    MatchCriterion: "StartsWith",
    Name: "Test Vendor",
  },
});

Creating vendors

Creating vendors is also quite simple. There are many optional request parameters available, but the only required one is Name.

Creating a vendor
const vendor = await conductor.qbd.vendor.add("{{END_USER_ID}}", {
  // Create a unique name for testing because QBD requires unique names.
  Name: "Test Vendor " + Date.now(),
});