Theme
Customer
A customer is someone the company sells to. Invoices, payments and credit memos refer to it through CustomerRef. Customer is a name-list entity. It can be created, read, queried and updated (full or sparse), and it is retired by deactivating it; it cannot be deleted.
Business rules
- "The DisplayName attribute or at least one of Title, GivenName, MiddleName, FamilyName, or Suffix attributes is required during object create." Without one, the call fails with 6080 No Name Provided.
- "The DisplayName attribute must be unique across all other customer, employee, and vendor objects." A duplicate fails with 6240 Duplicate Name Exists Error.
- DisplayName, Title, GivenName, MiddleName, FamilyName, Suffix and PrintOnCheckName "must not contain colon (:), tab (\t), or newline (\n) characters."
- "The PrimaryEmailAddress attribute must contain an at sign (@) and dot (.)."
- Name-list objects "are not deleted. They're simply marked 'inactive.'" A customer with an open balance cannot be deactivated (6220). Void or delete its open invoices first.
- Updates and additions to list entities must be sent one at a time, not in parallel or in a batch.
Postman folder: 4. Customers; deactivation is in 12. Cleanup. Intuit reference: Customer.
The Customer 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. Goes into CustomerRef.value. |
SyncToken | * Required for update | String | Version number for optimistic locking. |
DisplayName | * Conditionally required | String, filterable | Required unless a name part (Title, GivenName, MiddleName, FamilyName, Suffix) is sent. Unique across customers, vendors and employees. "Cannot be removed with sparse update." |
CompanyName | Optional | String, filterable | Company name. |
PrimaryEmailAddr. | Optional | String, filterable | Must contain @ and .. The collection uses test_email. |
BillAddr | Optional | Object | Billing address: Line1, City, CountrySubDivisionCode, PostalCode, Country. |
Notes | Optional | String | Free-text notes. |
PrimaryPhone. | Optional | String | Phone number as typed. |
Active | Optional | Boolean, filterable | false deactivates the customer. |
MetaData. | DateTime | Last change. Usable in queries, as in Query customers changed since. |
Create a customer
Creates QBOC-TEST <run_id> Customer with an e-mail address and a Canadian billing address.
Request body
| Attribute | Requirement | Type | Description |
|---|---|---|---|
DisplayName | * Conditionally required | String | QBOC-TEST {{run_id}} Customer. |
CompanyName | Optional | String | QBO Connect Test Co. |
PrimaryEmailAddr | Optional | Object | {"Address": "{{test_email}}"}. |
BillAddr | Optional | Object | 100 Test Street, Toronto, ON, M5V 2T6, CA. |
Returns
The new Customer object. The test stores Customer.Id in customer_id and Customer.SyncToken in customer_sync_token.
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/customer?requestid={{request_id}} |
| Intuit operation | POST/v3/company/<realmID>/customer |
| Content type | application/json |
| Postman | 4. Customers › Create customer |
| Stores | customer_id, customer_sync_token |
Request body
json
{
"DisplayName": "QBOC-TEST {{run_id}} Customer",
"CompanyName": "QBO Connect Test Co",
"PrimaryEmailAddr": {
"Address": "{{test_email}}"
},
"BillAddr": {
"Line1": "100 Test Street",
"City": "Toronto",
"CountrySubDivisionCode": "ON",
"PostalCode": "M5V 2T6",
"Country": "CA"
}
}Returns (abridged)
json
{
"Customer": {
"Id": "64",
"SyncToken": "0",
"DisplayName": "QBOC-TEST mi4x2k Customer",
"CompanyName": "QBO Connect Test Co",
"PrimaryEmailAddr": {
"Address": "qboc-test@example.com"
},
"Active": true
},
"time": "2026-12-01T02:10:00.000-08:00"
}Read a customer
Retrieves one Customer object. The test refreshes customer_sync_token.
Returns: the Customer object, as in Create a customer.
| Request | |
|---|---|
| Request URL | GET{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/customer/{{customer_id}} |
| Intuit operation | GET/v3/company/<realmID>/customer/<customerId> |
| Accept | application/json |
| Postman | 4. Customers › Read customer |
| Stores | customer_sync_token |
Query a customer
| Postman request | Query | Test |
|---|---|---|
| Query customer by DisplayName | select * from Customer where DisplayName = 'QBOC-TEST {{run_id}} Customer' | at least 1 row |
| Query customers changed since | select * from Customer where MetaData.LastUpdatedTime > '{{changed_since}}' ORDERBY MetaData.LastUpdatedTime MAXRESULTS 50 | HTTP 200 |
changed_since is an ISO 8601 time that 1. CompanyInfo sets to 6 hours ago. This is how Odoo can pull customers changed since its last sync.
Returns
QueryResponse.Customer[].
| 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 | 4. Customers › Query customer by DisplayName, Query customers changed since |
Returns (abridged)
json
{
"QueryResponse": {
"Customer": [
{ "Id": "64", "SyncToken": "0", "DisplayName": "QBOC-TEST mi4x2k Customer", "Active": true }
],
"startPosition": 1,
"maxResults": 1
},
"time": "2026-12-01T02:10:05.000-08:00"
}Sparse update a customer
Changes only the fields sent; fields that are not sent keep their values. It needs the current SyncToken; Read customer refreshes it.
Request body
| Attribute | Requirement | Type | Description |
|---|---|---|---|
Id | * Required for update | String | {{customer_id}}. |
SyncToken | * Required for update | String | {{customer_sync_token}}. |
sparse | * Required for a sparse update | Boolean | true. |
Notes | Optional | String | New notes. |
PrimaryPhone | Optional | Object | {"FreeFormNumber": "(416) 555-0100"}. |
Returns
The updated Customer object. The test stores the new SyncToken.
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/customer?requestid={{request_id}} |
| Intuit operation | POST/v3/company/<realmID>/customer |
| Content type | application/json |
| Postman | 4. Customers › Update customer (sparse) |
| Stores | customer_sync_token |
Request body
json
{
"Id": "{{customer_id}}",
"SyncToken": "{{customer_sync_token}}",
"sparse": true,
"Notes": "Updated by QBO Connect Postman test",
"PrimaryPhone": {
"FreeFormNumber": "(416) 555-0100"
}
}Returns (abridged)
json
{
"Customer": {
"Id": "64",
"SyncToken": "1",
"DisplayName": "QBOC-TEST mi4x2k Customer",
"Notes": "Updated by QBO Connect Postman test",
"PrimaryPhone": {
"FreeFormNumber": "(416) 555-0100"
},
"Active": true
},
"time": "2026-12-01T02:11:00.000-08:00"
}Deactivate a customer
A sparse update with Active: false. This is also how Odoo "archives" a customer. It fails with 6220 while the customer has an open balance, so the collection deletes its test invoices first, in folders 7, 8 and 11.
In folder 12, Read customer stores the current SyncToken in cleanup_sync_token, and Deactivate customer sends the update. The test checks that Customer.Active is false.
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/customer?requestid={{request_id}} |
| Intuit operation | POST/v3/company/<realmID>/customer |
| Content type | application/json |
| Postman | 12. Cleanup › Read customer, Deactivate customer |
Request body
json
{
"Id": "{{customer_id}}",
"SyncToken": "{{cleanup_sync_token}}",
"sparse": true,
"Active": false
}Returns (abridged)
json
{
"Customer": {
"Id": "64",
"SyncToken": "2",
"Active": false
},
"time": "2026-12-01T02:30:00.000-08:00"
}