---
title: "Workorder data model"
url: "https://docs.unified.to/property/workorder/model"
description: "The Workorder data model object in Unified's Workorder API: 20 fields, including created_at, updated_at and building_id, with types and enum values."
date: "2026-11-30T21:28:45.423Z"
updated: "2026-11-30T21:28:45.423Z"
---
# Workorder data model

Updated: November 30, 2026

 View field support, webhooks, and list parameters for each integration on the [Supported Integrations](https://docs.unified.to/property/integrations.md) page. 

| Field                    | Type                 | Required | Description                                                                                                                                                  |
| ------------------------ | -------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| id                       | string               | No       | unique identifier for the work order                                                                                                                         |
| created\_at              | string (date-time)   | No       | when the work order was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                     |
| updated\_at              | string (date-time)   | No       | when the work order was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                |
| building\_id             | string               | No       | pointer to the Property Building                                                                                                                             |
| unit\_id                 | string               | No       | pointer to the Property Unit                                                                                                                                 |
| resident\_id             | string               | No       | pointer to the Property Resident                                                                                                                             |
| user\_id                 | string               | No       | pointer to the HR Employee assigned to the work order (reference to HrisEmployee)                                                                            |
| name                     | string               | No       | short summary of the work order                                                                                                                              |
| description              | string               | No       | free-text description of the issue                                                                                                                           |
| category                 | string               | No       | the maintenance category, eg. Plumbing or HVAC                                                                                                               |
| status                   | enum                 | No       | the work order status Values: OPEN, IN\_PROGRESS, ON\_HOLD, COMPLETED, CANCELLED, OTHER                                                                      |
| priority                 | enum                 | No       | the work order priority Values: LOW, MEDIUM, HIGH, EMERGENCY                                                                                                 |
| is\_entry\_permitted     | boolean              | No       | whether staff may enter the unit without the resident                                                                                                        |
| vendor\_name             | string               | No       | the contractor assigned to the work order                                                                                                                    |
| due\_at                  | string (date-time)   | No       | when the work order is due (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                          |
| scheduled\_at            | string (date-time)   | No       | when the work is scheduled (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                          |
| completed\_at            | string (date-time)   | No       | when the work order was completed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                   |
| currency                 | string               | No       | ISO 4217 currency code                                                                                                                                       |
| cost\_amount             | number               | No       | the cost of the work                                                                                                                                         |
| metadata                 | PropertyMetadata\[\] | No       | custom field values                                                                                                                                          |
| metadata\[\].id          | string               | No       | the custom field identifier                                                                                                                                  |
| metadata\[\].slug        | string               | No       | the custom field key                                                                                                                                         |
| metadata\[\].value       | object               | No       | the custom field value                                                                                                                                       |
| metadata\[\].namespace   | string               | No       | the scope or origin of the custom field                                                                                                                      |
| metadata\[\].format      | enum                 | No       | the data type of the value Values: TEXT, NUMBER, DATE, BOOLEAN, FILE, TEXTAREA, SINGLE\_SELECT, MULTIPLE\_SELECT, MEASUREMENT, PRICE, YES\_NO, CURRENCY, URL |
| metadata\[\].extra\_data | object               | No       | additional data about the custom field                                                                                                                       |

## TypeScript

```typescript
export type PropertyWorkorder = {
	id?: string; // unique identifier for the work order
	created_at?: string-time; // when the work order was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-time; // when the work order was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	building_id?: string; // pointer to the Property Building
	unit_id?: string; // pointer to the Property Unit
	resident_id?: string; // pointer to the Property Resident
	user_id?: string; // pointer to the HR Employee assigned to the work order (reference to HrisEmployee)
	name?: string; // short summary of the work order
	description?: string; // free-text description of the issue
	category?: string; // the maintenance category, eg. Plumbing or HVAC
	status?: 'OPEN' | 'IN_PROGRESS' | 'ON_HOLD' | 'COMPLETED' | 'CANCELLED' | 'OTHER'; // the work order status
	priority?: 'LOW' | 'MEDIUM' | 'HIGH' | 'EMERGENCY'; // the work order priority
	is_entry_permitted?: boolean; // whether staff may enter the unit without the resident
	vendor_name?: string; // the contractor assigned to the work order
	due_at?: string-time; // when the work order is due (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	scheduled_at?: string-time; // when the work is scheduled (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	completed_at?: string-time; // when the work order was completed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	currency?: string; // ISO 4217 currency code
	cost_amount?: number; // the cost of the work
	metadata?: []; // custom field values
	raw?: any; // raw data from the integration
} 
```

## Zod

```typescript
import { z } from 'zod';

export const ZodPropertyWorkorder = z.object({
	id: z.string().optional().describe("unique identifier for the work order"),
	created_at: z.string-time().optional().describe("when the work order was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("when the work order was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	building_id: z.string().optional().describe("pointer to the Property Building"),
	unit_id: z.string().optional().describe("pointer to the Property Unit"),
	resident_id: z.string().optional().describe("pointer to the Property Resident"),
	user_id: z.string().optional().describe("pointer to the HR Employee assigned to the work order (reference to HrisEmployee)"),
	name: z.string().optional().describe("short summary of the work order"),
	description: z.string().optional().describe("free-text description of the issue"),
	category: z.string().optional().describe("the maintenance category, eg. Plumbing or HVAC"),
	status: z.enum("OPEN", "IN_PROGRESS", "ON_HOLD", "COMPLETED", "CANCELLED", "OTHER").optional().describe("the work order status"),
	priority: z.enum("LOW", "MEDIUM", "HIGH", "EMERGENCY").optional().describe("the work order priority"),
	is_entry_permitted: z.boolean().optional().describe("whether staff may enter the unit without the resident"),
	vendor_name: z.string().optional().describe("the contractor assigned to the work order"),
	due_at: z.string-time().optional().describe("when the work order is due (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	scheduled_at: z.string-time().optional().describe("when the work is scheduled (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	completed_at: z.string-time().optional().describe("when the work order was completed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	currency: z.string().optional().describe("ISO 4217 currency code"),
	cost_amount: z.number().optional().describe("the cost of the work"),
	metadata: z.array().optional().describe("custom field values"),

});
```

## Python

```python
import dataclasses

@dataclasses.dataclass
class PropertyWorkorderStatus(str, Enum):
	OPEN = 'OPEN'
	IN_PROGRESS = 'IN_PROGRESS'
	ON_HOLD = 'ON_HOLD'
	COMPLETED = 'COMPLETED'
	CANCELLED = 'CANCELLED'
	OTHER = 'OTHER'

@dataclasses.dataclass
class PropertyWorkorderPriority(str, Enum):
	LOW = 'LOW'
	MEDIUM = 'MEDIUM'
	HIGH = 'HIGH'
	EMERGENCY = 'EMERGENCY'

@dataclasses.dataclass
class PropertyWorkorder:
	"""unique identifier for the work order"""
	id: Optional[str]
	"""when the work order was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""when the work order was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	updated_at: Optional[str]
	"""pointer to the Property Building"""
	building_id: Optional[str]
	"""pointer to the Property Unit"""
	unit_id: Optional[str]
	"""pointer to the Property Resident"""
	resident_id: Optional[str]
	"""pointer to the HR Employee assigned to the work order (reference to HrisEmployee)"""
	user_id: Optional[str]
	"""short summary of the work order"""
	name: Optional[str]
	"""free-text description of the issue"""
	description: Optional[str]
	"""the maintenance category, eg. Plumbing or HVAC"""
	category: Optional[str]
	"""the work order status"""
	status: Optional[PropertyWorkorderStatus]
	"""the work order priority"""
	priority: Optional[PropertyWorkorderPriority]
	"""whether staff may enter the unit without the resident"""
	is_entry_permitted: Optional[bool]
	"""the contractor assigned to the work order"""
	vendor_name: Optional[str]
	"""when the work order is due (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	due_at: Optional[str]
	"""when the work is scheduled (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	scheduled_at: Optional[str]
	"""when the work order was completed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	completed_at: Optional[str]
	"""ISO 4217 currency code"""
	currency: Optional[str]
	"""the cost of the work"""
	cost_amount: Optional[int]
	"""custom field values"""
	metadata: Optional[PropertyPropertyWorkorderMetadata]

```
