Charge data model

Updated:

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

FieldTypeRequiredDescription
idstringNounique identifier for the charge
created_atstring (date-time)Nowhen the charge was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atstring (date-time)Nowhen the charge was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
building_idstringNopointer to the Property Building
unit_idstringNopointer to the Property Unit
lease_idstringNopointer to the Property Lease
resident_idstringNopointer to the Property Resident
typeenumNothe normalized charge type Values: RENT, DEPOSIT, FEE, LATE_FEE, UTILITY, CREDIT, OTHER
namestringNothe charge code or name, eg. Rent or Pet fee
descriptionstringNofree-text description of the charge
currencystringNoISO 4217 currency code
total_amountnumberNothe charge amount
balance_amountnumberNothe unpaid part of the charge
due_atstring (date-time)Nowhen the charge is due (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
posted_atstring (date-time)Nowhen the charge was posted to the ledger (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
is_recurringbooleanNowhether the charge recurs
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 PropertyCharge = {
	id?: string; // unique identifier for the charge
	created_at?: string-time; // when the charge was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-time; // when the charge 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_id?: string; // pointer to the Property Lease
	resident_id?: string; // pointer to the Property Resident
	type?: 'RENT' | 'DEPOSIT' | 'FEE' | 'LATE_FEE' | 'UTILITY' | 'CREDIT' | 'OTHER'; // the normalized charge type
	name?: string; // the charge code or name, eg. Rent or Pet fee
	description?: string; // free-text description of the charge
	currency?: string; // ISO 4217 currency code
	total_amount?: number; // the charge amount
	balance_amount?: number; // the unpaid part of the charge
	due_at?: string-time; // when the charge is due (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	posted_at?: string-time; // when the charge was posted to the ledger (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	is_recurring?: boolean; // whether the charge recurs
	metadata?: []; // custom field values
	raw?: any; // raw data from the integration
} 

Zod

Zod
import { z } from 'zod';

export const ZodPropertyCharge = z.object({
	id: z.string().optional().describe("unique identifier for the charge"),
	created_at: z.string-time().optional().describe("when the charge was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("when the charge 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_id: z.string().optional().describe("pointer to the Property Lease"),
	resident_id: z.string().optional().describe("pointer to the Property Resident"),
	type: z.enum("RENT", "DEPOSIT", "FEE", "LATE_FEE", "UTILITY", "CREDIT", "OTHER").optional().describe("the normalized charge type"),
	name: z.string().optional().describe("the charge code or name, eg. Rent or Pet fee"),
	description: z.string().optional().describe("free-text description of the charge"),
	currency: z.string().optional().describe("ISO 4217 currency code"),
	total_amount: z.number().optional().describe("the charge amount"),
	balance_amount: z.number().optional().describe("the unpaid part of the charge"),
	due_at: z.string-time().optional().describe("when the charge is due (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	posted_at: z.string-time().optional().describe("when the charge was posted to the ledger (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	is_recurring: z.boolean().optional().describe("whether the charge recurs"),
	metadata: z.array().optional().describe("custom field values"),

});

Python

Python
import dataclasses

@dataclasses.dataclass
class PropertyChargeType(str, Enum):
	RENT = 'RENT'
	DEPOSIT = 'DEPOSIT'
	FEE = 'FEE'
	LATE_FEE = 'LATE_FEE'
	UTILITY = 'UTILITY'
	CREDIT = 'CREDIT'
	OTHER = 'OTHER'

@dataclasses.dataclass
class PropertyCharge:
	"""unique identifier for the charge"""
	id: Optional[str]
	"""when the charge was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""when the charge 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 Lease"""
	lease_id: Optional[str]
	"""pointer to the Property Resident"""
	resident_id: Optional[str]
	"""the normalized charge type"""
	type: Optional[PropertyChargeType]
	"""the charge code or name, eg. Rent or Pet fee"""
	name: Optional[str]
	"""free-text description of the charge"""
	description: Optional[str]
	"""ISO 4217 currency code"""
	currency: Optional[str]
	"""the charge amount"""
	total_amount: Optional[int]
	"""the unpaid part of the charge"""
	balance_amount: Optional[int]
	"""when the charge is due (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	due_at: Optional[str]
	"""when the charge was posted to the ledger (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	posted_at: Optional[str]
	"""whether the charge recurs"""
	is_recurring: Optional[bool]
	"""custom field values"""
	metadata: Optional[PropertyPropertyChargeMetadata]
Are we missing anything? Let us know
Was this page helpful?