Lease data model

Updated:

View field support, webhooks, and list parameters for each integration on the Supported Integrations page.

FieldTypeRequiredDescription
idstringNounique identifier for the lease
created_atstring (date-time)Nowhen the lease was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atstring (date-time)Nowhen the lease was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
building_idstringNopointer to the Property Building
unit_idstringNopointer to the Property Unit
resident_idsstring[]NoProperty Residents on this lease
statusenumNothe lease status Values: PENDING, FUTURE, ACTIVE, NOTICE, EXPIRED, TERMINATED, CANCELLED, OTHER
is_month_to_monthbooleanNowhether the lease is month-to-month
start_atstring (date-time)Nothe start of the lease term (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
end_atstring (date-time)Nothe end of the lease term (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
move_in_atstring (date-time)Nothe move-in date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
move_out_atstring (date-time)Nothe move-out date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
notice_atstring (date-time)Nowhen notice to vacate was given (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
signed_atstring (date-time)Nowhen the lease was signed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
currencystringNoISO 4217 currency code
rent_amountnumberNothe recurring rent per period
deposit_amountnumberNothe security deposit
balance_amountnumberNothe lease ledger balance
notesstringNofree-text notes about the lease
metadataPropertyMetadata[]Nocustom field values
metadata[].idstringNothe custom field identifier
metadata[].slugstringNothe custom field key
metadata[].valueobjectNothe custom field value
metadata[].namespacestringNothe scope or origin of the custom field
metadata[].formatenumNothe data type of the value Values: TEXT, NUMBER, DATE, BOOLEAN, FILE, TEXTAREA, SINGLE_SELECT, MULTIPLE_SELECT, MEASUREMENT, PRICE, YES_NO, CURRENCY, URL
metadata[].extra_dataobjectNoadditional data about the custom field

TypeScript

TypeScript
export type PropertyLease = {
	id?: string; // unique identifier for the lease
	created_at?: string-time; // when the lease was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-time; // when the lease 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_ids?: string[]; // Property Residents on this lease
	status?: 'PENDING' | 'FUTURE' | 'ACTIVE' | 'NOTICE' | 'EXPIRED' | 'TERMINATED' | 'CANCELLED' | 'OTHER'; // the lease status
	is_month_to_month?: boolean; // whether the lease is month-to-month
	start_at?: string-time; // the start of the lease term (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	end_at?: string-time; // the end of the lease term (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	move_in_at?: string-time; // the move-in date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	move_out_at?: string-time; // the move-out date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	notice_at?: string-time; // when notice to vacate was given (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	signed_at?: string-time; // when the lease was signed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	currency?: string; // ISO 4217 currency code
	rent_amount?: number; // the recurring rent per period
	deposit_amount?: number; // the security deposit
	balance_amount?: number; // the lease ledger balance
	notes?: string; // free-text notes about the lease
	metadata?: []; // custom field values
	raw?: any; // raw data from the integration
} 

Zod

Zod
import { z } from 'zod';

export const ZodPropertyLease = z.object({
	id: z.string().optional().describe("unique identifier for the lease"),
	created_at: z.string-time().optional().describe("when the lease was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("when the lease 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_ids: z.array().optional().describe("Property Residents on this lease"),
	status: z.enum("PENDING", "FUTURE", "ACTIVE", "NOTICE", "EXPIRED", "TERMINATED", "CANCELLED", "OTHER").optional().describe("the lease status"),
	is_month_to_month: z.boolean().optional().describe("whether the lease is month-to-month"),
	start_at: z.string-time().optional().describe("the start of the lease term (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	end_at: z.string-time().optional().describe("the end of the lease term (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	move_in_at: z.string-time().optional().describe("the move-in date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	move_out_at: z.string-time().optional().describe("the move-out date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	notice_at: z.string-time().optional().describe("when notice to vacate was given (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	signed_at: z.string-time().optional().describe("when the lease was signed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	currency: z.string().optional().describe("ISO 4217 currency code"),
	rent_amount: z.number().optional().describe("the recurring rent per period"),
	deposit_amount: z.number().optional().describe("the security deposit"),
	balance_amount: z.number().optional().describe("the lease ledger balance"),
	notes: z.string().optional().describe("free-text notes about the lease"),
	metadata: z.array().optional().describe("custom field values"),

});

Python

Python
import dataclasses

@dataclasses.dataclass
class PropertyLeaseStatus(str, Enum):
	PENDING = 'PENDING'
	FUTURE = 'FUTURE'
	ACTIVE = 'ACTIVE'
	NOTICE = 'NOTICE'
	EXPIRED = 'EXPIRED'
	TERMINATED = 'TERMINATED'
	CANCELLED = 'CANCELLED'
	OTHER = 'OTHER'

@dataclasses.dataclass
class PropertyLease:
	"""unique identifier for the lease"""
	id: Optional[str]
	"""when the lease was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""when the lease 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]
	"""Property Residents on this lease"""
	resident_ids: Optional[List[List[str]]]
	"""the lease status"""
	status: Optional[PropertyLeaseStatus]
	"""whether the lease is month-to-month"""
	is_month_to_month: Optional[bool]
	"""the start of the lease term (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	start_at: Optional[str]
	"""the end of the lease term (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	end_at: Optional[str]
	"""the move-in date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	move_in_at: Optional[str]
	"""the move-out date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	move_out_at: Optional[str]
	"""when notice to vacate was given (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	notice_at: Optional[str]
	"""when the lease was signed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	signed_at: Optional[str]
	"""ISO 4217 currency code"""
	currency: Optional[str]
	"""the recurring rent per period"""
	rent_amount: Optional[int]
	"""the security deposit"""
	deposit_amount: Optional[int]
	"""the lease ledger balance"""
	balance_amount: Optional[int]
	"""free-text notes about the lease"""
	notes: Optional[str]
	"""custom field values"""
	metadata: Optional[PropertyPropertyLeaseMetadata]
Are we missing anything? Let us know
Was this page helpful?