companies_identification
In short
Portfolio of companies accessible on Pennylane. This table includes basic information allowing to easily identify entities accross all tools used by an accounting firm.
A company represents a legal entity managed on Pennylane. Each company is uniquely identified by its Pennylane id, as well as its official registration_number (SIREN).
Most tables in the pennylane database hold a company_id column that refers to companies.id, and allows to identify which records belong to which company. More information on a company can be found in table pennylane.companies). In some cases, the accounting firm can decide to use their own ID to identify the company, different from its registration number or Pennylane’s internal ID. That can be the case for instance, if they decide to use the ID assigned in their CRM, or the ID generated by the previous accounting software they were using. In those cases, the firm can utilize the external_id column from this table to find the map between their own ID and Pennylane’s ID, and use the latter to identify the company in the other tables.
Filter key(s)
id
Sorting key
ClickHouse skips blocks only when the filter starts with this key, in this order. When the first column is `company_id`, put `company_id` in every query. Read a fleet one company at a time, or in batches of `company_id`. Do not run one query with no company filter. List only the columns you need. `SELECT *` reads columns you will not use.
id
Available columns
id
Int64
Unique ID identifying the company on Pennylane.
Examples: 100094, 21847061
name
String
Company's display name on Pennylane. This name may differ from the legal registration name.
firm_id
Nullable(Int64)
Unique ID of the accounting firm managing the company.
firm_name
String
Name of the accounting firm managing the company.
trade_name
String
Company's trade name on Pennylane. This name may differ from the legal registration name and the display name in Pennylane (see name).
registration_number
String
Company's official registration number (SIREN).
vat_number
String
VAT number of the company, if applicable.
external_id
Nullable(String)
[DECOMMISSIONED - Field will be removed in future releases] Company's external ID used by the accounting firm to refer to the company in other softwares. This ID is used to simplify managing the data associated with the company in the different programs used by the firm (CRM, Pennylane, ...). Users simply need to enter this ID in Pennylane during the initial setup of the company in Pennylane.
source_id
Nullable(String)
Company's external ID used by the accounting firm to refer to the company in other softwares. This ID is used to simplify managing the data associated with the company in the different programs used by the firm (CRM, Pennylane, ...). Users simply need to enter this ID in Pennylane during the initial setup of the company in Pennylane.
file_type
Nullable(String)
File type, 'accounting' for bookeeping and 'revision' for review
accountant_email
Nullable(String)
Email address of the accountant in charge of the company. This email address is used to send notifications to the accountant when the company's data is updated.
accounting_supervisor_email
Nullable(String)
Email address of the accounting manager in charge of the company.
accounting_manager_email
Nullable(String)
Email address of the accounting manager in charge of the company.
legal_manager_email
Nullable(String)
Email address of the legal manager in charge of the company.
legal_collaborator_email
Nullable(String)
Email address of the legal collaborator in charge of the company.
social_manager_email
Nullable(String)
Email address of the social manager in charge of the company.
social_collaborator_email
Nullable(String)
Email address of the social collaborator in charge of the company.
external_auditor_email
Nullable(String)
Email address of the external auditor in charge of the company.
substitute_accountant_email
Nullable(String)
Email address of the substitute accountant in charge of the company.
manager_email
Nullable(String)
Email of the company manager.
company_updated_at
DateTime64(6, 'UTC')
Last update time of the company record.
transfer_ends_on
Nullable(Date32)
In case the company is changing accounting firm, date at which the transfer will happen.
churns_on
Nullable(Date32)
Date at which the company is expected to churned from the accounting firm. When this date is reached, the company will be removed from the firm's portfolio. For the vast majority of companies which are not expected to churn, this field is NULL.
closing_date
Nullable(String)
Day and month of the company's fiscal year closing date, in 'DD/MM' format.
pa_mandate_status
Nullable(String)
PA (Plate-forme agréée) is the French acronym for approved platforms for electronic invoicing (facture électronique). PA replaces the former name PDP (plateforme de dématérialisation partenaire). The two names are used for the same thing. This field is the current status of the company's mandate (authorization) to use such a platform. Values: to_send (mandate not yet sent), sent (sent to the platform), signed (signed by the company), expired (no longer valid). Useful to track onboarding or renewal.
pa_mandate_signed_at
Nullable(Date)
Date on which the company signed the PA/PDP mandate. Empty if not yet signed. Use for compliance and reporting on when clients completed their PA/PDP authorization.
pa_activated
Bool
Indicates whether the company has at least one active PA/PDP subscription (directory line) in the electronic invoicing directory. When true, the company can send electronic invoices through a PA/PDP.
pa_platform_names
Nullable(String)
Names of the PA/PDP platform(s) the company is registered with (e.g. Pennylane or other providers). When the company uses several platforms, names are separated by ' / '. Use to see which tools each client uses for electronic invoicing.
pa_has_pennylane
UInt8
Indicates whether Pennylane is one of the PA/PDP platforms used by the company. Useful to filter or report on clients who use Pennylane for electronic invoicing.
pa_consented_at
Nullable(DateTime64(6))
Date and time when the company gave consent to use PA/PDP (reception of consent). Use for compliance and to track when the client opted in to the dematerialization service.