Resident data model

Updated:

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

FieldTypeRequiredDescription
idstringNounique identifier for the resident
created_atstring (date-time)Nowhen the resident was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atstring (date-time)Nowhen the resident was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
building_idstringNopointer to the Property Building
unit_idstringNopointer to the Property Unit
lease_idsstring[]NoProperty Leases this resident is on
namestringNothe resident full name
first_namestringNothe resident first name
last_namestringNothe resident last name
emailsPropertyEmail[]Noemail addresses of the resident
emails[].emailstringYesthe email address
emails[].typeenumNothe kind of email address Values: WORK, HOME, OTHER
telephonesPropertyTelephone[]Notelephone numbers of the resident
telephones[].telephonestringYesthe telephone number
telephones[].typeenumNothe kind of telephone number Values: WORK, HOME, MOBILE, FAX, OTHER
addressobjectNomailing or forwarding address of the resident
address.address1stringNofirst line of the street address
address.address2stringNosecond line of the street address
address.citystringNocity or locality
address.regionstringNostate, province or regional area
address.region_codestringNostate, province or regional area code
address.postal_codestringNopostal or ZIP code
address.countrystringNocountry name
address.country_codestringNoISO 3166-1 alpha-2 country code
typeenumNothe role of the resident on the lease Values: PRIMARY, CO_RESIDENT, OCCUPANT, GUARANTOR, OTHER
statusenumNothe resident status Values: APPLICANT, FUTURE, CURRENT, NOTICE, PAST, OTHER
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)
currencystringNoISO 4217 currency code
balance_amountnumberNothe resident ledger balance
notesstringNofree-text notes about the resident
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 PropertyResident = {
	id?: string; // unique identifier for the resident
	created_at?: string-time; // when the resident was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-time; // when the resident 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
	lease_ids?: string[]; // Property Leases this resident is on
	name?: string; // the resident full name
	first_name?: string; // the resident first name
	last_name?: string; // the resident last name
	emails?: []; // email addresses of the resident
	telephones?: []; // telephone numbers of the resident
	address?: {
		address1?: string; // first line of the street address 
		address2?: string; // second line of the street address 
		city?: string; // city or locality 
		region?: string; // state, province or regional area 
		region_code?: string; // state, province or regional area code 
		postal_code?: string; // postal or ZIP code 
		country?: string; // country name 
		country_code?: string; // ISO 3166-1 alpha-2 country code 
	}; // mailing or forwarding address of the resident
	type?: 'PRIMARY' | 'CO_RESIDENT' | 'OCCUPANT' | 'GUARANTOR' | 'OTHER'; // the role of the resident on the lease
	status?: 'APPLICANT' | 'FUTURE' | 'CURRENT' | 'NOTICE' | 'PAST' | 'OTHER'; // the resident status
	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)
	currency?: string; // ISO 4217 currency code
	balance_amount?: number; // the resident ledger balance
	notes?: string; // free-text notes about the resident
	metadata?: []; // custom field values
	raw?: any; // raw data from the integration
} 

Zod

Zod
import { z } from 'zod';

export const ZodPropertyResident = z.object({
	id: z.string().optional().describe("unique identifier for the resident"),
	created_at: z.string-time().optional().describe("when the resident was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("when the resident 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"),
	lease_ids: z.array().optional().describe("Property Leases this resident is on"),
	name: z.string().optional().describe("the resident full name"),
	first_name: z.string().optional().describe("the resident first name"),
	last_name: z.string().optional().describe("the resident last name"),
	emails: z.array().optional().describe("email addresses of the resident"),
	telephones: z.array().optional().describe("telephone numbers of the resident"),
	address: z.object({
			address1: z.string().optional().describe("first line of the street address"),
			address2: z.string().optional().describe("second line of the street address"),
			city: z.string().optional().describe("city or locality"),
			region: z.string().optional().describe("state, province or regional area"),
			region_code: z.string().optional().describe("state, province or regional area code"),
			postal_code: z.string().optional().describe("postal or ZIP code"),
			country: z.string().optional().describe("country name"),
			country_code: z.string().optional().describe("ISO 3166-1 alpha-2 country code")
}).optional().describe("mailing or forwarding address of the resident"),
	type: z.enum("PRIMARY", "CO_RESIDENT", "OCCUPANT", "GUARANTOR", "OTHER").optional().describe("the role of the resident on the lease"),
	status: z.enum("APPLICANT", "FUTURE", "CURRENT", "NOTICE", "PAST", "OTHER").optional().describe("the resident status"),
	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)"),
	currency: z.string().optional().describe("ISO 4217 currency code"),
	balance_amount: z.number().optional().describe("the resident ledger balance"),
	notes: z.string().optional().describe("free-text notes about the resident"),
	metadata: z.array().optional().describe("custom field values"),

});

Python

Python
import dataclasses

@dataclasses.dataclass
class PropertyResidentType(str, Enum):
	PRIMARY = 'PRIMARY'
	CO_RESIDENT = 'CO_RESIDENT'
	OCCUPANT = 'OCCUPANT'
	GUARANTOR = 'GUARANTOR'
	OTHER = 'OTHER'

@dataclasses.dataclass
class PropertyResidentStatus(str, Enum):
	APPLICANT = 'APPLICANT'
	FUTURE = 'FUTURE'
	CURRENT = 'CURRENT'
	NOTICE = 'NOTICE'
	PAST = 'PAST'
	OTHER = 'OTHER'

@dataclasses.dataclass
class PropertyPropertyResidentAddress:
	"""first line of the street address"""
	address1: Optional[str]
	"""second line of the street address"""
	address2: Optional[str]
	"""city or locality"""
	city: Optional[str]
	"""state, province or regional area"""
	region: Optional[str]
	"""state, province or regional area code"""
	region_code: Optional[str]
	"""postal or ZIP code"""
	postal_code: Optional[str]
	"""country name"""
	country: Optional[str]
	"""ISO 3166-1 alpha-2 country code"""
	country_code: Optional[str]

@dataclasses.dataclass
class PropertyResident:
	"""unique identifier for the resident"""
	id: Optional[str]
	"""when the resident was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""when the resident 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 Leases this resident is on"""
	lease_ids: Optional[List[List[str]]]
	"""the resident full name"""
	name: Optional[str]
	"""the resident first name"""
	first_name: Optional[str]
	"""the resident last name"""
	last_name: Optional[str]
	"""email addresses of the resident"""
	emails: Optional[PropertyPropertyResidentEmails]
	"""telephone numbers of the resident"""
	telephones: Optional[PropertyPropertyResidentTelephones]
	"""mailing or forwarding address of the resident"""
	address: Optional[PropertyPropertyResidentAddress]
	"""the role of the resident on the lease"""
	type: Optional[PropertyResidentType]
	"""the resident status"""
	status: Optional[PropertyResidentStatus]
	"""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]
	"""ISO 4217 currency code"""
	currency: Optional[str]
	"""the resident ledger balance"""
	balance_amount: Optional[int]
	"""free-text notes about the resident"""
	notes: Optional[str]
	"""custom field values"""
	metadata: Optional[PropertyPropertyResidentMetadata]
Are we missing anything? Let us know
Was this page helpful?