Theme
Vendor
A vendor is someone the company buys from. Bills and bill payments refer to it through VendorRef. Vendor is a name-list entity. It can be created, read, queried and updated, and it is retired by deactivating it; it cannot be deleted.
Business rules
- "Either the DisplayName attribute or at least one of Title, GivenName, MiddleName, FamilyName, or Suffix attributes are required during create."
- DisplayName must be unique across customers, employees and vendors (6240 Duplicate Name Exists Error). The same character and e-mail rules as Customer apply.
- A full update rewrites the AP account on historical transactions. The collection uses a sparse update instead.
- Sparse update is not listed on Intuit's Vendor reference, but it worked on the sandbox on 2026-12-01 (this collection).
- Canada only:
T4AEligible,T5018Eligible.
Postman folder: 5. Vendors; deactivation is in 12. Cleanup. Intuit reference: Vendor.
The Vendor object
Fields the collection uses. The full attribute list is in Intuit's reference.
| Attribute | Requirement | Type | Description |
|---|---|---|---|
Id | * Required for update | String | Unique id. Goes into VendorRef.value. |
SyncToken | * Required for update | String | Version number for optimistic locking. |
DisplayName | * Conditionally required | String | Required unless a name part is sent. Unique across customers, vendors and employees. |
CompanyName | Optional | String | Company name. |
PrimaryEmailAddr. | Optional | String | Must contain @ and .. |
AcctNum | Optional | String | Vendor account number. The collection's sparse update sets it. |
Active | Optional | Boolean | false deactivates the vendor. |
Create a vendor
Creates QBOC-TEST <run_id> Vendor.
Request body
| Attribute | Requirement | Type | Description |
|---|---|---|---|
DisplayName | * Conditionally required | String | QBOC-TEST {{run_id}} Vendor. |
CompanyName | Optional | String | QBO Connect Test Supplier. |
PrimaryEmailAddr | Optional | Object | {"Address": "{{test_email}}"}. |
Returns
The new Vendor object. The test stores Vendor.Id in vendor_id and Vendor.SyncToken in vendor_sync_token.
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/vendor?requestid={{request_id}} |
| Intuit operation | POST/v3/company/<realmID>/vendor |
| Content type | application/json |
| Postman | 5. Vendors › Create vendor |
| Stores | vendor_id, vendor_sync_token |
Request body
json
{
"DisplayName": "QBOC-TEST {{run_id}} Vendor",
"CompanyName": "QBO Connect Test Supplier",
"PrimaryEmailAddr": {
"Address": "{{test_email}}"
}
}Returns (abridged)
json
{
"Vendor": {
"Id": "71",
"SyncToken": "0",
"DisplayName": "QBOC-TEST mi4x2k Vendor",
"CompanyName": "QBO Connect Test Supplier",
"Active": true
},
"time": "2026-12-01T02:12:00.000-08:00"
}Read a vendor
Retrieves one Vendor object. The test refreshes vendor_sync_token.
| Request | |
|---|---|
| Request URL | GET{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/vendor/{{vendor_id}} |
| Intuit operation | GET/v3/company/<realmID>/vendor/<vendorId> |
| Accept | application/json |
| Postman | 5. Vendors › Read vendor |
| Stores | vendor_sync_token |
Query a vendor
Finds this run's vendors with LIKE. In the URL, %25 is the URL-encoded % wildcard. The test needs at least one row.
| Request | |
|---|---|
| Request URL | GET{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/query?query=select * from Vendor where DisplayName LIKE 'QBOC-TEST {{run_id}}%25' |
| Intuit operation | GET/v3/company/<realmID>/query?query=<selectStatement> |
| Accept | application/json |
| Postman | 5. Vendors › Query vendors (LIKE) |
Sample query (decoded)
text
select * from Vendor where DisplayName LIKE 'QBOC-TEST mi4x2k%'Returns (abridged)
json
{
"QueryResponse": {
"Vendor": [
{ "Id": "71", "SyncToken": "0", "DisplayName": "QBOC-TEST mi4x2k Vendor", "Active": true }
],
"startPosition": 1,
"maxResults": 1
},
"time": "2026-12-01T02:12:05.000-08:00"
}Sparse update a vendor
Sets the account number and leaves every other field as it is.
Request body
| Attribute | Requirement | Type | Description |
|---|---|---|---|
Id | * Required for update | String | {{vendor_id}}. |
SyncToken | * Required for update | String | {{vendor_sync_token}}. |
sparse | * Required for a sparse update | Boolean | true. |
AcctNum | Optional | String | QBOC-{{run_id}}. |
Returns
The updated Vendor object. The test stores the new SyncToken.
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/vendor?requestid={{request_id}} |
| Intuit operation | POST/v3/company/<realmID>/vendor |
| Content type | application/json |
| Postman | 5. Vendors › Update vendor (sparse) |
| Stores | vendor_sync_token |
Request body
json
{
"Id": "{{vendor_id}}",
"SyncToken": "{{vendor_sync_token}}",
"sparse": true,
"AcctNum": "QBOC-{{run_id}}"
}Returns (abridged)
json
{
"Vendor": {
"Id": "71",
"SyncToken": "1",
"DisplayName": "QBOC-TEST mi4x2k Vendor",
"AcctNum": "QBOC-mi4x2k",
"Active": true
},
"time": "2026-12-01T02:13:00.000-08:00"
}Deactivate a vendor
A sparse update with Active: false. In folder 12, Read vendor stores the current SyncToken in cleanup_sync_token, and Deactivate vendor sends the update. The test checks that Vendor.Active is false.
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/vendor?requestid={{request_id}} |
| Intuit operation | POST/v3/company/<realmID>/vendor |
| Content type | application/json |
| Postman | 12. Cleanup › Read vendor, Deactivate vendor |
Request body
json
{
"Id": "{{vendor_id}}",
"SyncToken": "{{cleanup_sync_token}}",
"sparse": true,
"Active": false
}Returns (abridged)
json
{
"Vendor": {
"Id": "71",
"SyncToken": "2",
"Active": false
},
"time": "2026-12-01T02:31:00.000-08:00"
}