VOOZH about

URL: https://apify.com/caulleonard/efatura-validator-standby

⇱ e-Fatura XML Doğrulama API GİB XSD + Schematron · Apify


👁 e-Fatura Validator (UBL-TR 1.2.1) avatar

e-Fatura Validator (UBL-TR 1.2.1)

Pricing

from $1.00 / 1,000 api calls

Go to Apify Store

e-Fatura Validator (UBL-TR 1.2.1)

GİB UBL-TR 1.2.1 e-Fatura (Invoice) doğrulama API'si: well-formed + XSD + Schematron iş kuralları. KVKK uyumlu, POST body-only, anlık yanıt.

Pricing

from $1.00 / 1,000 api calls

Rating

0.0

(0)

Developer

👁 Fatih Şahinbaş

Fatih Şahinbaş

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

3 days ago

Last modified

Share

GİB (Gelir İdaresi Başkanlığı) UBL-TR 1.2.1 e-Fatura (Invoice) belgelerini üç katmanda doğrulayan, her zaman açık (Standby) HTTP API.

Bir e-Fatura XML'i gönderirsiniz; servis belgenin iyi biçimli (well-formed) olup olmadığını, XSD şemasına uyup uymadığını ve GİB iş kurallarına (Schematron) uygun olup olmadığını kontrol eder. Yanıt; geçerlilik durumu, hatalı alanların konumu (XPath) ve GİB'in kendi hata mesajlarını içerir.

Neden bu actor?

  • Resmi GİB paketleri ile çalışır (UBL-TR 1.2.1 XSD + UBL-TR Schematron).
  • Üç katmanlı gerçek doğrulama — sadece XSD değil, GİB iş kuralları (Schematron) dahil.
  • KVKK uyumlu: fatura içeriği (ad, adres, VKN/TCKN, kalemler) loglanmaz ve yanıtta geri döndürülmez. Yalnızca yapısal hata bilgisi döner.
  • Standby mod: REST API gibi anında yanıt, soğuk başlatma yok.

Doğrulama katmanları

KatmanKontrolMotor
1XML iyi biçimli milxml
2UBL-TR 1.2.1 XSD şema uyumulxml
3GİB iş kuralları (Schematron / SVRL)Saxon-HE

Not: XSD (katman 2) başarısızsa Schematron (katman 3) atlanır — bozuk yapı üzerinde iş kuralı sonucu yanıltıcı olurdu. ZARF (StandardBusinessDocument) ile sarılı belgelerde içteki Invoice otomatik çıkarılır. Bu sürüm Invoice belge tipini doğrular.

Kullanım

Standby HTTP endpoint'ine POST ile ham XML gönderin (gövde içinde — KVKK gereği query parametresinde değil).

Endpoint

POST https://<actor-standby-url>/validate
Content-Type:application/xml
Body:<UBL-TR Invoice XML>

GET / çağrısı servis bilgisini döner; GET /openapi.json tam OpenAPI şemasını verir.

Örnek istek (curl)

curl-X POST "https://<actor-standby-url>/validate?token=<APIFY_TOKEN>"\
-H"Content-Type: application/xml"\
--data-binary "@fatura.xml"

Örnek yanıt

{
"isValid":false,
"documentType":"Invoice",
"ublVersion":"2.1",
"layers":{"well_formed":true,"xsd":true,"schematron":false},
"errorCount":1,
"errors":[
{
"layer":"schematron",
"code":"business_rule_violation",
"message":"Para birimi TRY olmayan belgelerde kur bilgisi zorunludur.",
"line":null,
"location":"/*[local-name()='Invoice']",
"ruleTest":"not(cbc:DocumentCurrencyCode!='TRY') or cac:PricingExchangeRate/cbc:CalculationRate"
}
]
}

Geçerli belgede isValid: true, errorCount: 0 döner.

Yanıt alanları

AlanAçıklama
isValidTüm katmanlar geçtiyse true
documentTypeTespit edilen belge tipi (Invoice)
ublVersionBelgedeki cbc:UBLVersionID değeri
layersHer katmanın geç/kalma durumu
errorCountToplam hata sayısı
errors[]Hata listesi: layer, code, message, line, location (XPath), ruleTest

Hata kodları

not_well_formed · no_invoice_in_envelope · unsupported_document_type · xsd_violation · business_rule_violation

Ücretlendirme

Pay-per-event: her doğrulama isteği (api-call) için sabit ücret. Belge geçerli olsun ya da olmasın ücretlendirilir — doğrulamanın kendisi hizmettir.

KVKK / Gizlilik

Fatura XML içeriği yalnızca işlem süresince bellekte tutulur; diske yazılmaz, loglanmaz. Yanıttaki hata mesajları GİB'in standart kural metinleri ve yapısal XPath konumlarıdır — fatura içeriğindeki kişisel veriler (ad, adres, kimlik no, tutarlar) asla yanıtta yer almaz.

Sınırlar / yol haritası

  • Bu sürüm Invoice doğrular (ApplicationResponse / DespatchAdvice ileride).
  • GİB paketi güncellendiğinde Schematron yeniden derlenir; sürüm bu README'de belirtilir.

Bu actor resmi bir GİB ürünü değildir; resmi UBL-TR 1.2.1 paketlerini temel alır.

You might also like

Color Contrast Checker (WCAG)

automation-lab/color-contrast-checker

Check color pairs against WCAG 2.1 AA and AAA contrast ratio standards. Supports hex, RGB, and named CSS colors. Get contrast ratios, pass/fail for normal text, large text, and UI components.

👁 User avatar

Stas Persiianenko

3

Phone Number Validator — Line Type, Country & Format

zhorex/phone-number-validator

Bulk phone validation with Google's libphonenumber: line type, country, timezone, location, E.164/international/national/RFC 3966 formats. Carrier lookup where libphonenumber data is available (US/CA/PR null due to Mobile Number Portability — see README). No external APIs, no rate limits.

33

1.0

(1)

Fake Test Data Generator

automation-lab/fake-test-data-generator

Generate bulk fake/test data using @faker-js/faker. Create realistic persons, addresses, companies, finance records, and internet profiles. 50+ locales, reproducible seeds, 50 field types.

👁 User avatar

Stas Persiianenko

4

Google Search MCP Server

datascoutapi/google-search-mcp-server

🚀 Google Search MCP Server scrapes real-time Google SERPs by processing search queries. Extract organic results, ads, People Also Ask, related queries, prices, and reviews. Supports 21+ countries, 25+ languages. Export data in JSON, Excel, or CSV. Ideal for SEO, research, and automation.

Play Store Reviews Scraper | Translation & All Countries

fatihtahta/play-store-global-reviews-scraper

Pull Google Play reviews across 30+ regions with auto-translation. Get ratings, review text, author, timestamps, helpful votes, app/version info, and developer replies in clean JSON/CSV. Perfect for sentiment tracking, localization QA, and competitor monitoring.

👁 User avatar

Fatih Tahta

13

Sovereign Debt Contagion & Geopolitical MCP

ryanclinton/sovereign-debt-contagion-geopolitical-mcp

MCP intelligence server for sovereign debt contagion geopolitical detection and analysis.

👁 User avatar

Ryan Clinton

2

Lefties Stores By Proximity Scraper

pintostudio/lefties-stores-by-proximity-scraper

The Lefties Stores By Proximity Actor is an Apify actor that searches for Lefties store locations based on geographic coordinates (latitude and longitude).

👁 User avatar

Pinto Studio

2

Phone Number Risk Scoring

greip/phone-scoring

Validate and score phone numbers. Detects disposable phone numbers, validates syntax, assesses operational likelihood, and identifies carrier information for enhanced fraud detection.

Google Events | Scrape Google Events for AI Agents

johnvc/google-events-api---access-google-events-data

Google Events API for Claude, ChatGPT, Cursor & other MCP-ready AI agents. Scrape Google Events search results — concerts, conferences, festivals, sports, theater, virtual events — with dates, venues, ticket links & locations. Filter by date, event type, country, language. Pay per page.

213

5.0

(4)