İzibiz Developer Portal
SOAP WS · Bulut e-Defter WS (ELedgerService)

Yevmiye Maddesi Sorgulama (GetLedgerEntry)

SOAPGetLedgerEntry

Belirli bir yevmiye maddesini döner. ENTRY_NUMBER arka uçta linenumbercounter değerine karşılık gelir.

Yanıt: İçerik Content alanında döner.

Hata yönetimi: Hatalar SOAP Fault olarak dönmez. Hata durumunda normal yanıt döner ve ERROR bloğu dolu gelir; her yanıtta önce ERROR bloğu kontrol edilmelidir.

Parametreler

AdTipZorunluAciklama
SESSION_ID text Evet Kimlik doğrulama servisi (AuthenticationWS) Login metodundan alınan oturum bilgisi. Tüm metotlarda zorunludur.
PERIOD text Evet Dönem, YYYYMM.
ENTRY_NUMBER text Evet Yevmiye madde numarası (arka uçta linenumbercounter).
TYPE text Evet Defter tipi.
BRANCH_CODE text Hayir Şube kodu.

Ornek Yanit (XML)

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:GetLedgerEntryResponse xmlns:ns2="http://ws.efatura.izibiz.com/">
         <GetLedgerEntry>
            <Content>...</Content>
         </GetLedgerEntry>
      </ns2:GetLedgerEntryResponse>
   </S:Body>
</S:Envelope>

Hata Yaniti (Fault)

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:GetLedgerEntryResponse xmlns:ns2="http://ws.efatura.izibiz.com/">
         <GetLedgerEntry>
            <ERROR>
               <CODE>-1</CODE>
               <MESSAGE>ENTRY_NUMBER zorunlu alandır, boş olamaz!</MESSAGE>
            </ERROR>
         </GetLedgerEntry>
      </ns2:GetLedgerEntryResponse>
   </S:Body>
</S:Envelope>