Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Hinterlegen Sie hierzu im Feld "API IP Beschränkung) eine Liste mit gültigen IP Adressen (getrennt mit ; )

Requests

Endpoint: http://YOUR-SHOP.com/index.php?page=xt_api

Aufbau eines Requests:

JSON (HTTP POST, application/json) (Beispiel Call getManufacturers):

Code Block
titleJSON Request getManufacturers
{
    "function": "getManufacturers",
    "paras": {
        "user": "{{api_user}}",
        "pass": "{{api_password}}",
        "start": 0,
        "size": 50,
        "extNumberRange": 0
    }
}

SOAP/XML (Beispiel Call getManufacturers):

Code Block
languagexml
titleXML Request getManufacturers
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header/>
   <soapenv:Body>
      <getManufacturers soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <user xsi:type="xsd:string">{{api_user}}</user>
         <pass xsi:type="xsd:string">{{api_password}}</pass>
         <start xsi:type="xsd:int">0</start>
         <size xsi:type="xsd:int">50</size>
         <extNumberRange xsi:type="xsd:int">?</extNumberRange>
      </getManufacturers>
   </soapenv:Body>
</soapenv:Envelope>

Parameter

ParameterType
userStringAPI Benutzername
passStringAPI Passwort
startintStart-Wert bei Block-Abfragen
Beispiel:
start 0 size 50
liefert die ersten 50 Einträge (gleichzusetzen mit SQL LIMIT 0,50)

start 50 size 50
liefert Einträge 51-100 (LIMIT 50,100)
sizeintBlockgröße