Skip to content

Postman docs › QuickBooks API (proxy) › Customer

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.

AttributeRequirementTypeDescription
Id* Required for updateread onlysystem definedString, filterableUnique id. Goes into CustomerRef.value.
SyncToken* Required for updateread onlysystem definedStringVersion number for optimistic locking.
DisplayName* Conditionally requiredmax 500 charactersString, filterableRequired unless a name part (Title, GivenName, MiddleName, FamilyName, Suffix) is sent. Unique across customers, vendors and employees. "Cannot be removed with sparse update."
CompanyNameOptionalmax 100 charactersString, filterableCompany name.
PrimaryEmailAddr.AddressOptionalString, filterableMust contain @ and .. The collection uses test_email.
BillAddrOptionalObjectBilling address: Line1, City, CountrySubDivisionCode, PostalCode, Country.
NotesOptionalmax 2000 charactersStringFree-text notes.
PrimaryPhone.FreeFormNumberOptionalStringPhone number as typed.
ActiveOptionalBoolean, filterablefalse deactivates the customer.
MetaData.LastUpdatedTimeread onlysystem definedDateTimeLast 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 ​

AttributeRequirementTypeDescription
DisplayName* Conditionally requiredmax 500 charactersStringQBOC-TEST {{run_id}} Customer.
CompanyNameOptionalmax 100 charactersStringQBO Connect Test Co.
PrimaryEmailAddrOptionalObject{"Address": "{{test_email}}"}.
BillAddrOptionalObject100 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 URLPOST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/customer?requestid={{request_id}}
Intuit operationPOST/v3/company/<realmID>/customer
Content typeapplication/json
Postman4. Customers › Create customer
Storescustomer_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 URLGET{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/customer/{{customer_id}}
Intuit operationGET/v3/company/<realmID>/customer/<customerId>
Acceptapplication/json
Postman4. Customers › Read customer
Storescustomer_sync_token

Query a customer ​

Postman requestQueryTest
Query customer by DisplayNameselect * from Customer where DisplayName = 'QBOC-TEST {{run_id}} Customer'at least 1 row
Query customers changed sinceselect * from Customer where MetaData.LastUpdatedTime > '{{changed_since}}' ORDERBY MetaData.LastUpdatedTime MAXRESULTS 50HTTP 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 URLGET{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/query?query=<selectStatement>
Intuit operationGET/v3/company/<realmID>/query?query=<selectStatement>
Acceptapplication/json
Postman4. 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 ​

AttributeRequirementTypeDescription
Id* Required for updateString{{customer_id}}.
SyncToken* Required for updateString{{customer_sync_token}}.
sparse* Required for a sparse updateBooleantrue.
NotesOptionalmax 2000 charactersStringNew notes.
PrimaryPhoneOptionalObject{"FreeFormNumber": "(416) 555-0100"}.

Returns ​

The updated Customer object. The test stores the new SyncToken.

Request
Request URLPOST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/customer?requestid={{request_id}}
Intuit operationPOST/v3/company/<realmID>/customer
Content typeapplication/json
Postman4. Customers › Update customer (sparse)
Storescustomer_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 URLPOST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/customer?requestid={{request_id}}
Intuit operationPOST/v3/company/<realmID>/customer
Content typeapplication/json
Postman12. 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"
}