Timeentry data model

Updated:

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

FieldTypeRequiredDescription
idstringNounique identifier for the time entry
created_atstring (date-time)Nowhen the time entry was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atstring (date-time)Nowhen the time entry was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
matter_idstringNopointer to the Legal Matter this time is recorded against
user_idstringNoHR Employee who is the timekeeper (reference to HrisEmployee)
descriptionstringNodescription of the work performed
worked_atstring (date-time)Nodate the work was performed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
minutesnumberNoduration worked, in minutes
billable_minutesnumberNobillable duration after rounding, in minutes
rate_amountnumberNohourly rate, or the flat amount for flat-rate entries
total_amountnumberNototal amount of the time entry
currencystringNoISO 4217 currency code
is_billablebooleanNowhether the time entry is billable
is_billedbooleanNowhether the time entry has been billed
invoice_idstringNopointer to the Accounting Invoice this time was billed on (reference to AccountingInvoice)
activity_codestringNoUTBMS/LEDES activity code
task_codestringNoUTBMS/LEDES task code
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 LegalTimeentry = {
	id?: string; // unique identifier for the time entry
	created_at?: string-time; // when the time entry was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-time; // when the time entry was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	matter_id?: string; // pointer to the Legal Matter this time is recorded against
	user_id?: string; // HR Employee who is the timekeeper (reference to HrisEmployee)
	description?: string; // description of the work performed
	worked_at?: string-time; // date the work was performed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	minutes?: number; // duration worked, in minutes
	billable_minutes?: number; // billable duration after rounding, in minutes
	rate_amount?: number; // hourly rate, or the flat amount for flat-rate entries
	total_amount?: number; // total amount of the time entry
	currency?: string; // ISO 4217 currency code
	is_billable?: boolean; // whether the time entry is billable
	is_billed?: boolean; // whether the time entry has been billed
	invoice_id?: string; // pointer to the Accounting Invoice this time was billed on (reference to AccountingInvoice)
	activity_code?: string; // UTBMS/LEDES activity code
	task_code?: string; // UTBMS/LEDES task code
	metadata?: []; // custom field values
	raw?: any; // raw data from the integration
} 

Zod

Zod
import { z } from 'zod';

export const ZodLegalTimeentry = z.object({
	id: z.string().optional().describe("unique identifier for the time entry"),
	created_at: z.string-time().optional().describe("when the time entry was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("when the time entry was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	matter_id: z.string().optional().describe("pointer to the Legal Matter this time is recorded against"),
	user_id: z.string().optional().describe("HR Employee who is the timekeeper (reference to HrisEmployee)"),
	description: z.string().optional().describe("description of the work performed"),
	worked_at: z.string-time().optional().describe("date the work was performed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	minutes: z.number().optional().describe("duration worked, in minutes"),
	billable_minutes: z.number().optional().describe("billable duration after rounding, in minutes"),
	rate_amount: z.number().optional().describe("hourly rate, or the flat amount for flat-rate entries"),
	total_amount: z.number().optional().describe("total amount of the time entry"),
	currency: z.string().optional().describe("ISO 4217 currency code"),
	is_billable: z.boolean().optional().describe("whether the time entry is billable"),
	is_billed: z.boolean().optional().describe("whether the time entry has been billed"),
	invoice_id: z.string().optional().describe("pointer to the Accounting Invoice this time was billed on (reference to AccountingInvoice)"),
	activity_code: z.string().optional().describe("UTBMS/LEDES activity code"),
	task_code: z.string().optional().describe("UTBMS/LEDES task code"),
	metadata: z.array().optional().describe("custom field values"),

});

Python

Python
import dataclasses

@dataclasses.dataclass
class LegalTimeentry:
	"""unique identifier for the time entry"""
	id: Optional[str]
	"""when the time entry was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""when the time entry was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	updated_at: Optional[str]
	"""pointer to the Legal Matter this time is recorded against"""
	matter_id: Optional[str]
	"""HR Employee who is the timekeeper (reference to HrisEmployee)"""
	user_id: Optional[str]
	"""description of the work performed"""
	description: Optional[str]
	"""date the work was performed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	worked_at: Optional[str]
	"""duration worked, in minutes"""
	minutes: Optional[int]
	"""billable duration after rounding, in minutes"""
	billable_minutes: Optional[int]
	"""hourly rate, or the flat amount for flat-rate entries"""
	rate_amount: Optional[int]
	"""total amount of the time entry"""
	total_amount: Optional[int]
	"""ISO 4217 currency code"""
	currency: Optional[str]
	"""whether the time entry is billable"""
	is_billable: Optional[bool]
	"""whether the time entry has been billed"""
	is_billed: Optional[bool]
	"""pointer to the Accounting Invoice this time was billed on (reference to AccountingInvoice)"""
	invoice_id: Optional[str]
	"""UTBMS/LEDES activity code"""
	activity_code: Optional[str]
	"""UTBMS/LEDES task code"""
	task_code: Optional[str]
	"""custom field values"""
	metadata: Optional[PropertyLegalTimeentryMetadata]
Are we missing anything? Let us know
Was this page helpful?