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.
| Route | Suits | Upside | Downside |
|---|---|---|---|
| Through an authorised provider | The large majority of businesses | Fast to set up; the provider tracks regulatory and schema changes | Monthly or quota-based fee |
| Direct integration | Very high volume, special requirements | No intermediary cost | Certificates, 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.
| Criterion | E-invoice | E-archive invoice |
|---|---|---|
| Buyer | A registered e-Invoice user | An unregistered taxpayer or a consumer |
| How it reaches the buyer | Through the system into the buyer’s e-invoice inbox | Electronically or as a paper print-out, as the buyer prefers |
| Issuer’s copy | Kept electronically | Kept electronically |
| The question your software must ask | Is 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.
| Situation | Threshold | Result |
|---|---|---|
| General obligation | Gross sales of 3 million TRY or more for 2022 and later periods | E-invoicing from the start of the seventh month of the following year |
| Selling goods or services online | Gross sales of 500 thousand TRY or more for 2022 and later periods | E-invoicing and e-archive invoicing by the start of the seventh month of the following period |
| Invoices of taxpayers outside the e-archive system | From 1 January 2026, regardless of amount | Issued as e-archive invoices via the tax authority’s portal or a private integrator |
| Simplified-method taxpayers and those keeping business-account books | From 1 January 2027, regardless of amount | The 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.
| Method | Suits | Automation | Who carries the load |
|---|---|---|---|
| GİB Portal | Low invoice volumes, no integration infrastructure | None; every document is created by hand in the portal | Staff time |
| Private integrator | Most businesses wanting invoices from their site, ERP or custom software | Full, via the integrator’s API | The integrator tracks most format and regulation changes |
| Direct integration | Taxpayers meeting GİB’s conditions whose application is approved | Full | Certificates, 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.
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.
| Item | Type | What makes it grow |
|---|---|---|
| Integrator usage fee | Ongoing (credits/quota or monthly) | Document volume and package |
| Integration software | One-off | Number of document types, returns/cancellations, number of systems connected |
| Preparing the existing system | One-off | Missing fields on the site or in the ERP (tax details, ID field) |
| Testing and reconciliation set-up | One-off | Number of scenarios: discounts, partial returns, multi-line orders |
| Maintenance and monitoring | Ongoing | Format/regulation changes, integrator API versions |
| Staff time | Ongoing | Manual 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.
| Field | Business buyer | Consumer | If not collected |
|---|---|---|---|
| Name or trade name | Required | Required | No document can be created |
| Tax office and tax ID number | Required | If available | The business buyer cannot book the expense and asks for a correction |
| Billing address | Required | Required | The shipping address ends up on the invoice by mistake |
| Recommended | Recommended | The e-archive invoice cannot be delivered electronically | |
| Tax rate per line | Required | Required | Products 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
- Tax Procedure Law General Communiqué No. 509
- Communiqué No. 535 amending Communiqué No. 509
- Communiqué No. 589 amending Communiqué No. 509
- Tax Procedure Law No. 213
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.

