# 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://efatura-api.efatura-api.workers.dev/mcp — tools: `parse_efatura` (paid, needs `Authorization: Bearer `), `efatura_demo` (free) - REST: POST https://efatura-api.efatura-api.workers.dev/v1/parse — body: raw XML, or JSON {"xml": "..."} / {"xmlBase64": "..."}; header `Authorization: Bearer ` - Free sample output: GET https://efatura-api.efatura-api.workers.dev/v1/demo - Free in-browser e-Fatura XML viewer for humans (view, check, export to Excel/CSV): https://efatura-api.efatura-api.workers.dev/e-fatura-xml-goruntuleyici - Buy credits / get an API key: https://efatura-api.efatura-api.workers.dev/buy - Remaining credits: GET https://efatura-api.efatura-api.workers.dev/v1/credits (with the same Authorization header) - OpenAPI: https://efatura-api.efatura-api.workers.dev/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, lines, taxes, withholdings, totals), `checks` (VKN/TCKN checksum, invoice number and ETTN format, line/tax/payable totals), `allChecksPassed`. ## 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.