Aller au contenu
Tax

TEIF invoice: Tunisia's e-invoice XML format explained

TEIF, the XML format of Tunisian e-invoices: structure, TunTrust signature, TTN (El Fatoora) validation, how it differs from a PDF and who must use it.

TEIF invoice: Tunisia's e-invoice XML format explained
Contents 9
  1. What is the TEIF format?
  2. TEIF, El Fatoora, TTN: who does what?
  3. What does a TEIF invoice contain?
  4. Electronic signature and TTN validation
  5. TEIF invoice or PDF invoice: what is the difference?
  6. Who must use it, and since when?
  7. How do you issue TEIF invoices?
  8. And FactiPro?
  9. FAQ

A TEIF invoice is an electronic invoice in the XML format defined by Tunisie TradeNet (TTN): the Tunisian Electronic Invoice Format. The supplier signs it with a qualified electronic certificate (TunTrust) and sends it to the El Fatoora platform; TTN then checks it, gives it a unique reference and countersigns it with a visible electronic seal (QR code). So it is not a PDF: it is a structured data file, signed and registered.

What is the TEIF format?

TEIF is the format El Fatoora requires: your software must convert each invoice into TEIF before sending it (KPMG circular, February 2026). It is published by TTN, the body put in charge of the e-invoicing system by decree no. 2016-1066 of 15 August 2016.

Technically, it is an XML schema (XSD) whose root element is <TEIF>, with a version number. Version 1.8.9 was in production in 2026 and a version 1.9.0 was being tested, according to a public copy of the schema; check the version in force with TTN before any development. The block names (Bgm, Dtm, Nad, Lin, Moa…) follow the EDIFACT INVOIC invoice message: TEIF is not the European UBL format.

TEIF, El Fatoora, TTN: who does what?

  • TTN (Tunisie TradeNet) runs the system and publishes the TEIF specifications.
  • El Fatoora is TTN's platform that receives, checks and processes e-invoices.
  • TunTrust (ANCE) issues the electronic signature certificates.
  • The tax administration (DGI) receives the company's registration declaration.

For the registration steps, see our guide to El Fatoora registration.

What does a TEIF invoice contain?

According to schema 1.8.9, a TEIF invoice contains:

  • a header: sender and receiver identifiers;
  • the body: document number and type (invoice, credit note, fee note), dates, parties with their tax ID (matricule fiscal), payment terms;
  • the lines: description, quantity, price, discounts and taxes for each line;
  • the totals (excluding tax, tax base, taxes, including tax) and the tax summary: VAT, stamp duty, FODEC;
  • a block added by TTN after validation (RefTtnVal): the TTN reference, the content of the visible electronic seal and the date.

An e-invoice must carry the same legal mentions as a paper invoice (article 18 of the VAT Code): see the mandatory invoice mentions. The schema has free-text fields, but we found no source making the amount in words mandatory in TEIF.

Electronic signature and TTN validation

  1. Supplier signature: with a qualified TunTrust certificate (DigiGo on a phone, ID-Trust on a USB key, Enterprise-ID electronic seal for a company). According to the KPMG circular, DigiGo starts at 50 TND excl. tax for 2 years and ID-Trust costs 350 TND excl. tax.
  2. TTN check: the platform verifies the file and the signature.
  3. TTN countersignature: unique reference, TTN signature and signed QR code (visible electronic seal).

The paper copy carries the mention "Copy of an electronic invoice registered with the approved body under number …" (Idaraty).

TEIF invoice or PDF invoice: what is the difference?

A PDF is only a picture of an invoice, even when it is sent by e-mail. A TEIF invoice is a data file signed and registered by TTN. The El Fatoora portal says it plainly: an electronic invoice is not a simple PDF file. The PDF can only serve as the paper copy, with the TTN reference.

Who must use it, and since when?

  • Before 2026: e-invoicing was mandatory for companies under the Large Enterprises Directorate that invoice the State, local authorities and public bodies, and for business-to-business sales of medicines and petroleum products (excluding retail).
  • 2026 Finance Act, article 53: extended to service providers from 1 January 2026, including liberal professions issuing fee notes (joint note no. 2/2026). The flat-rate and self-employed (auto-entrepreneur) regimes are not concerned yet. The joint note lets those who have applied for registration keep issuing paper invoices until it is complete.
  • Penalties (Idaraty): 100 to 500 TND per paper invoice issued instead of an e-invoice, capped at 50,000 TND.

Situation at the end of November 2026, to be followed: in April 2026 Parliament kept the obligation but suspended its application pending a further text; at the end of November, the committees on the 2027 finance bill kept the obligation and proposed moving penalties to 1 January 2028. Nothing is final until the vote and publication in the Official Journal (JORT). The full timeline is in our article E-invoicing in Tunisia: 2026.

How do you issue TEIF invoices?

  1. Register at adhesion.elfatoora.tn: company information, documents (business licence, RNE, representative's ID), signature, submission.
  2. Choose the mode: Web (entry on the portal, for small businesses) or EDI (software connection by web service or SFTP, for high volumes, with a test phase with TTN).
  3. Get a TunTrust signature certificate.
  4. Declare the registration to the tax administration with the TTN certificate.

TTN fees are set by an order of the Minister of Finance of 28 March 2017.

And FactiPro?

FactiPro helps you prepare clear invoices that carry the legal mentions: tax ID, VAT, FODEC, stamp duty, amount in words. Sending invoices in TEIF format to El Fatoora is not available in FactiPro yet. If you are concerned, Web-mode entry on the El Fatoora portal remains possible in the meantime.

FAQ

What is a TEIF invoice?

An invoice in TTN's XML format, signed by the issuer with a TunTrust certificate, sent to El Fatoora, then validated, referenced and countersigned by TTN with a QR code.

Is TEIF the same as UBL XML?

No. It is a schema specific to Tunisia (root <TEIF>), whose blocks follow the EDIFACT INVOIC message.

Is a PDF invoice sent by e-mail enough?

No, where e-invoicing is mandatory. The PDF only serves as a paper copy carrying the TTN reference.

Must a self-employed person (auto-entrepreneur) issue TEIF invoices?

Not for now: the flat-rate and auto-entrepreneur regimes are not concerned yet.

Information up to date on 29 November 2026; check with TTN and the tax administration. This article is not tax advice.

Sources

Prepared by the FactiPro team with the help of AI tools, from official texts and the sources listed.

General information article; it does not replace advice from your accountant or the tax administration.