Matter data model

Updated:

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

FieldTypeRequiredDescription
idstringNounique identifier for the matter
created_atstring (date-time)Nowhen the matter was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atstring (date-time)Nowhen the matter was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
namestringNothe matter name
numberstringNothe firm's display/matter number
descriptionstringNofree-text description of the matter
statusenumNothe matter status Values: PENDING, OPEN, CLOSED, OTHER
billing_methodenumNohow the matter is billed Values: HOURLY, FLAT_FEE, CONTINGENCY, OTHER
practicearea_idstringNopointer to the Legal Practicearea object
stagestringNothe matter stage name
contact_idsstring[]NoCRM Contacts that are clients on this matter
company_idsstring[]NoCRM Companies that are clients on this matter
partiesLegalParty[]Noall people and organizations related to this matter, with their role
parties[].contact_idstringNopointer to a CRM Contact
parties[].company_idstringNopointer to a CRM Company
parties[].roleenumNothe party role on the matter Values: CLIENT, OPPOSING_PARTY, OPPOSING_COUNSEL, CO_COUNSEL, WITNESS, EXPERT, JUDGE, REFERRER, OTHER
parties[].descriptionstringNothe vendor's free-text relationship description
user_idstringNoHR Employee who is the responsible attorney (reference to HrisEmployee)
originating_user_idstringNoHR Employee who is the originating attorney (reference to HrisEmployee)
user_idsstring[]Noother HR Employees assigned to this matter
client_referencestringNothe client's own reference number for this matter
currencystringNoISO 4217 currency code
is_billablebooleanNowhether the matter is billable
opened_atstring (date-time)Nowhen the matter was opened (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
closed_atstring (date-time)Nowhen the matter was closed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
pending_atstring (date-time)Nowhen the matter became pending (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
statute_of_limitations_atstring (date-time)Nostatute of limitations deadline for the matter (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
metadataLegalMetadata[]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 LegalMatter = {
	id?: string; // unique identifier for the matter
	created_at?: string-time; // when the matter was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-time; // when the matter was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	name?: string; // the matter name
	number?: string; // the firm's display/matter number
	description?: string; // free-text description of the matter
	status?: 'PENDING' | 'OPEN' | 'CLOSED' | 'OTHER'; // the matter status
	billing_method?: 'HOURLY' | 'FLAT_FEE' | 'CONTINGENCY' | 'OTHER'; // how the matter is billed
	practicearea_id?: string; // pointer to the Legal Practicearea object
	stage?: string; // the matter stage name
	contact_ids?: string[]; // CRM Contacts that are clients on this matter
	company_ids?: string[]; // CRM Companies that are clients on this matter
	parties?: []; // all people and organizations related to this matter, with their role
	user_id?: string; // HR Employee who is the responsible attorney (reference to HrisEmployee)
	originating_user_id?: string; // HR Employee who is the originating attorney (reference to HrisEmployee)
	user_ids?: string[]; // other HR Employees assigned to this matter
	client_reference?: string; // the client's own reference number for this matter
	currency?: string; // ISO 4217 currency code
	is_billable?: boolean; // whether the matter is billable
	opened_at?: string-time; // when the matter was opened (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	closed_at?: string-time; // when the matter was closed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	pending_at?: string-time; // when the matter became pending (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	statute_of_limitations_at?: string-time; // statute of limitations deadline for the matter (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	metadata?: []; // custom field values
	raw?: any; // raw data from the integration
} 

Zod

Zod
import { z } from 'zod';

export const ZodLegalMatter = z.object({
	id: z.string().optional().describe("unique identifier for the matter"),
	created_at: z.string-time().optional().describe("when the matter was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("when the matter was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	name: z.string().optional().describe("the matter name"),
	number: z.string().optional().describe("the firm's display/matter number"),
	description: z.string().optional().describe("free-text description of the matter"),
	status: z.enum("PENDING", "OPEN", "CLOSED", "OTHER").optional().describe("the matter status"),
	billing_method: z.enum("HOURLY", "FLAT_FEE", "CONTINGENCY", "OTHER").optional().describe("how the matter is billed"),
	practicearea_id: z.string().optional().describe("pointer to the Legal Practicearea object"),
	stage: z.string().optional().describe("the matter stage name"),
	contact_ids: z.array().optional().describe("CRM Contacts that are clients on this matter"),
	company_ids: z.array().optional().describe("CRM Companies that are clients on this matter"),
	parties: z.array().optional().describe("all people and organizations related to this matter, with their role"),
	user_id: z.string().optional().describe("HR Employee who is the responsible attorney (reference to HrisEmployee)"),
	originating_user_id: z.string().optional().describe("HR Employee who is the originating attorney (reference to HrisEmployee)"),
	user_ids: z.array().optional().describe("other HR Employees assigned to this matter"),
	client_reference: z.string().optional().describe("the client's own reference number for this matter"),
	currency: z.string().optional().describe("ISO 4217 currency code"),
	is_billable: z.boolean().optional().describe("whether the matter is billable"),
	opened_at: z.string-time().optional().describe("when the matter was opened (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	closed_at: z.string-time().optional().describe("when the matter was closed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	pending_at: z.string-time().optional().describe("when the matter became pending (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	statute_of_limitations_at: z.string-time().optional().describe("statute of limitations deadline for the matter (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	metadata: z.array().optional().describe("custom field values"),

});

Python

Python
import dataclasses

@dataclasses.dataclass
class LegalMatterStatus(str, Enum):
	PENDING = 'PENDING'
	OPEN = 'OPEN'
	CLOSED = 'CLOSED'
	OTHER = 'OTHER'

@dataclasses.dataclass
class LegalMatterBilling_method(str, Enum):
	HOURLY = 'HOURLY'
	FLAT_FEE = 'FLAT_FEE'
	CONTINGENCY = 'CONTINGENCY'
	OTHER = 'OTHER'

@dataclasses.dataclass
class LegalMatter:
	"""unique identifier for the matter"""
	id: Optional[str]
	"""when the matter was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""when the matter was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	updated_at: Optional[str]
	"""the matter name"""
	name: Optional[str]
	"""the firm's display/matter number"""
	number: Optional[str]
	"""free-text description of the matter"""
	description: Optional[str]
	"""the matter status"""
	status: Optional[LegalMatterStatus]
	"""how the matter is billed"""
	billing_method: Optional[LegalMatterBilling_method]
	"""pointer to the Legal Practicearea object"""
	practicearea_id: Optional[str]
	"""the matter stage name"""
	stage: Optional[str]
	"""CRM Contacts that are clients on this matter"""
	contact_ids: Optional[List[List[str]]]
	"""CRM Companies that are clients on this matter"""
	company_ids: Optional[List[List[str]]]
	"""all people and organizations related to this matter, with their role"""
	parties: Optional[PropertyLegalMatterParties]
	"""HR Employee who is the responsible attorney (reference to HrisEmployee)"""
	user_id: Optional[str]
	"""HR Employee who is the originating attorney (reference to HrisEmployee)"""
	originating_user_id: Optional[str]
	"""other HR Employees assigned to this matter"""
	user_ids: Optional[List[List[str]]]
	"""the client's own reference number for this matter"""
	client_reference: Optional[str]
	"""ISO 4217 currency code"""
	currency: Optional[str]
	"""whether the matter is billable"""
	is_billable: Optional[bool]
	"""when the matter was opened (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	opened_at: Optional[str]
	"""when the matter was closed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	closed_at: Optional[str]
	"""when the matter became pending (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	pending_at: Optional[str]
	"""statute of limitations deadline for the matter (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	statute_of_limitations_at: Optional[str]
	"""custom field values"""
	metadata: Optional[PropertyLegalMatterMetadata]
Are we missing anything? Let us know
Was this page helpful?