Türkiye e-Invoice (e-Fatura, e-Arşiv) via Integrator API: UBL-TR 1.2, GİB Taxpayer Lookup, Incoming Bills
by Viyug Infotech https://viyuginfotech.com$ 163.26
e-Fatura and e-ArÅiv from Odoo, through your integrator
Send UBL-TR 1.2 invoices to GİB through a special integrator, route each customer to e-Fatura or e-ArÅiv with the GİB registry, follow every status and turn incoming e-invoices into vendor bills.
e-Faturae-ArÅivExportWithholdingIncoming bills
Before you go live
The integrator connection is written from the public Nilvera API documentation and tested with recorded responses in that format. Calls against a live Nilvera account have not been run yet: start in the Test environment with your own test account and check the first documents in the Nilvera test portal. The Turkish rule set (scenarios, invoice types, tax, withholding and exemption codes) should be reviewed by your Turkish-speaking accountant before production use; the code tables are editable.
Free setup call with every purchase
After you buy, book a free 30-minute online call: we install the app with you and set it up for your company. Questions are answered within 24 hours, Monday to Saturday, at support@viyuginfotech.com or on WhatsApp (QR code at the end of this page).
What you get
e-Fatura and e-ArÅiv
TEMELFATURA, TICARIFATURA, EARSIVFATURA and IHRACAT in UBL-TR 1.2 with signature block, mailboxes and 16-character GİB numbers per series and year.
Registry lookup and routing
VKN / TCKN checksum, GİB registry check with mailboxes, re-check before every send and a daily refresh, so a customer who registers for e-Fatura is never sent an e-ArÅiv.
All invoice types
Sale, withholding (tevkifat 601-627), exemption (istisna), export-registered, returns to suppliers (IADE) and withholding returns, from your Odoo taxes.
Export invoices
Customs party, foreign buyer, GTİP per product, incoterm, transport mode and the exchange rate for foreign currencies.
Status and rejections
Status polling, GİB envelope codes, buyer answers of commercial invoices, activities on errors and rejections, e-ArÅiv cancellation through the integrator.
Incoming e-invoices
Vendor bills with lines, taxes, UBL file and PDF; returns become credit notes linked to your original invoice; accept or reject within 8 days.
Print, QR and XSLT
GİB-style PDF with QR code, amount in words, embedded XSLT layout and an in-Odoo preview of the file.
Built to run unattended
Idempotent job queue with retry, backoff, rate-limit handling and dead letters; delivered e-invoices are locked against reset to draft.
Safe for teams
User and administrator roles, API key visible to administrators only, one connection per company with multi-company rules.
How it works
- Customer invoice confirmed in Odoo.
- GİB registry decides e-Fatura or e-ArÅiv; taxes decide the invoice type.
- Pre-send check, ETTN and GİB number, UBL-TR 1.2 file.
- Integrator signs and delivers to GİB; status comes back to the invoice.
- Incoming e-invoices arrive as vendor bills to check, accept or reject.
Workflow walkthrough
Fictional demo company Ege Tekstil Sanayi A.Å. with the offline simulator.
Connect your integrator
Türkiye e-Invoice > Configuration > Setup wizard. Choose the integrator (Nilvera first), the Test or Production environment and paste the API key from the integrator portal. Test connection reads your remaining credits and checks your own tax number in the GİB registry.

Numbering and tax mapping
Set the 3-character series (EFA2026000000001), the default e-Fatura scenario and the purchase journal. Then map every tax to its place in the UBL-TR file: VAT 0015, other tax types, withholding codes 6xx or exemption reasons.

One overview for the whole flow
To send, waiting for GİB, accepted, errors, rejected by the buyer and incoming invoices to answer, each one click away. Retrying jobs, dead letters, credits and the last import are on the card.

GİB registry lookup by VKN / TCKN
Check GİB registry on a customer asks the integrator whether the tax number is an e-Fatura taxpayer and stores its mailboxes (posta kutusu). The checksum of VKN and TCKN is checked first. Fill address from registry completes the tax office and address.

Pre-send check on every invoice
The e-Invoice tab picks the scenario (e-Fatura, e-ArÅiv or export) from the registry and the invoice type (sale, withholding, exemption, return) from the taxes, then lists everything GİB would refuse: tax office, identity, mailbox, tax codes, GTİP, incoterm, return reference.

Send to GİB
Send to GİB re-checks the registry, gives the invoice its ETTN and GİB number, writes the UBL-TR 1.2 file and hands it to the integrator. Here an export (IHRACAT) invoice goes to the customs mailbox, with the buyer, GTİP codes, incoterm and exchange rate.

Preview the e-invoice
The file carries a print layout (XSLT), so the receiver sees the same document. e-Invoice preview renders it inside Odoo before and after sending.

Every status at a glance
Outgoing e-invoices show the GİB number and status: queued, sent, accepted, approved or rejected by the buyer, error, cancelled. Status is read every 30 minutes or with Refresh GİB status.

Withholding (tevkifat)
Taxes mapped to a withholding code (here 609, 7/10) make a TEVKIFAT invoice with the withheld VAT in its own block. Exemptions (istisna) and export-registered sales work the same way.

Errors come back with the GİB reason
If the integrator or GİB refuses a document, the invoice shows the reason and gets an activity. Fix the data and click Fix and resend: same number, new ETTN.

Commercial invoice rejected by the buyer
A TICARIFATURA buyer has 8 days to accept or reject. A rejection is shown on the invoice with the buyer note and an activity for the salesperson.

GİB-style print with QR code
e-Fatura / e-ArÅiv print: scenario, type, number, ETTN, tax office, VAT and withholding breakdown, amount in words and the QR code with the GİB data set.

Incoming e-invoices become vendor bills
Every hour the integrator inbox is imported: supplier found or created by VKN, lines and taxes matched, UBL file and PDF attached. Each ETTN is imported once.

Accept or reject within 8 days
Incoming commercial invoices show the deadline. Accept, or Reject with a reason that goes back to the supplier through GİB; the bill is cancelled in Odoo.

Job queue with retries and dead letters
Every call runs as a job: network trouble, rate limits and server errors are retried with growing delays, refusals stop at once. Retry now and Back to queue are one click.

Setup in 5 steps
- Install the app; the Turkish chart of accounts (l10n_tr) comes with it.
- Open an account with your special integrator (for Nilvera a free test account at portaltest.nilvera.com) and create an API key in its portal.
- Run the setup wizard: Test environment, API key, Test connection, series, tax mapping.
- Set the tax office on your company and check your Turkish customers in the GİB registry (the wizard can do it for all of them).
- Send a few test invoices, check them in the integrator test portal, then switch the connection to Production.
Compared with typical alternatives
| Feature | This app | Typical alternatives |
|---|---|---|
| e-Fatura and e-ArÅiv in UBL-TR 1.2 | ✓ | ✓ |
| GİB registry lookup with mailboxes | ✓ | ✓ |
| Registry re-check right before sending | ✓ | - |
| VKN / TCKN checksum and pre-send check list | ✓ | Some |
| Withholding, exemption and export-registered types | ✓ | Some |
| Export (IHRACAT) with GTİP and incoterm | ✓ | Some |
| Returns to suppliers sent as IADE | ✓ | - |
| Incoming e-invoices as vendor bills | ✓ | Some |
| Accept / reject commercial invoices | ✓ | Some |
| Job queue with retry, backoff and dead letters | ✓ | - |
| Test / production switch and setup wizard | ✓ | Some |
| Offline simulator for training | ✓ | - |
| GİB print with QR code and embedded XSLT | ✓ | Some |
| Editable GİB code tables | ✓ | - |
| e-İrsaliye sending from deliveries (extension) | ✓ | Some |
Extensions
One family, one integrator connection.
Türkiye e-Invoice
e-Fatura and e-ArÅiv in UBL-TR 1.2 through your integrator, taxpayer lookup, status, incoming bills, GİB print with QR.
You are hereTürkiye e-İrsaliye
Electronic dispatch notes from delivery orders: plate, drivers, carrier, receiver answers, incoming dispatch notes.
View in the storeQuestions
Which integrator does it support?
Nilvera, with its test and production platforms. The connection is built as an adapter, so other special integrators can be added; ask us if you use another one.
Does it work on Odoo Community?
Yes. It needs Invoicing and the Turkish localisation (l10n_tr), both in Community. It also runs on Enterprise.
Can it run next to the Odoo Nilvera modules?
It uses its own fields and menus. Use one of the two to send a given invoice, not both.
How is e-Fatura or e-ArÅiv chosen?
From the GİB registry: e-Fatura taxpayers get e-Fatura (basic or commercial), everyone else e-ArÅiv; foreign customers with an incoterm get an export invoice. You can override it per invoice before sending.
What if a customer registers for e-Fatura?
The registry is checked again before sending when the last check is older than the hours you set, and refreshed daily for active customers.
Is a sent invoice locked?
Yes. Reset to draft is blocked once an e-invoice is queued, sent or accepted. Cancel e-ArÅiv through the integrator, or record an e-Fatura cancellation made outside GİB.
Are the GİB codes up to date?
The tables ship with the common tax type, withholding and exemption codes and can be edited when GİB publishes changes. Have your accountant review them before going live.
Is there a trial mode?
The offline simulator answers like an integrator without sending anything, for training and demos. The integrator Test environment is the next step.
Questions or a different integrator?
Email support: support@viyuginfotech.com
Website: viyuginfotech.com
Scan with your phone to chat on WhatsApp or write us an email:

+91 83207 42187

Send us an email
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 3393 |
| Technical Name |
viyug_tr_einvoice |
| License | OPL-1 |
| Website | https://viyuginfotech.com |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module