Theme
Account
Accounts make up the company's chart of accounts. Items, bills, bill payments and payments refer to them: an income account on a service item, an expense account on a bill line, a bank account to pay a bill from. Account 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
- "Name must be unique."
- "The Account.Name attribute must not contain double quotes (") or colon (:)."
AccountTypeorAccountSubTypeis required. Without either, the call fails with error 6010.- "If you need to delete an account, set the Active attribute to false in an object update request."
- "You must serially perform updates and additions to list entities". Do not batch them or send them in parallel.
- Every update needs the current
IdandSyncToken. An olderSyncTokenfails with 5010 Stale Object Error. - Sparse update is not listed on Intuit's Account reference, but it worked on the sandbox on 2026-12-01 (this collection).
Postman folder: 2. Accounts (chart of accounts); deactivation is in 12. Cleanup. Intuit reference: Account · account types and subtypes.
The Account object
Fields the collection uses. The full attribute list is in Intuit's reference.
| Attribute | Requirement | Type | Description |
|---|---|---|---|
Id | * Required for update | String, filterable | Unique id of the account. |
SyncToken | * Required for update | String | Version number. "Attempts to modify an object specifying an older SyncToken fails." |
Name | * Required | String, filterable | Unique. No double quotes or colons. |
AccountType | * Conditionally required | AccountTypeEnum, filterable | Required if AccountSubType is not specified. Types include Bank, Other Current Asset, Fixed Asset, Other Asset, Accounts Receivable, Equity, Expense, Other Expense, Cost of Goods Sold, Accounts Payable, Credit Card, Long Term Liability, Other Current Liability, Income, Other Income. |
AccountSubType | * Conditionally required | String, filterable | Required if AccountType is not specified. Use the enum form without spaces, for example SalesOfProductIncome, Inventory. |
Description | Optional | String, filterable | Free text. The collection writes a test marker. |
Active | Optional | Boolean, filterable | false deactivates the account. Queries return only active accounts unless you filter on Active. |
Classification | String, filterable | Asset, Equity, Expense, Liability or Revenue; derived from the type. |
Sample object (abridged)
json
{
"Account": {
"Id": "152",
"SyncToken": "0",
"Name": "QBOC-TEST mi4x2k Expense",
"AccountType": "Expense",
"Description": "QBO Connect Postman test",
"Active": true
},
"time": "2026-12-01T02:05:00.000-08:00"
}Create an account
Creates an expense account named QBOC-TEST <run_id> Expense. AccountType, and optionally AccountSubType, decides where the account appears.
Request body
| Attribute | Requirement | Type | Description |
|---|---|---|---|
Name | * Required | String | QBOC-TEST {{run_id}} Expense. |
AccountType | * Conditionally required | AccountTypeEnum | Expense. Required if AccountSubType is not specified. |
AccountSubType | * Conditionally required | String | Not sent. Required if AccountType is not specified. |
Description | Optional | String | QBO Connect Postman test. |
Returns
The new Account object. The test stores Account.Id in account_id and Account.SyncToken in account_sync_token.
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/account?requestid={{request_id}} |
| Intuit operation | POST/v3/company/<realmID>/account |
| Content type | application/json |
| Postman | 2. Accounts › Create account |
| Stores | account_id, account_sync_token |
Request body
json
{
"Name": "QBOC-TEST {{run_id}} Expense",
"AccountType": "Expense",
"Description": "QBO Connect Postman test"
}Returns (abridged)
json
{
"Account": {
"Id": "152",
"SyncToken": "0",
"Name": "QBOC-TEST mi4x2k Expense",
"AccountType": "Expense",
"Description": "QBO Connect Postman test",
"Active": true
},
"time": "2026-12-01T02:05:00.000-08:00"
}Query an account
The collection runs four account queries. The first three choose the accounts that the item, bill and bill-payment requests use later.
| Postman request | Query | Stores |
|---|---|---|
| Query income accounts | select * from Account where AccountType = 'Income' and Active = true MAXRESULTS 5 | income_account_id |
| Query expense accounts | select * from Account where AccountType = 'Expense' and Active = true MAXRESULTS 5 | expense_account_id |
| Query bank accounts | select * from Account where AccountType = 'Bank' and Active = true MAXRESULTS 5 | bank_account_id |
| Count accounts | select count(*) from Account | — |
Each of the first three tests needs at least one row and stores the first row's Id. Count accounts checks that QueryResponse.totalCount is a number.
Returns
QueryResponse with the matching accounts, or with totalCount only for count(*).
Returns for select count(*) from Account
json
{
"QueryResponse": {
"totalCount": 95
},
"time": "2026-12-01T02:04:01.000-08:00"
}| Request | |
|---|---|
| Request URL | GET{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/query?query=<selectStatement> |
| Intuit operation | GET/v3/company/<realmID>/query?query=<selectStatement> |
| Accept | application/json |
| Postman | 2. Accounts › Query income accounts, Query expense accounts, Query bank accounts, Count accounts |
Sample query
text
select * from Account where AccountType = 'Income' and Active = true MAXRESULTS 5Returns (abridged)
json
{
"QueryResponse": {
"Account": [
{ "Id": "79", "Name": "Sales", "AccountType": "Income", "Active": true }
],
"startPosition": 1,
"maxResults": 1
},
"time": "2026-12-01T02:04:00.000-08:00"
}Read an account
Retrieves the details of an Account object that has been previously created. The test refreshes account_sync_token.
Returns
The Account object.
Returns: as in Create an account.
| Request | |
|---|---|
| Request URL | GET{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/account/{{account_id}} |
| Intuit operation | GET/v3/company/<realmID>/account/<accountId> |
| Accept | application/json |
| Postman | 2. Accounts › Read account |
| Stores | account_sync_token |
Sparse update an account
Changes only the fields sent. Every update needs the current Id and SyncToken, which provide optimistic locking.
Request body
| Attribute | Requirement | Type | Description |
|---|---|---|---|
Id | * Required for update | String | {{account_id}}. |
SyncToken | * Required for update | String | {{account_sync_token}}, the latest version. |
sparse | * Required for a sparse update | Boolean | true. Fields that are not sent keep their values. |
Description | Optional | String | New description. |
Returns
The updated Account object, with a higher SyncToken. The test stores it in account_sync_token.
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/account?requestid={{request_id}} |
| Intuit operation | POST/v3/company/<realmID>/account |
| Content type | application/json |
| Postman | 2. Accounts › Update account (sparse) |
| Stores | account_sync_token |
Request body
json
{
"Id": "{{account_id}}",
"SyncToken": "{{account_sync_token}}",
"sparse": true,
"Description": "Updated by QBO Connect Postman test"
}Returns (abridged)
json
{
"Account": {
"Id": "152",
"SyncToken": "1",
"Name": "QBOC-TEST mi4x2k Expense",
"Description": "Updated by QBO Connect Postman test",
"Active": true
},
"time": "2026-12-01T02:06:00.000-08:00"
}Deactivate an account
Accounts cannot be deleted. Deactivation is a sparse update with Active: false. The collection does it in folder 12: Read test account stores the current SyncToken in cleanup_sync_token, then Deactivate test account sends the update. The test checks Account.Active is false.
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/account?requestid={{request_id}} |
| Intuit operation | POST/v3/company/<realmID>/account |
| Content type | application/json |
| Postman | 12. Cleanup › Read test account, Deactivate test account |
Request body
json
{
"Id": "{{account_id}}",
"SyncToken": "{{cleanup_sync_token}}",
"sparse": true,
"Active": false
}Returns (abridged)
json
{
"Account": {
"Id": "152",
"SyncToken": "2",
"Active": false
},
"time": "2026-12-01T02:30:00.000-08:00"
}