Kargo Bilgi Listesi

Bu metod ile sorgulanan siparişteki ürünlerin kargo durumu bilgisini almanıza olanak tanır.

Endpoint Bilgileri

  • URL: https://ws.pttavm.com:93/service.svc HTTP/1.1
  • HTTP Metodu: POST
  • Content-Type: text/xml;charset=UTF-8
  • Content-Length: 968
  • SOAPAction: http://tempuri.org/IService/GetCargoProfiles
  • Host: ws.pttavm.com:93

Örnek Servis İsteği


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
   <soapenv:Header/>
   <soapenv:Body>
      <tem:KargoBilgiListesi>
         <!--Optional:-->
         <tem:orderId>PTT-0ATHPIN2T-190424</tem:orderId>
      </tem:KargoBilgiListesi>
   </soapenv:Body>
</soapenv:Envelope>

Örnek Servis Cevabı


<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
   <s:Header>
      <ActivityId CorrelationId="7c2736ac-ff15-4808-bc19-ce3c489b8cac" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">00000000-0000-0000-0000-000000000000</ActivityId>
      <o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <u:Timestamp u:Id="_0">
            <u:Created>2024-05-16T18:18:34.596Z</u:Created>
            <u:Expires>2024-05-16T18:23:34.596Z</u:Expires>
         </u:Timestamp>
      </o:Security>
   </s:Header>
   <s:Body>
      <KargoBilgiListesiResponse xmlns="http://tempuri.org/">
         <KargoBilgiListesiResult xmlns:a="http://schemas.datacontract.org/2004/07/ePttAVMService" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <a:KargoBilgi>
               <a:CurrentState>iade</a:CurrentState>
               <a:DeliveryInfo i:nil="true"/>
               <a:InCargo i:nil="true"/>
               <a:ProductId>PTT-0ATHPIN2T-190424</a:ProductId>
               <a:ReferenceCode>2710200000622</a:ReferenceCode>
               <a:ShopId>2563</a:ShopId>
            </a:KargoBilgi>
            <a:KargoBilgi>
               <a:CurrentState>iade</a:CurrentState>
               <a:DeliveryInfo i:nil="true"/>
               <a:InCargo i:nil="true"/>
               <a:ProductId>PTT-0ATHPIN2T-190424</a:ProductId>
               <a:ReferenceCode>2710200001025</a:ReferenceCode>
               <a:ShopId>2563</a:ShopId>
            </a:KargoBilgi>
            <a:KargoBilgi>
               <a:CurrentState>iade</a:CurrentState>
               <a:DeliveryInfo i:nil="true"/>
               <a:InCargo i:nil="true"/>
               <a:ProductId>PTT-0ATHPIN2T-190424</a:ProductId>
               <a:ReferenceCode>2710200001834</a:ReferenceCode>
               <a:ShopId>2563</a:ShopId>
            </a:KargoBilgi>
        <a:KargoBilgi>
               <a:CurrentState>tamamlandi</a:CurrentState>
               <a:DeliveryInfo i:nil="true"/>
               <a:InCargo i:nil="true"/>
               <a:ProductId>PTT-0ATHPIN2T-190424</a:ProductId>
               <a:ReferenceCode>2710200029999</a:ReferenceCode>
               <a:ShopId>2563</a:ShopId>
            </a:KargoBilgi>
         </KargoBilgiListesiResult>
      </KargoBilgiListesiResponse>
   </s:Body>
</s:Envelope>
Parametre Tür Açıklama
orderId string Sipariş numarası
CurrentState string Sipariş durumunu gösterir. Olası iade değerleri aşağıda listelenmiştir.
kargo_yapilmasi_bekleniyor, havale_onayi_bekleniyor, gondericisine_teslim_edildi, gonderilmis, iptal, odeme_gecersiz, iade, onay_surecinde, tamamlandi
DeliveryInfo string Ürünün PTT şubesinden teslim alınıp alınmadığı bilgisini içerir. Olası iade değerleri aşağıda listelenmiştir.
null, 1 = pttSubesindeBekliyor, 2 = pttSubesindenTeslimAlindi
InCargo string Gönderim durum bilgisini içerir. Olası iade değerleri aşağıda listelenmiştir.
null, 1 = KargoDagitimda, 2 = KargoTedarikcide, 3 = KargoPttSubesinde
ProductId string Sipariş numarası bilgisi
ReferenceCode string Ürünün barkod bilgisi.
ShopId int Mağaza id bilgisi.