Kategori Agacı

Bu metod ile PttAVM kategori ağacı bilgilerini alabilirsiniz.

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: 1017
  • SOAPAction: http://tempuri.org/IService/GetCategoryTree
  • 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:GetCategoryTree>
                  <tem:parent_id>0</tem:parent_id>
         <tem:last_update>2025</tem:last_update>
      </tem:GetCategoryTree>
   </soapenv:Body>
</soapenv:Envelope>

Bilgilendirme

  • tem:parent_id parametresi opsiyonel olup, tüm kategori listesini getirir. Eğer değer olarak Sıfır (0) yazılırsa sistemdeki kayıtlı tüm kategori ağacı listelenir.
  • tem:last_update parametresi opsiyoneldir. Eğer belirli bir tarih girilerek istek gönderilirse, girilen tarih itibari ile güncellenmiş kategorileri listeler.

Ö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="22e2a555-d160-48d1-8c65-691c7f1f28e2" 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>2025-04-24T09:40:10.193Z</u:Created>
            <u:Expires>2025-04-24T09:45:10.193Z</u:Expires>
         </u:Timestamp>
      </o:Security>
   </s:Header>
   <s:Body>
      <GetCategoryTreeResponse xmlns="http://tempuri.org/">
         <GetCategoryTreeResult xmlns:a="http://schemas.datacontract.org/2004/07/ePttAVMService" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <a:success>true</a:success>
            <a:category_tree>
                         <a:Category>
                  <a:id>4</a:id>
                  <a:name>Kozmetik &amp; Kişisel Bakım</a:name>
                  <a:parent_id>0</a:parent_id>
                  <a:updated_at>10/14/2022 1:42:14 AM</a:updated_at>
                  <a:children>
                     <a:Category>
                        <a:id>868</a:id>
                        <a:name>Kozmetik</a:name>
                        <a:parent_id>4</a:parent_id>
                        <a:updated_at>2023-06-13 10:01:06</a:updated_at>
                        <a:children>
                           <a:Category>
                              <a:id>869</a:id>
                              <a:name>Parfüm</a:name>
                              <a:parent_id>868</a:parent_id>
                              <a:updated_at>2023-06-13 09:15:49</a:updated_at>
                              <a:children>
                                 <a:Category>
                                    <a:id>870</a:id>
                                    <a:name>Erkek Parfüm</a:name>
                                    <a:parent_id>869</a:parent_id>
                                    <a:updated_at>2023-06-13 09:15:57</a:updated_at>
                        </a:children>
                     </a:Category>
                  </a:children>
               </a:Category>
            </a:category_tree>
            <a:error i:nil="true"/>
         </GetCategoryTreeResult>
      </GetCategoryTreeResponse>
   </s:Body>
</s:Envelope>
****
Parametre Tür Açıklama
parent_id string Ana Kategori ID bilgisini içerir. Bu parametre opsiyoneldir.
last_update string Belirtilen tarihten bu yana güncellenen kategorileri döndürür. Bu parametre opsiyoneldir.
GetCategoryTreeResult array İstek sonucunu ifade eder.
success boolean İstek sonucunu ifade eder. True = Başarılı , Failed= Başarısız.
id string Kategori id bilgisini içerir.
name string Kategori adını ifade eder.
parent_id string Bir kategorinin üst kategori bilgisini ifade eder.
updated_at DateTime Kategorinin son güncellenme tarihini ifade eder. Örnek güncelleme tarihi formatı 2023-06-13T15:24:53
childrenarray Alt kategori bilgilerini ifade eder.
name string Alt kategori adını ifade eder.
parent_id string Üst kategoribilgisini ifade eder.
updated_at DateTime Alt kategori güncelleme tarihini ifade eder. Örnek güncelleme tarihi formatı 2023-06-13T15:24:53