Code Examples

Explore real-world examples of QuickBooks API integration.

QuickBooks Entity Examples

Manage customer information in QuickBooks

Create Customer

POST

Create a new customer record

/v3/company/{realmId}/customer

Request

Headers

{
  "Authorization": "Bearer {access_token}",
  "Content-Type": "application/json"
}

Body

{
  "DisplayName": "John Doe",
  "PrimaryEmailAddr": {
    "Address": "john.doe@example.com"
  }
}

Response

{
  "Customer": {
    "Id": "123",
    "SyncToken": "0",
    "DisplayName": "John Doe",
    "PrimaryEmailAddr": {
      "Address": "john.doe@example.com"
    }
  },
  "time": "2024-01-01T00:00:00.000-08:00"
}