Object overview

The Customer Object

A customer (also called a "job") represents a client or account that employees can track time against. Customers are used for job costing — allocating hours and payroll costs to specific clients.


Variants

ShapeReturned byExtra fields
List itemGET /customers
DetailGET /customers/:customer_idprojects

The detail shape is a superset of the list shape.


Field Reference

FieldTypeDescription
customer_idintegerUnique customer identifier.
namestringCustomer name.
is_disabledbooleanWhether the customer is disabled. Disabled customers cannot be assigned to new time records.
projectsarray(Detail only) List of project summaries under this customer.

Project summary (nested in detail)

FieldTypeDescription
project_idintegerUnique project identifier.
namestringProject name.
is_disabledbooleanWhether the project is disabled.

Example: List Item

{
  "customer_id": 3,
  "name": "ABC Construction",
  "is_disabled": false
}

Example: Detail

{
  "customer_id": 3,
  "name": "ABC Construction",
  "is_disabled": false,
  "projects": [
    {
      "project_id": 7,
      "name": "Office Renovation",
      "is_disabled": false
    },
    {
      "project_id": 12,
      "name": "Warehouse Build",
      "is_disabled": true
    }
  ]
}

The Project Object

A project belongs to a customer and provides a second level of granularity for time tracking and job costing. Employees can clock in to a specific customer and project.


Returned by

EndpointShape
GET /projectsList of projects
GET /projects/:project_idSingle project

Field Reference

FieldTypeDescription
project_idintegerUnique project identifier.
namestringProject name.
customer_idinteger | nullThe customer this project belongs to. Null if unassigned.
is_disabledbooleanWhether the project is disabled. Disabled projects cannot be assigned to new time records.
customerobject | nullThe parent customer summary with customer_id and name. Null if no customer is assigned.

Customer summary (nested)

FieldTypeDescription
customer_idintegerUnique customer identifier.
namestringCustomer name.

Example

{
  "project_id": 7,
  "name": "Office Renovation",
  "customer_id": 3,
  "is_disabled": false,
  "customer": {
    "customer_id": 3,
    "name": "ABC Construction"
  }
}