Skip to content

app.org_legal_entities_masked

View

Live org legal entities with the Restricted tax identifier decrypted for holders of data.restricted.read.tax and masked (NULL with is_masked true) for everyone else (Section 8.3). Rows are limited to orgs where the caller reads settings.

Columns of app.org_legal_entities_masked
ColumnTypeNullableDescription
iduuidYesLegal entity.
org_iduuidYesOwning org.
legal_nametextYesRegistered legal name.
country_codecharacter(2)YesCountry of registration.
tax_identifiertextYesTax identifier in plain text for holders of data.restricted.read.tax; NULL when masked or not recorded.
tax_identifier_last4textYesLast four characters of the tax identifier.
is_maskedbooleanYesTrue when a tax identifier is recorded but the caller may not read it.
fiscal_year_start_monthsmallintYesMonth the fiscal year starts.
base_currencycharacter(3)YesCurrency the entity keeps its books in.
is_primarybooleanYesTrue for the org's primary entity.
created_attimestamp with time zoneYesWhen the entity was added.
created_byuuidYesPerson who added it.
updated_attimestamp with time zoneYesWhen it last changed.
updated_byuuidYesPerson who last changed it.