# CompanyType

A company type: one entry of the organisation's own list of kinds of company, such as Agency or Manufacturer, that a customer can be classified as. The list is maintained in plnnrly and is read-only over the API.

## Used by
- GET /api/v2/company-types: List company types (CompanyTypeList)
- GET /api/v2/company-types/{company_type}: Read a company type (CompanyType)

## CompanyType fields
- id (integer, required): Unique identifier.
- name (string ≤ 255, required): Company type as shown in the UI, e.g. Agency.
- created_at (timestamp (YYYY-MM-DDThh:mm:ssZ), required): Creation timestamp.
- updated_at (timestamp (YYYY-MM-DDThh:mm:ssZ), required): Last-write timestamp; use for incremental sync.
- customers_count (integer ≥ 0, required): Number of customers classified as this company type.
- links (CompanyTypeLinks, required)
  - self (url, required): The canonical URI of this record.
  - customers (url, required): Customers classified as this company type.

## Variants

### CompanyTypeList

What a collection returns, and what `?view=summary` returns on a single record.

6 fields.
Identical to the detail object above.

### CompanyTypeLinks

The `links` object on this resource.

Keys: self, customers

## Example
```json
{
  "id": 1,
  "name": "…",
  "created_at": "2026-03-04T09:15:00Z",
  "updated_at": "2026-03-04T09:15:00Z",
  "customers_count": 1,
  "links": {
    "self": "https://<your-url>/api/v2/work-items/1",
    "customers": "https://<your-url>/api/v2/work-items/1"
  }
}
```
