tax_declarations

In short

Tax declarations sent from Pennylane. This table includes the tax declarations created in Pennylane, such as CVAE, corporate tax, VAT, tax returns, and DECLOYER.

Tax Declarations include all tax declarations created in Pennylane such as CVAE, IS, VAT, Tax return, DECLOYER. Currently these declarations are generated by accounting users and sent to the tax administration via Télédec.

Filter key(s)

company_id

declaration_period_start_at

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

Unique ID of the fiscal déclarations on Pennylane.

company_id

Int64

Unique ID of the company on Pennylane, referring to companies.id.

company_name

String

Company's display name on Pennylane.

declaration_type

LowCardinality(Nullable(String))

Type of the declaration:
- TVA
- DAS2
- IS
- CVAE
- RCM
- Liasse

form

Nullable(String)

Form number of the declaration.

declaration_id

Nullable(Int64)

ID of the declaration on Télédec.

declaration_period_start_at

Nullable(Date)

Start date of the declaration period.

declaration_period_end_at

Nullable(Date)

End date of the declaration period.

declaration_status

LowCardinality(Nullable(String))

Status of the declaration. Possible values:
- created
- sent
- accepted
- rejected
- error

is_declaration_validated

Nullable(Bool)

true if the declaration is validated, "false" otherwise.

is_payment_validated

Nullable(Bool)

true if the payment is validated, "false" otherwise.

payment_amount

Nullable(Decimal(15, 2))

Amount of the payment displayed on the tax declaration.

reason_for_rejection

Nullable(String)

When the declaration status is in error, reason provided by Télédec for the rejection of the declaration.

direction

LowCardinality(Nullable(String))

Direction of the declaration (incoming, outgoing)

rof

Nullable(String)

ROF identifier

reg_no

Nullable(String)

Registration number

deadline_on

Nullable(Date)

Deadline for the declaration

reference

Nullable(Int64)

Reference number

dgfip_process_number

Nullable(String)

DGFiP process number

dgfip_reference

Nullable(String)

DGFiP reference

dgfip_declared_at

Nullable(DateTime64(6, 'UTC'))

Timestamp when declared to DGFiP

status_label

Nullable(String)

Human-readable status label

teledec_login

Nullable(String)

Teledec login used

error_code

Nullable(String)

Error code if any

owner_id

Nullable(Int64)

FK to the user who owns the declaration

pennylane_reference

Nullable(String)

Pennylane internal reference

forms_status

Nullable(String)

Status of the forms

created_at

DateTime64(6, 'UTC')

Creation date of the declaration within Pennylane.

updated_at

DateTime64(6, 'UTC')

Last update date of the document associated with the bookkeeping entry.

synchronized_at

DateTime64(6, 'UTC')

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


Back to top

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