Kategori Bilgisi

Bu metod ile kategori id'lere ait ana kategori 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/GetCategory
  • 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:GetCategory>
                <tem:id>55</tem:id>
      </tem:GetCategory>
   </soapenv:Body>
</soapenv:Envelope>

Bilgilendirme

  • tem:id Kategori id'ye ait ana kategorileri listeler. örneğin 55 kategorisine ait ana kategori listesi istenilirse tem.id=55 olarak istek atarak veriye ulaşabilir.

Ö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="59b79649-b536-4647-b495-20041e2c28bf" 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-24T12:45:31.975Z</u:Created>
            <u:Expires>2025-04-24T12:50:31.975Z</u:Expires>
         </u:Timestamp>
      </o:Security>
   </s:Header>
   <s:Body>
      <GetCategoryResponse xmlns="http://tempuri.org/">
         <GetCategoryResult 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>
               <a:id>55</a:id>
               <a:name>Giyilebilir Teknoloji Ürünleri</a:name>
               <a:parent_id>20</a:parent_id>
               <a:updated_at>2024-10-22T18:18:29</a:updated_at>
               <a:children>
                  <a:category>
                     <a:id>186</a:id>
                     <a:name>Akıllı Saatler</a:name>
                     <a:parent_id>55</a:parent_id>
                     <a:updated_at>2024-05-28T14:41:36</a:updated_at>
                  </a:category>
                  <a:category>
                     <a:id>187</a:id>
                     <a:name>Akıllı Bileklikler</a:name>
                     <a:parent_id>55</a:parent_id>
                     <a:updated_at>2023-06-13T10:37:09</a:updated_at>
                  </a:category>
                  <a:category>
                     <a:id>188</a:id>
                     <a:name>Akıllı Saat Aksesuarları</a:name>
                     <a:parent_id>55</a:parent_id>
                     <a:updated_at>2023-06-13T10:37:14</a:updated_at>
                  </a:category>
               </a:children>
            </a:category>
            <a:error i:nil="true"/>
         </GetCategoryResult>
      </GetCategoryResponse>
   </s:Body>
</s:Envelope>
Parametre Tür Açıklama
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
children array 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