ProductService


Click here for a complete list of operations.

GetChangedProductsGTINs

Returns a list of the GTINs of all products that have been changed or deleted since the Date/Time supplied. If you're caching the information, it should be called once every 10 minutes with a request for the last 10 minutes of updates AND once every 24 hours with a request for everything changed the last 24 hours. A changed product requires you to request the data again and update the cache, a deleted product requires you to delete the data retrieved from us.

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /WS/General/v181/ProductService.asmx HTTP/1.1
Host: api.opv.se
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.opv.se/GetChangedProductsGTINs"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetChangedProductsGTINs xmlns="http://www.opv.se/">
      <changedAfter>dateTime</changedAfter>
      <secKey>string</secKey>
    </GetChangedProductsGTINs>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetChangedProductsGTINsResponse xmlns="http://www.opv.se/">
      <GetChangedProductsGTINsResult>
        <Data>
          <ChangedProductGTIN>
            <GTIN>string</GTIN>
            <TypeOfChange>Updated or Deleted or UpdatedPrimaryImage</TypeOfChange>
          </ChangedProductGTIN>
          <ChangedProductGTIN>
            <GTIN>string</GTIN>
            <TypeOfChange>Updated or Deleted or UpdatedPrimaryImage</TypeOfChange>
          </ChangedProductGTIN>
        </Data>
      </GetChangedProductsGTINsResult>
    </GetChangedProductsGTINsResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /WS/General/v181/ProductService.asmx HTTP/1.1
Host: api.opv.se
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetChangedProductsGTINs xmlns="http://www.opv.se/">
      <changedAfter>dateTime</changedAfter>
      <secKey>string</secKey>
    </GetChangedProductsGTINs>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetChangedProductsGTINsResponse xmlns="http://www.opv.se/">
      <GetChangedProductsGTINsResult>
        <Data>
          <ChangedProductGTIN>
            <GTIN>string</GTIN>
            <TypeOfChange>Updated or Deleted or UpdatedPrimaryImage</TypeOfChange>
          </ChangedProductGTIN>
          <ChangedProductGTIN>
            <GTIN>string</GTIN>
            <TypeOfChange>Updated or Deleted or UpdatedPrimaryImage</TypeOfChange>
          </ChangedProductGTIN>
        </Data>
      </GetChangedProductsGTINsResult>
    </GetChangedProductsGTINsResponse>
  </soap12:Body>
</soap12:Envelope>