companies

In short

Portfolio of companies accessible on Pennylane. This table includes basic company information such as their registration details and Pennylane settings.

This table is suited for incremental ingestion with an ETL tool. For standard data analysis, use schema pennylane.

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 and etl databases hold a company_id column that refers to companies.id, and allows to identify which records belong to which company.

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

Nullable(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.

registration_number

String

Company's official registration number (SIREN).

vat_number

String

VAT number of the company, if applicable.

country_alpha2

String

Company's registration country code.
Examples: "FR", "DE", "GB"

city

String

Company's registration city.

postal_code

String

5 digits post code of the company.

saas_plan

String

Pennylane plan selected by the company - indicates the range of features that the company can access. Visit this page for more details.
Examples: "v1_basic", "v1_essential", "v1_pro"

cash_based_accounting

Bool

If true, indicates that the company uses cash-based accounting.
If false, the company uses the standard engagement accounting.

vat_frequency

Nullable(String)

Frequency at which VAT declarations are to be filed.
Examples: "monthly", "quarterly", "yearly", "not_applicable"

vat_day_of_month

Nullable(Int32)

Day of the month at which VAT declarations are to be filed. This value is only relevant if `vat_frequency` is set to `monthly`.
Examples: 1, 15, 25

fiscal_category

Nullable(String)

Fiscal category of the company, as defined by the French tax administration. This value is used to determine the applicable VAT rates. It can take the following values:
`BIC-IS` : Bénéfices industriels et commerciaux - Impot sur les sociétés,
`BIC-IR` : Bénéfices industriels et commerciaux - Impot sur les revenus,
`BNC` : Benefices non commerciaux,
`BA` : Bénéfices agricoles,
`BIC-IS-GT` : Bénéfices industriels et commerciaux - Impot sur les sociétés, Groupe Tête,
`BIC-IS-GM` : Bénéfices industriels et commerciaux - Impot sur les sociétés, Groupe Membre,
`ETRANGER` : Revenus de source étrangère,
insee `SCM` : Société civile de moyens,
`RF` : Revenus Fonciers.
Examples: "SCM", "BNC", "BIC-IS"

fiscal_regime

String

Fiscal regime of the company, as defined by the French tax administration. It is used to determine the applicable VAT rates. This value can be empty when the fiscal regime has not been set.
Examples: "Simplified", "Normal"

registration_date

Nullable(Date32)

Date at which the company was registered officially.

activity_code

String

Activity sector code as defined by INSEE. This French nomenclature of economic activities, abbreviated NAF, is meant to simplify the organization of economic and social information.
Examples: "68.20B", "45.11Z", "81.10Z"

activity_sector

Nullable(String)

Human readable activity sector of the company; this value is derived from the `activity_code`.
Examples: "SCI/LMNP", "Restauration", "E-commerce"

Legal form code, referring to the type of entity that an organisation may be, see `legal_form`. This is the official code provided by the INSEE.
Examples: "5710", "6585"

Human readable equivalent of the `legal_form_code`.
Examples: "SAS, société par actions simplifiée", "Autre société civile professionnelle"

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.

created_at

DateTime64(6, 'UTC')

Date and time at which the company was created on Pennylane.

updated_at

DateTime64(6, 'UTC')

Date and time at which the company was last updated on Pennylane.

synchronized_at

DateTime64(6, 'UTC')

Timestamp of the last time this row version was written in ClickHouse.

deleted_at

Nullable(DateTime64(6, 'UTC'))

When the record was deleted. Empty when the record is still live. A row dropped by a company-level filter (draft, archived, unknown or deleted company) disappears with no deleted_at. Cascade those from etl.companies.


Back to top

Page last modified: Nov 23 2026 at 06:10 PM.