E-Tafakna is not a law firm. In accordance with applicable regulations, E-Tafakna provides legal information, a mobile application for generating legal documents based on templates, and a service for connecting both businesses and individuals with professionals in various service fields.
TEIF Tunisia: Understanding the Header and Supplier-Customer Identification
With the spread of electronic invoicing in Tunisia, the TEIF format is the official standard. Discover the role of the header, identifiers I-01 to I-04, and recent changes to the standard.
TEIF Tunisia: Understanding the Header and Supplier-Customer Identification
With the spread of electronic invoicing in Tunisia, the TEIF (Tunisian Electronic Invoice Format) is the official standard for issuing digital invoices.
Among its components, the header plays a critical role, as it identifies the parties to the transaction—supplier and customer—from a legal and tax perspective.
In practice, this section is one of the main sources of errors during technical integration. This article explains how the TEIF header works, the identification rules, and recent changes to the standard.
The role of the header in the TEIF format
The header of a TEIF electronic invoice is the key to identifying and tracing the transaction. It links the invoice to the issuer (supplier) and the recipient (customer).
This identification is based on standardised identifiers defined by Tunisia TradeNet (TTN) to ensure the authenticity of the invoice, tax compliance, and interoperability with the tax authority.
Important
Without a valid header, the invoice may be rejected by the TTN platform.
Types of identifiers in the TEIF header
The TEIF standard provides for several types of identifiers depending on the type of economic actor. Each identifier is codified according to an official nomenclature.
I-01: Tunisian company identifier
Tunisian companies must use their tax registration number as the main identifier.
Previously: 13 characters only. Now: 8 or 13 characters accepted.
Example: 1234567LAM000. This identifier allows the tax authority to automatically associate the invoice with the registered company.
I-02: Tunisian individual identifier (national ID)
For individuals not registered for tax (freelancers, private individuals), the identifier is the national ID card number. Example: 01234567.
I-03: Foreign resident identifier
Foreign nationals resident in Tunisia use their residence permit number. Example: 123456789.
I-04: Foreign company identifier
Foreign companies not registered in Tunisia must use their original tax or business identifier. Example: FR12345678901.
This mechanism facilitates cross-border invoicing while ensuring tax traceability.
Evolution of the TEIF standard: versions 1.8.8 vs 1.8.9
The TEIF standard is regularly updated to reflect the realities of the Tunisian market.
Version 1.8.8
Accepted only 13-character tax registration numbers.
Version 1.8.9
Now accepts 8- or 13-character registration numbers.
This change simplifies integration for many companies and reduces technical rejections when issuing invoices.
Consistency with the TTN account: a critical point
A point that is often overlooked is the consistency between the supplier identifier on the invoice and the one registered on the TTN account.
If the identifier declared on the invoice does not exactly match the one configured on TTN
the invoice will be rejected
the tax process will be blocked
payment delays may occur
Technical best practices (LegalTech Insight)
To avoid TEIF integration errors:
Centralise identifiers in the ERP system
Synchronise the TTN account with the invoicing software
Automate identifier validation
Implement format checks before submission
Monitor TTN errors in real time
How E-Tafakna simplifies the TEIF header
At E-Tafakna, we have built-in TEIF identifier management:
Automatic validation of I-01, I-02, I-03, I-04 formats
Smart supplier/customer mapping
Synchronisation with TTN
Error logs and compliance dashboard
API ready for ERP and CRM
Goal: eliminate technical errors and ensure immediate tax compliance.
Conclusion
The TEIF header is a fundamental part of the Tunisian electronic invoice. Incorrect identification can lead to invoice rejection, payment delays, and tax risks.
Understanding the TEIF header rules and the evolution of the standard is therefore essential for a successful transition to electronic invoicing.
Discover how E-Tafakna automates TEIF compliance
Discover how E-Tafakna automates TEIF compliance and simplifies electronic invoicing in Tunisia.
Draft and sign your contracts online
Templates that follow your country's law, electronic signature (including TunTrust qualified signature in Tunisia) and secure archiving.
E-Tafakna is an innovative startup in legal tech. We are dedicated to transforming access to legal services by offering advanced digital solutions for the creation, management, and execution of legal documents. Our mission is to democratize legal services by making them more affordable, accessible, and understandable, thus enabling everyone, from entrepreneurs to large corporations, to easily navigate the legal world.
TEIF Tunisia: Understanding the Header and Supplier-Customer Identification