Automatisch erstellt) stamp: the session name and timestamp (e.g., Automatisch erstellt 12.06.2024 10:20:04) deactivated: the session status. When true, the session cannot be used for a new accounting entry.
This page groups all legislation-specific rules for API fields whose behaviour varies depending on the organization’s legislation
(FR, ES, DE or PT).
The same information is also documented on each resource page concerned, next to the field it applies to. Use this page when you need a single cross-resource reference; use the individual resource pages for full field context.
Some API resources or capabilities apply to a single legislation only. The pages below document those legislation-specific features in detail.
| CountryAcronym | Allowed document types (code name) |
|---|---|
| FR | 01 SIREN / SIRET |
| CountryAcronym | Allowed document types (code name) |
|---|---|
| ES | 01 NIF/DNI |
| CountryAcronym | Allowed document types (code name) |
|---|---|
| DE | 01 Steur-IdN |
| CountryAcronym | Allowed document types (code name) |
|---|---|
| PT | 01 NIF |
| Country | Allowed document types (code name) |
|---|---|
| FR | 01 SIRET |
| VIES not FR | 02 TVA Intracommunautaire |
| Other | 06 Autre document justificatif |
| Country | Allowed document types (code name) |
|---|---|
| ES | 01 NIF/DNI |
| VIES not ES | 02 NIF/IVA |
| Other | 03 Pasaporte |
| Other | 04 Documento oficial emitido en el país de residencia |
| Other | 05 Certificado de residencia |
| Other | 06 Otro documento probatorio |
| Country | Allowed document types (code name) |
|---|---|
| DE | 01 Steur-IdN |
| VIES not DE | 02 USt-IdNr |
| Other | 06 Another supporting document |
| Country | Allowed document types (code name) |
|---|---|
| PT | 01 NIF |
| VIES not PT | 02 NIF/IVA |
| Other | 06 Another supporting document |
Subaccount. Refer to accountLevel for the structure of other account types.
4110000, 411DUPONT, 445662000, 445663, 6010572000000, 6060000001530, 3010211100000, 211113000Subaccount accounts can be used in accounting entries.Subaccount accounts can be used in accounting entries.Subaccount accounts can be used in accounting entries.Subaccount accounts can be used in accounting entries.SUB_ACCOUNT.
Only these values can be used:
Only these values can be used:
Only these values can be used:
Only these values can be used:
Use only when accountType is E.C.P.N.
true, the account is controlled by DATEV and should not be manually modified.false, the account can be manually managed.Refers to an account used for advance payments including tax. Required for accounts with the nature “Customer advance payment (tax included)” or “Supplier advance payment (tax included)”.
Indicates whether the account is included in the EÜR (Einnahmenüberschussrechnung – simplified income statement).
true → The account is included in the EÜR calculation/export.false → The account is excluded from the EÜR. Typical usage: include sales, bank, and expense accounts; exclude fixed assets and equity accounts.This field is required to prove the origin of every account in the chart of accounts under German accounting law. It clearly distinguishes standard system accounts from user-created ones, allowing auditors to verify that the official chart (SKR03 or SKR04) remains intact and GoBD compliant.
SUB_ACCOUNT.
Only these values can be used:
Only these values can be used:
Only these values can be used:
Only these values can be used:
Only for Spanish legislation
For Spanish legislation, and only if the journal type is PURCHASE_INVOICE or SALES_INVOICE, it is possible to specify that the journal is used for credit notes. In this case, it is mandatory to specify a reason by selecting one of the following values:
R1: Return of packaging
R2: Bankruptcy proceedings
R3: Bad debt
R4: Other corrective invoices
R5: Simplified invoice correction
Only for Spanish legislation
Only for Spanish legislation
Code used for the Spanish SII (Immediate Supply of Information) classification of the invoice type.
Automatisch erstellt) stamp: the session name and timestamp (e.g., Automatisch erstellt 12.06.2024 10:20:04) deactivated: the session status. When true, the session cannot be used for a new accounting entry.
Used only for Germany.
These fields are used for Spanish simplified invoices when several simplified invoices are grouped into a single accounting entry. Grouping is used to avoid creating one accounting entry per simplified invoice while still keeping the traceability of the invoice number range included in the grouped accounting entry.
This value is optional
This value is optional
This value is mandatory even if descriptions are given for each line.
This value is optional
DE legislation)
This value is not required.
This value is not required.
This value is mandatory and automatically assigned according to the following rules:
null, then sessionId is automatically set to the default value from the list of sessions AccountingEntrySession.This value is not required.
This value is not used.
These optional fields are used when several simplified invoices are grouped into a single accounting entry.
This value is not used.
This value is not used.
This value is optional
This value is optional
This value is mandatory even if descriptions are given for each line.
This value is optional
DE legislation)
This value is not required.
This value is not required.
This value is mandatory and automatically assigned according to the following rules:
null, then sessionId is automatically set to the default value from the list of sessions AccountingEntrySession.This value is not required.
This value is not used.
These optional fields are used when several simplified invoices are grouped into a single accounting entry.
This value is not used.
This value is not used.
true = Include closing entry lines
All defaultXXXId fields are valid for the French market, except for the following:
All defaultXXXId fields are valid for the Spanish market, except for the following:
All defaultXXXId fields are valid for the German market, except for the following:
| Country | Allowed document types (code name) |
|---|---|
| FR | 01 SIRET |
| VIES not FR | 02 TVA Intracommunautaire |
| Other | 06 Autre document justificatif |
| Country | Allowed document types (code name) |
|---|---|
| ES | 01 NIF/DNI |
| VIES not ES | 02 NIF/IVA |
| Other | 03 Pasaporte |
| Other | 04 Documento oficial emitido en el país de residencia |
| Other | 05 Certificado de residencia |
| Other | 06 Otro documento probatorio |
| Country | Allowed document types (code name) |
|---|---|
| DE | 01 Steur-IdN |
| VIES not DE | 02 USt-IdNr |
| Other | 06 Another supporting document |
| Country | Allowed document types (code name) |
|---|---|
| PT | 01 NIF |
| VIES not PT | 02 NIF/IVA |
| Other | 06 Another supporting document |
Forcing a value allows you to retrieve an alphanumeric code that can already identify the Customer, even if automatic numbering mode is active.
Forcing a value allows you to retrieve an alphanumeric code that can already identify the Customer, even if automatic numbering mode is active.
DE, automatic numbering is mandatory and cannot be disabled from Sequence Numbers.10000 and 69999 for customers, and between 70000 and 99999 for suppliers or employees.Forcing a value allows you to retrieve an alphanumeric code that can already identify the Customer, even if automatic numbering mode is active.
CUSTOMER.
Caution, as per DE legislation, assigning a defaultAccountingAccountId is mandatory, if a default value is not provided, it will then be necessary to specify in defaultAccountingAccountId the Customer collective account ID.
Indicates whether a customer is subject to the equivalence surcharge regime.
The equivalence surcharge, as applied in Spain, is a form of simplified VAT for retail traders who cannot recover VAT. The rates of the equivalence surcharge vary according to the VAT rate applicable to the products, with surcharge rates of 5.2% for products with a general VAT of 21%, 1.4% for products with a reduced VAT of 10%, and other rates for different products or categories.
123456782123456782_Accounting123456782_12345678200001123456782_12345678200001_Bakery| Country | Allowed document types (code name) |
|---|---|
| FR | 01 SIRET |
| VIES not FR | 02 TVA Intracommunautaire |
| Other | 06 Autre document justificatif |
| Country | Allowed document types (code name) |
|---|---|
| ES | 01 NIF/DNI |
| VIES not ES | 02 NIF/IVA |
| Other | 03 Pasaporte |
| Other | 04 Documento oficial emitido en el país de residencia |
| Other | 05 Certificado de residencia |
| Other | 06 Otro documento probatorio |
| Country | Allowed document types (code name) |
|---|---|
| DE | 01 Steur-IdN |
| VIES not DE | 02 USt-IdNr |
| Other | 06 Another supporting document |
| Country | Allowed document types (code name) |
|---|---|
| PT | 01 NIF |
| VIES not PT | 02 NIF/IVA |
| Other | 06 Another supporting document |
Forcing a value allows you to retrieve an alphanumeric code that can already identify the Supplier, even if automatic numbering mode is active.
Forcing a value allows you to retrieve an alphanumeric code that can already identify the Supplier, even if automatic numbering mode is active.
DE, automatic numbering is mandatory and cannot be disabled from Sequence Numbers.10000 and 69999 for customers, and between 70000 and 99999 for suppliers or employees.Forcing a value allows you to retrieve an alphanumeric code that can already identify the Supplier, even if automatic numbering mode is active.
PROVIDER.
Caution, as per DE legislation, assigning a defaultAccountingAccountId is mandatory, if a default value is not provided, it will then be necessary to specify in defaultAccountingAccountId the Supplier collective account ID.
Indicates whether personal income tax is applicable for the supplier. If true, personal income tax handling is enabled.
References the tax treatment applicable to the supplier. Links to a TaxTreatment object that defines the correct tax handling rules.
Forcing a value allows you to retrieve an alphanumeric code that can already identify the Employee, even if automatic numbering mode is active.
Forcing a value allows you to retrieve an alphanumeric code that can already identify the Employee, even if automatic numbering mode is active.
10000 and 69999 for customers, and between 70000 and 99999 for suppliers or employees.Forcing a value allows you to retrieve an alphanumeric code that can already identify the Employee, even if automatic numbering mode is active.
This field is specific to the Spanish legislation (IRPF): Indicates whether withholding tax (IRPF) applies to this product. If true, withholding can be calculated on sales documents using this product. If false, no withholding will be applied.
Always 0 as it is unused for the French market
Returns the percentage of the equivalence surcharge if the customer has the option hasEquivalenceSurcharge set to true else returns 0.
The equivalence surcharge, as applied in Spain, is a form of simplified VAT for retail traders who cannot recover VAT. The rates of the equivalence surcharge vary according to the VAT rate applicable to the products, with surcharge rates of 5.2% for products with a general VAT of 21%, 1.4% for products with a reduced VAT of 10%, and other rates for different products or categories.
Always 0 as it is unused for the German market
Always 0 as it is unused for the Portuguese market
The following fields are specific to the Spanish legislation (IRPF):
Indicates whether a customer is subject to the equivalence surcharge regime.
The equivalence surcharge (totalFeeSurcharge), as applied in Spain, is a form of simplified VAT for retail traders who cannot recover VAT. The rates of the equivalence surcharge vary according to the VAT rate applicable to the products, with surcharge rates of 5.2% for products with a general VAT of 21%, 1.4% for products with a reduced VAT of 10%, and other rates for different products or categories. The equivalence surcharge is calculated on amount of general VAT (totalVatFee). The hasEquivalenceSurcharge field takes the value defined on the customer record.
mandatory for the French market
no mandatory for the Spanish market
no mandatory for the Germany market
mandatory for the Portuguese market
mandatory for VIES customers
no mandatory for Spanish market
no mandatory for Germany market
The following fields are specific to the Spanish legislation (IRPF):
The following fields are specific to the Spanish legislation (IRPF):
Indicates whether a customer is subject to the equivalence surcharge regime.
The equivalence surcharge (totalFeeSurcharge), as applied in Spain, is a form of simplified VAT for retail traders who cannot recover VAT. The rates of the equivalence surcharge vary according to the VAT rate applicable to the products, with surcharge rates of 5.2% for products with a general VAT of 21%, 1.4% for products with a reduced VAT of 10%, and other rates for different products or categories. The equivalence surcharge is calculated on amount of general VAT (totalVatFee). The hasEquivalenceSurcharge field takes the value defined on the customer record.
mandatory for the French market
no mandatory for the Spanish market
no mandatory for the Germany market
mandatory for the Portuguese market
mandatory for VIES customers
no mandatory for Spanish market
no mandatory for Germany market
The following fields are specific to the Spanish legislation (IRPF):
The following fields are specific to the Spanish legislation (IRPF):
Indicates whether a customer is subject to the equivalence surcharge regime.
The equivalence surcharge (totalFeeSurcharge), as applied in Spain, is a form of simplified VAT for retail traders who cannot recover VAT. The rates of the equivalence surcharge vary according to the VAT rate applicable to the products, with surcharge rates of 5.2% for products with a general VAT of 21%, 1.4% for products with a reduced VAT of 10%, and other rates for different products or categories. The equivalence surcharge is calculated on amount of general VAT (totalVatFee). The hasEquivalenceSurcharge field takes the value defined on the customer record.
mandatory for the French market
no mandatory for the Spanish market
no mandatory for the Germany market
mandatory for the Portuguese market
mandatory for VIES customers
no mandatory for Spanish market
no mandatory for Germany market
The following fields are specific to the Spanish legislation (IRPF):
The following fields are specific to the Spanish legislation (IRPF):
Indicates whether a customer is subject to the equivalence surcharge regime.
The equivalence surcharge (totalFeeSurcharge), as applied in Spain, is a form of simplified VAT for retail traders who cannot recover VAT. The rates of the equivalence surcharge vary according to the VAT rate applicable to the products, with surcharge rates of 5.2% for products with a general VAT of 21%, 1.4% for products with a reduced VAT of 10%, and other rates for different products or categories. The equivalence surcharge is calculated on amount of general VAT (totalVatFee). The hasEquivalenceSurcharge field takes the value defined on the customer record.
mandatory for the French market
no mandatory for the Spanish market
no mandatory for the Germany market
mandatory for the Portuguese market
mandatory for VIES customers
no mandatory for Spanish market
no mandatory for Germany market
When true, the customer name is printed on the simplified invoice PDF. On creation, this option can be pre-filled from the customer’s printNameOnPdf default and then changed on the invoice if needed.
The following fields are specific to the Spanish legislation (IRPF):
This allows you to select VAT rates for DOM in sales entities.
Used to define the Session preference for posting a sales invoice to your accounting records.
Used to define the Session preference for posting a purchase invoice to your accounting records.
true, simplified invoices are used for individual customers by default.