Skip to content
MedyAjans

Guide

E-invoicing integration in Türkiye: how it works

By MedyAjans · Updated:

The technical part is usually a few days of work. What delays these projects is almost always preparation and sign-off — so this guide covers that too.

E-invoicing integration in Türkiye is the connection through which your sales system — a commerce site, an ERP or custom software — issues the e-invoice or e-archive invoice and gets it to the buyer without manual intervention, either through a private integrator licensed by the Revenue Administration (GİB) or by direct integration with GİB. Türkiye operates a mandatory electronic invoicing regime; this guide covers the flow, the options, and where things get stuck in practice.

Scope note: what follows is the technical side. Which document type applies to your transactions, and how tax is calculated, belong to your accountant. Be cautious of proposals that blur those two.

First decision: provider or direct?

There are two routes, and for most businesses the first is correct.

First decision: provider or direct?
RouteSuitsUpsideDownside
Through an authorised providerThe large majority of businessesFast to set up; the provider tracks regulatory and schema changesMonthly or quota-based fee
Direct integrationVery high volume, special requirementsNo intermediary costCertificates, schema and regulatory tracking all fall on you; permanent maintenance load

The honest advice: unless your volume genuinely exceeds the intermediary cost, use a provider. Direct integration is not a job that finishes on the day it is built — regulation and document schemas change over time, and following every change is an ongoing burden.

The technical flow: order → invoice → buyer

A working setup typically runs like this:

  • 1. Trigger. Which event issues the invoice — order confirmation, payment capture or dispatch? This decision also determines refund and cancellation behaviour.
  • 2. Data collection. Buyer details, line items, tax rates, discounts, shipping. One missing or malformed field is enough to have the document rejected.
  • 3. Document creation. Converting your data into the schema the provider expects.
  • 4. Submission and response. The document goes to the provider; acceptance, rejection or an error comes back.
  • 5. Write-back. The document number and status are RECORDED in your own system. Skip this and nobody can tell which order has been invoiced.
  • 6. Delivery to the buyer. By email or through their portal.
  • 7. Refunds and cancellations. A separate flow — and the one most often left to the end and then forgotten.

Where these projects actually get stuck

Delays in integration projects usually come from these, not from code:

  • The test environment arrives late. Nothing can be verified without a provider test account; start this at the very beginning of the project.
  • Tax rates and exemption rules are undecided. A developer cannot guess these; your accountant must provide them in writing.
  • Buyer details are missing. Corporate buyers need tax details, individual buyers need identity fields — if your site does not collect them, the flow is blocked from the start.
  • The refund flow was never designed. When the first refund arrives and the system is not ready, the work goes manual and rarely comes back.
  • No failure handling. If a rejected document does not sit in a queue and nobody is notified, the problem surfaces at month-end reconciliation.

Put these in the contract

Ask for these four even if you work with someone else:

  • What happens on failure? Does a rejected document wait in a queue, is it retried automatically, and who is alerted past a threshold?
  • Is the document number and status written back? If not, the link between order and invoice has to be made by hand.
  • Are refunds and cancellations in scope? Most quotes for “invoice integration” cover only the sales direction.
  • What if we change provider? If the code is welded to one provider, switching means rewriting.

What is the difference between an e-invoice and an e-archive invoice?

In Türkiye, an e-invoice (e-fatura) is an electronic invoice issued between two users registered in the e-Invoice system; an e-archive invoice (e-arşiv fatura) is an electronic invoice issued to a buyer who is not registered — whether or not that buyer is a taxpayer. The difference lies in the buyer’s registration status, not in the document: Tax Procedure Law General Communiqué No. 509 states that the e-archive invoice is not a new type of document and has the same legal standing as a paper invoice.

What is the difference between an e-invoice and an e-archive invoice?
CriterionE-invoiceE-archive invoice
BuyerA registered e-Invoice userAn unregistered taxpayer or a consumer
How it reaches the buyerThrough the system into the buyer’s e-invoice inboxElectronically or as a paper print-out, as the buyer prefers
Issuer’s copyKept electronicallyKept electronically
The question your software must askIs the buyer a registered user?If not, issue an e-archive invoice

Source: Communiqué No. 509, section IV.2.1. When both seller and buyer are registered e-Invoice users, every invoice between them must be an e-invoice.

The practical consequence for an integration: before every invoice, the software must check whether the buyer is a registered user and choose the document type accordingly. “Business customer means e-invoice, consumer means e-archive” is a wrong shortcut — an unregistered company also receives an e-archive invoice. Skip the check and documents go down the wrong channel, followed by cancellations and re-issues.

Who must use e-invoicing in Türkiye? (2026 thresholds)

The general rule: taxpayers whose gross sales revenue is 3 million TRY or more for the 2022 or any later accounting period must join the e-Invoice system, starting from the beginning of the seventh month of the year following the period in which the threshold was crossed. For businesses selling online — on their own site or through an intermediary platform — the threshold is 500 thousand TRY.

Who must use e-invoicing in Türkiye? (2026 thresholds)
SituationThresholdResult
General obligationGross sales of 3 million TRY or more for 2022 and later periodsE-invoicing from the start of the seventh month of the following year
Selling goods or services onlineGross sales of 500 thousand TRY or more for 2022 and later periodsE-invoicing and e-archive invoicing by the start of the seventh month of the following period
Invoices of taxpayers outside the e-archive systemFrom 1 January 2026, regardless of amountIssued as e-archive invoices via the tax authority’s portal or a private integrator
Simplified-method taxpayers and those keeping business-account booksFrom 1 January 2027, regardless of amountThe same rule one year later

Source: Communiqué No. 509, sections IV.1.4, IV.1.5, IV.2.4.2 and IV.2.4.3, as amended by Communiqués No. 535 and No. 589. Thresholds can change by later communiqués; decide the transition with your accountant.

For software, the meaning is significant: from 2026 the space left for paper invoices is very small. Even a taxpayer outside the e-archive system must issue its invoices as e-archive invoices through the tax authority’s portal or a private integrator. A plan to “invoice by hand” therefore still runs through an electronic channel, even at low order volumes; the only question is whether it is done manually or automatically from your own system.

The communiqué states that if a paper invoice is issued or accepted instead of an e-archive invoice, the penalty under article 353 of the Tax Procedure Law applies separately for each paper invoice. Penalty amounts are revalued every year, so no figure is given here.

Private integrator, direct integration or the tax authority portal?

The Turkish Revenue Administration (GİB) offers its e-document applications through three methods: the GİB Portal method (its own web portal, manual issuing), the Private Integrator method (through the system of an institution licensed by GİB) and the Direct Integration method (your own IT system connected to GİB). For most businesses that want automated invoicing, the realistic choice is a private integrator.

Private integrator, direct integration or the tax authority portal?
MethodSuitsAutomationWho carries the load
GİB PortalLow invoice volumes, no integration infrastructureNone; every document is created by hand in the portalStaff time
Private integratorMost businesses wanting invoices from their site, ERP or custom softwareFull, via the integrator’s APIThe integrator tracks most format and regulation changes
Direct integrationTaxpayers meeting GİB’s conditions whose application is approvedFullCertificates, schema, testing and 24/7 connectivity are entirely yours

Source: Communiqué No. 509, section V.1. For direct integration, the integration work must be completed within one year of the application date at the latest.

The conditions for direct integration (activity, turnover, document volume, IT infrastructure and similar) are set by the Administration, and accounts of taxpayers who later fail to meet them can be closed. “Let’s not pay an intermediary” is therefore not enough reason to choose direct integration on its own; it means taking on a permanent technical operation.

Choosing an e-invoicing method: GİB Portal, private integrator or direct integrationHow will you issue invoices? Few invoices, manual issuing: GİB Portal: for low invoice volumes with no integration infrastructure; every document is created by hand in the portal, and the load is staff time. Automatic invoicing needed: Private integrator: full automation from your site, ERP or custom software via the integrator’s API; the integrator tracks most format and regulation changes. GİB conditions met, approved: Direct integration: certificates, schema, testing and connectivity are entirely yours; the work must be completed within one year of applying.How will you issue invoices?Fewinvoices,manualissuingGİB Portal: for lowinvoice volumes withno integrationinfrastructure; everydocument is created byhand in the portal,and the load is stafftime.AutomaticinvoicingneededPrivate integrator:full automation fromyour site, ERP orcustom software viathe integrator’s API;the integrator tracksmost format andregulation changes.GİBconditionsmet,approvedDirect integration:certificates, schema,testing andconnectivity areentirely yours; thework must be completedwithin one year ofapplying.
Decision tree: invoice volume, the need for automation and whether you meet GİB’s conditions decide the e-invoicing method.

How is an e-invoicing integration done, step by step?

A robust e-invoicing integration is built in seven steps, and coding is only one of them. The order matters: code written before the test account and the tax rules are settled comes back at the first real invoice.

  • 1. Document inventory. Which events create an invoice: sales, returns, services, subscriptions, partial deliveries? The trigger for each is written down.
  • 2. Tax rules in writing. VAT rates, exemptions, withholding and discount rules come in writing from the accountant; the developer does not guess.
  • 3. Integrator choice and test account. Nothing can be verified without a test environment; start this in the first week of the project.
  • 4. Buyer lookup. Before every invoice, check whether the buyer is a registered e-invoice user and choose the document type accordingly.
  • 5. Building and sending the document. Data is converted into the integrator’s format; acceptance, rejection and error responses are each handled separately.
  • 6. Write-back and queue. The invoice number and status are written to the order; failed documents wait in a queue, are retried, and raise an alert past a threshold.
  • 7. Reconciliation. At month end, check that “orders = invoices + deliberate exceptions”. If it does not balance, find the gap before the month closes.

What are the cost items of an e-invoicing integration?

An e-invoicing integration is not a single cost: one-off software work, the usage fee paid to the integrator and ongoing maintenance are budgeted separately. A business that sees only the first item in a quote underestimates the total cost.

What are the cost items of an e-invoicing integration?
ItemTypeWhat makes it grow
Integrator usage feeOngoing (credits/quota or monthly)Document volume and package
Integration softwareOne-offNumber of document types, returns/cancellations, number of systems connected
Preparing the existing systemOne-offMissing fields on the site or in the ERP (tax details, ID field)
Testing and reconciliation set-upOne-offNumber of scenarios: discounts, partial returns, multi-line orders
Maintenance and monitoringOngoingFormat/regulation changes, integrator API versions
Staff timeOngoingManual work per document if not automated

No amounts are given: integrator prices vary by package and volume. Compare quotes line by line against this table.

As a general yardstick, the market range for integration work is on our pricing page. The real decision is this: how many documents are issued by hand each month, and what is that in staff hours? The return on automation is the product of those two numbers.

What are the most common mistakes in e-invoicing integrations?

  • Choosing the document type without a buyer lookup. A registered buyer gets an e-archive invoice, an unregistered one an e-invoice; cancellations and re-issues follow.
  • Tying the invoice to the wrong event. An invoice issued on payment approval needs a return document if the order is later cancelled. Pick the trigger to match the workflow.
  • Rounding differences. VAT rounded per line on the site and on the total at the integrator creates a few-kuruş gap and a rejected document. Define rounding in one place.
  • Leaving shipping and discounts off the lines. Amount paid and invoice total do not match; reconciliation shows an unexplained gap.
  • Hiding error messages. If a rejected document fails silently, the problem surfaces at month end.
  • Leaving threshold tracking to accounting and not preparing the software. There is a transition period once the turnover threshold is crossed, but an integration project consumes it; start preparing as the threshold approaches.

Which details must the site collect so an invoice can be issued?

The communiqué requires an e-archive invoice to show the customer’s name or trade name and, where available, their tax office and tax ID number; the nature, quantity, price and amount of the goods or service and the tax type, rate and amount also appear on the invoice. If checkout does not collect these fields, even the best integration code cannot produce a document.

Which details must the site collect so an invoice can be issued?
FieldBusiness buyerConsumerIf not collected
Name or trade nameRequiredRequiredNo document can be created
Tax office and tax ID numberRequiredIf availableThe business buyer cannot book the expense and asks for a correction
Billing addressRequiredRequiredThe shipping address ends up on the invoice by mistake
EmailRecommendedRecommendedThe e-archive invoice cannot be delivered electronically
Tax rate per lineRequiredRequiredProducts with different rates are lumped into one

Source: Communiqué No. 509, section IV.2.3. “I need a business invoice” should be a separate step at checkout; validate fields (e.g. tax ID length) on the site and never send bad data to the integrator.

Sources

The article references in this guide are based on these official texts (in Turkish). Legislation can change; check the current text before acting.

Frequently asked

How long does e-invoicing integration take?

Through a provider, a standard one-way flow (order → invoice) is typically running within 1–3 weeks. What stretches the timeline is preparation, not code: getting the test account opened, having tax and exemption rules confirmed in writing, and making sure buyer detail fields are actually collected on your site. With those three ready it moves quickly; without them the development side simply waits.

Which provider should we choose?

This is a commercial decision more than a technical one: pricing model, quota structure, support quality and what your accountant is used to all matter. On the technical side we care about three things: a documented API, a working test environment and meaningful error messages. With those, the integration is straightforward. We suggest choosing the provider with your accountant and leaving the technical assessment to us.

Will it work with our existing accounting system?

If there is a connection point, yes: an API, database access or scheduled file transfer. Most accounting and ERP systems common in Türkiye offer some integration route. Closed systems can be handled with file-based workarounds — these are fragile and need maintenance whenever the software is updated, and we say so up front.

What happens with refunds?

A refund is a separate document flow and must be in scope from the start. The setup works like this: when a refund is approved, the corresponding document type is issued, linked to the order record in your system, and the status written back. Leave this out of scope and the first refund pushes the work back to manual — and in practice it never becomes automated afterwards, because “we already do it by hand” turns into habit.

Would we notice if the integration broke?

If it is built correctly, immediately. In the flows we build, failed documents wait in a queue, are retried automatically, and raise an alert once they pass a threshold. The dangerous property of a badly built integration is silence: the problem tends to surface at month-end reconciliation, which is exactly when it is most expensive to repair.

Let us map your invoicing flow

Tell us which systems you run and how invoices are issued today. We will say clearly which steps can be automated.