Aktif Yap

Bu metod PttAVM mağazanızda bulunan ürünlerinizi aktif/pasif yapmanı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: 1259
  • SOAPAction: http://tempuri.org/IService/AktifYap
  • Host: ws.pttavm.com:93

Örnek Servis İsteği

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:ept="http://schemas.datacontract.org/2004/07/ePttAVMService">
   <soapenv:Header/>
   <soapenv:Body>
      <tem:AktifYap>
         <!--Optional:-->
         <tem:req>
            <!--Optional:-->
            <ept:Aktif>1</ept:Aktif>
            <!--Optional:-->
            <ept:UrunId>1234567890</ept:UrunId>
         </tem:req>
      </tem:AktifYap>
   </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="e963e959-fa4a-49ee-bac9-cd52ddc31989" 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-24T13:25:19.303Z</u:Created>
            <u:Expires>2025-04-24T13:30:19.303Z</u:Expires>
         </u:Timestamp>
      </o:Security>
   </s:Header>
   <s:Body>
      <AktifYapResponse xmlns="http://tempuri.org/">
         <AktifYapResult xmlns:a="http://schemas.datacontract.org/2004/07/ePttAVMService" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <a:ErrorCode i:nil="true"/>
            <a:ErrorMessage i:nil="true"/>
            <a:Success>true</a:Success>
         </AktifYapResult>
      </AktifYapResponse>
   </s:Body>
</s:Envelope>
Parametre Tür Açıklama
UrunId integer Ürünün id bilgisini ifade eder.
Aktif boolean Verilen ID numarasına sahip ürünün aktif veya pasif olduğunu gösterir. (1 Aktif, 0 Pasif).
Created DateTime Ürün oluşturulma tarihini ifade eder.
Expires DateTime Ürününn expired olma tarihini ifade eder.