# e-Fatura API > Parses Turkish e-invoices (GİB UBL-TR e-Fatura / e-Arşiv XML) into structured JSON and checks them for consistency. Pay per invoice ($0.01); failed parses are free. Invoices are never stored. Türkçe: GİB e-Fatura / e-Arşiv XML'ini okur; satıcı, alıcı, kalemler, KDV, ÖTV, tevkifat ve toplamları JSON olarak döner, VKN/TCKN ve tutar kontrollerini yapar. ## Use it - MCP (Streamable HTTP): https://efaturaoku.site/mcp — tools: `parse_efatura` (paid, needs `Authorization: Bearer `), `efatura_demo` (free) - REST: POST https://efaturaoku.site/v1/parse — body: raw XML, or JSON {"xml": "..."} / {"xmlBase64": "..."}; header `Authorization: Bearer ` - Free sample output: GET https://efaturaoku.site/v1/demo - Free in-browser e-Fatura XML viewer for humans (view, check, export to Excel/CSV): https://efaturaoku.site/e-fatura-xml-goruntuleyici - Buy credits / get an API key: https://efaturaoku.site/buy - Remaining credits: GET https://efaturaoku.site/v1/credits (with the same Authorization header) - OpenAPI: https://efaturaoku.site/openapi.json - Code examples (curl, Node.js, Python, x402, MCP): https://github.com/boradenizarol-svg/efatura-api-examples ## Output - `invoice`: invoiceNumber, ettn, profile, type, issueDate, currency, supplier/customer/buyer (name, VKN/TCKN, tax office, all identifiers such as MERSISNO, address, contact), lines (quantity, price, discounts, taxes, line withholding, item codes, GTİP/classification, brand/model), taxes and withholdings (with exemption codes), totals, exchangeRate, billingReferences (returned invoice), orderReference, despatchReferences, paymentMeans (IBAN, due date), paymentTerms, invoicePeriod. - `checks`: each has `check`, `ok`, `severity` (error | warning | info) and `message`. Covers VKN/TCKN checksums, invoice number/ETTN/date format, line, VAT, withholding and payable totals, line VAT vs document VAT, known VAT rates, exemption codes on 0% VAT, return-invoice reference, exchange rate on foreign currency, IBAN check digits. - `allChecksPassed`: true when no error- or warning-level check failed (info notes do not count). `issues`: failed check counts by severity. ## Supports TEMELFATURA, TICARIFATURA, EARSIVFATURA, IHRACAT, TEVKIFAT, ISTISNA, IADE, OZELMATRAH, HKS, YATIRIMTESVIK; GİB envelopes (StandardBusinessDocument) with one invoice; UTF-8 and Windows-1254 files up to 2 MB.