Payment data model

Updated:

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

FieldTypeRequiredDescription
idstringNounique identifier for the payment
created_atstring (date-time)Nowhen the payment was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atstring (date-time)Nowhen the payment 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
charge_idsstring[]NoProperty Charges this payment was applied to
currencystringNoISO 4217 currency code
total_amountnumberNothe payment amount
methodenumNothe payment method Values: ACH, CREDIT_CARD, DEBIT_CARD, CHECK, CASH, MONEY_ORDER, OTHER
statusenumNothe payment status Values: PENDING, COMPLETED, FAILED, REVERSED, OTHER
paid_atstring (date-time)Nowhen the payment was made (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
referencestringNothe check number or transaction reference
notesstringNofree-text notes about the payment
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 PropertyPayment = {
	id?: string; // unique identifier for the payment
	created_at?: string-time; // when the payment was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-time; // when the payment 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
	charge_ids?: string[]; // Property Charges this payment was applied to
	currency?: string; // ISO 4217 currency code
	total_amount?: number; // the payment amount
	method?: 'ACH' | 'CREDIT_CARD' | 'DEBIT_CARD' | 'CHECK' | 'CASH' | 'MONEY_ORDER' | 'OTHER'; // the payment method
	status?: 'PENDING' | 'COMPLETED' | 'FAILED' | 'REVERSED' | 'OTHER'; // the payment status
	paid_at?: string-time; // when the payment was made (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	reference?: string; // the check number or transaction reference
	notes?: string; // free-text notes about the payment
	metadata?: []; // custom field values
	raw?: any; // raw data from the integration
} 

Zod

Zod
import { z } from 'zod';

export const ZodPropertyPayment = z.object({
	id: z.string().optional().describe("unique identifier for the payment"),
	created_at: z.string-time().optional().describe("when the payment was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("when the payment 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"),
	charge_ids: z.array().optional().describe("Property Charges this payment was applied to"),
	currency: z.string().optional().describe("ISO 4217 currency code"),
	total_amount: z.number().optional().describe("the payment amount"),
	method: z.enum("ACH", "CREDIT_CARD", "DEBIT_CARD", "CHECK", "CASH", "MONEY_ORDER", "OTHER").optional().describe("the payment method"),
	status: z.enum("PENDING", "COMPLETED", "FAILED", "REVERSED", "OTHER").optional().describe("the payment status"),
	paid_at: z.string-time().optional().describe("when the payment was made (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	reference: z.string().optional().describe("the check number or transaction reference"),
	notes: z.string().optional().describe("free-text notes about the payment"),
	metadata: z.array().optional().describe("custom field values"),

});

Python

Python
import dataclasses

@dataclasses.dataclass
class PropertyPaymentMethod(str, Enum):
	ACH = 'ACH'
	CREDIT_CARD = 'CREDIT_CARD'
	DEBIT_CARD = 'DEBIT_CARD'
	CHECK = 'CHECK'
	CASH = 'CASH'
	MONEY_ORDER = 'MONEY_ORDER'
	OTHER = 'OTHER'

@dataclasses.dataclass
class PropertyPaymentStatus(str, Enum):
	PENDING = 'PENDING'
	COMPLETED = 'COMPLETED'
	FAILED = 'FAILED'
	REVERSED = 'REVERSED'
	OTHER = 'OTHER'

@dataclasses.dataclass
class PropertyPayment:
	"""unique identifier for the payment"""
	id: Optional[str]
	"""when the payment was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""when the payment 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]
	"""Property Charges this payment was applied to"""
	charge_ids: Optional[List[List[str]]]
	"""ISO 4217 currency code"""
	currency: Optional[str]
	"""the payment amount"""
	total_amount: Optional[int]
	"""the payment method"""
	method: Optional[PropertyPaymentMethod]
	"""the payment status"""
	status: Optional[PropertyPaymentStatus]
	"""when the payment was made (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	paid_at: Optional[str]
	"""the check number or transaction reference"""
	reference: Optional[str]
	"""free-text notes about the payment"""
	notes: Optional[str]
	"""custom field values"""
	metadata: Optional[PropertyPropertyPaymentMetadata]
Are we missing anything? Let us know
Was this page helpful?