API başvurusu
API dokümantasyonu
Entrfy Read API’si ekstre, fatura ve vergi levhasını okur, her alanı kurallarla doğrular ve sonucu JSON olarak verir. Bir dosya gönderirsiniz; sonuç hazır olunca webhook ile haber verilir.
Hızlı başlangıç
- Konsoldan bir API anahtarı alın.
er_test_ile başlayan sandbox anahtarı gerçek motoru çağırmaz ve dosyayı saklamaz. - Dosyanızı Belge gönderin (
POST /v1/documents) ucunamultipart/form-dataolarak gönderin. - Sonuç hazır olunca webhook adresinize
document.completedolayı gelir. Sonucu Sonucu alın (GET /v1/documents/{document_id}/result) ucundan alın.
Kimlik doğrulama
Her istekte Authorization başlığında gizli anahtarınızı gönderin: canlı ortamda Bearer er_live_..., sandbox’ta Bearer er_test_.... Anahtarlar bizde yalnız özet (hash) olarak saklanır. Anahtarı hiçbir zaman adres (URL) içine koymayın.
Temel kurallar
Temel söz
Yanlış bir değer hiçbir zaman sessizce teslim edilmez. Her alanın bir durumu vardır. Doğrulanmamış alanlar (needs_review, illegible, not_present) value: null ile döner; API hiçbir zaman tahmini değer olarak vermez.
Tutarlar
Tutarlar iki ondalıklı metin olarak gelir ("1234.56"), hiçbir zaman JSON sayısı olarak gelmez; istemci kayan noktaya çevirip yuvarlamaz.
Ortak yanıt başlıkları
Her yanıtta bulunur, uçlarda tek tek yazılmaz: Request-Id, RateLimit, RateLimit-Policy, Content-Language, X-Content-Type-Options: nosniff. Dosya indirmelerinde Content-Disposition: attachment da vardır. Kullanımdan kalkan özellikler Deprecation, Sunset ve Link: <...>; rel="deprecation" başlıklarını ekler.
Hatalar
Hatalar RFC 9457 application/problem+json biçimindedir ve iki ek alan taşır: code (sabit, ASCII, İngilizce, küçük harf ve alt çizgili; çevrilmez) ve request_id.
Sandbox
er_test_ anahtarları gerçek bir motoru çağırmaz ve yüklenen dosyayı saklamaz. Sabit örnek sonuçlar döner; sonucu Sandbox-Scenario başlığı seçer.
API başvurusu
Belgeler
/v1/documents/v1/documents/v1/documents/{document_id}/v1/documents/{document_id}/v1/documents/{document_id}/result/v1/documents/{document_id}/history/v1/documents/{document_id}/events/v1/documents/{document_id}/feedback/v1/documents/{document_id}/exports/{format}/v1/documents/{document_id}/cancelToplu işler
/v1/batches/v1/batches/v1/batches/{batch_id}/v1/batches/{batch_id}/v1/batches/{batch_id}/documents/v1/batches/{batch_id}/documents/v1/batches/{batch_id}/close/v1/batches/{batch_id}/cancel/v1/batches/{batch_id}/report/v1/batches/{batch_id}/exports/{format}Webhook
/v1/webhook-endpoints/v1/webhook-endpoints/v1/webhook-endpoints/{endpoint_id}/v1/webhook-endpoints/{endpoint_id}/v1/webhook-endpoints/{endpoint_id}/v1/webhook-endpoints/{endpoint_id}/rotate-secret/v1/webhook-endpoints/{endpoint_id}/test/v1/webhook-deliveries/v1/webhook-deliveries/{delivery_id}/v1/webhook-deliveries/{delivery_id}/retryBaşvuru
/v1/document-types/v1/document-types/{type}/schema/v1/usage/v1/limits/v1/deletion-receipt-keys