customers
In short
Customers of companies managed on Pennylane.
This table is suited for incremental ingestion with an ETL tool. For standard data analysis, use schema
pennylane.
A customer represents a customer of a company managed on Pennylane. Customers can be individuals or legal entities.
💡 In case the same individual or legal entity is a customer of multiple companies managed on Pennylane, they will be represented by multiple records that share similar metadata.
Filter key(s)
company_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.
company_id, id
Available columns
id
Int64
Unique ID identifying the customer on Pennylane.
name
String
Customer's display name on Pennylane. This name may differ from the legal registration name.
company_id
Int64
Unique ID of the company on Pennylane, referring to companies.id.
company_name
String
Name of the company on Pennylane, referring to companies.name.
vat_rate
Nullable(String)
VAT rate applied to the customer, when applicable. This value acts as an automation rule and is used by the Pennylane OCR.
Examples: "FR_200", "FR_100", "extracom", "exempt"
plan_item_number
Nullable(String)
411 accounting plan item number associated with the customer.
Examples: "41100001", "411NORAUTO"
pnl_plan_item_number
Nullable(String)
Profit & Loss accounting plan item number, i.e. a class 7 account.
Examples: "701", "7094"
postal_code
Nullable(String)
Postal code of the customer. This value is sourced from an internal legal entity listing, when available.
country_alpha2
Nullable(String)
The country code associated with the customer addresss. This value is sourced from an internal legal entity listing, when available.
Examples: "FR", "IE", "GB"
city
Nullable(String)
City of the customer. This value is sourced from an internal legal entity listing, when available.
registration_number
Nullable(String)
Customer's official registration number, for example SIREN in France.
vat_number
Nullable(String)
VAT number of the customer, when applicable.
activity_code
Nullable(String)
For legal entity customsers, activity sector code as defined by INSEE, when available. 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"
legal_name
Nullable(String)
For legal entity customers, legal name of the customer. This name may differ from the customer's display name.
registration_country_alpha2
Nullable(String)
Some legal entities may have a postal address in France (country_alpha2 = 'FR'), and a registration address in Ireland (reg_country_alpha2 = 'IE').
This column contains the registration country code, that together with the registration number, uniquely identifies legal entity customers.
Examples: "FR", "IE", "GB"
iban_updated_at
Nullable(DateTime64(6, 'UTC'))
Datetime of the last IBAN update
iban_updated_by
Nullable(String)
Last user to modify the IBAN
plan_item_id
Nullable(Int64)
Identifier of the bookkeeping account.
plan_item_label
Nullable(String)
Label of the bookkeeping account.
updated_at
Nullable(DateTime64(6, 'UTC'))
Date and time when the customer was last updated in 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.