Principles

How sleekshop works.

Sleekshop is a cloudbased e-commerce platform which allows you to deploy e-commerce functionality via API into your projects no matter what kind of programming - language you want to use, or which devices you want to address. 

Sleekshop comes without a frontend, even tough there are SDKs which allow you simple testings. In our examples we use curl requests to simulate the requests and show the reponses of these. You can send requests with the shown attributes in your favorite language. 

There are two different formats the responses can be generated, JSON and XML. Depending on what kind of response you prefer you can change the format in the backend. 

Sleekshop has one endpoint which you can find in your backend in the administration -> API - section. So each request contains the request the authentification credentials (you find them also in you backend Administration -> API - section) and finally the attributes which you have to send to receive the desired response. 

On the right side you find an example - request which delivers the contents in the category specified by its id.


Arguments

  • id_category (int)

    The ID of the category you want to pull the data from.

  • needed_attributes (json-array)

    An array containing the attributes you want to pull. This can limit the size of the response.

  • language (string)

    A valid language code.


As mentioned there are always three mandatory arguments: 

  • licence_username
  • licence_password
  • request

To avoid repetitions we wont explain these three arguments in the following examples.

The above arguments explanation is in the format we will explain all coming requests. The name of the argument and its type in brackets. Under this you find an explanation.

Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_shopobjects_in_category' \ -d id_category=1 \ -d needed_attributes='[["name","price"],["variations"]]' \ -d language="de_DE"


Response

                    {"object":"shopobjects_in_category",
"category":{
"id":1,
"name":"Start",
"prio":1,
"id_parent":0,
"label":"Start",


"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
"attributes":{
   
   
   
}
},
"products":{
 
  "Schuh blau":
 
{
  "object":"product",
  "id":15,
  "name":"Schuh blau",
  "creation_date":"2016-03-25 14:17:46",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "blaue-laufschuhe-robust",
  "title": "Blaue Laufschuhe mit wasserdichter Oberfläche",
  "description": "Blaue Laufschuhe für Männer",
  "keywords": "blau,Schuhe,Laufschuhe"
}

,
  
"availability":
{
  "quantity": 5,
  "quantity_warning": 3,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":154,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh blau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":157,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
 }
}


  ,
   "Jacke rot M":
 
{
  "object":"product",
  "id":20,
  "name":"Jacke rot M",
  "creation_date":"2016-03-25 14:29:14",
  "class":"sizeprod",
  
  
"seo":
{
  "permalink": "warme-herren-winterjacke",
  "title": "Superwarme und flauschige Winterjacke für Männer",
  "description": "Winterjacke für jedes Wetter!",
  "keywords": "warm,winter,maenner,jacke"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":229,
  "name":"name",
  "label":"Name",
  "value":"Winterjacke rot M"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":232,
  "name":"price",
  "label":"Preis",
  "value":89
}


                
                                                                                
    
  },
  "variations":{
  
    
 }
}


  ,
   "Polar Jacket blau":
 
{
  "object":"product",
  "id":30,
  "name":"Polar Jacket blau",
  "creation_date":"2016-03-25 14:36:37",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "blaue-funktionsjacke-baumwolle",
  "title": "Damen Funktionsjacke aus BIO-Baumwolle",
  "description": "Blaue Funktionsjacke für Damen",
  "keywords": "damen,blau,bio,baumwolle,funktionsjacke"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":366,
  "name":"name",
  "label":"Name",
  "value":"Polar Jacket blau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":369,
  "name":"price",
  "label":"Preis",
  "value":75
}


                
                                                                                                
    
  },
  "variations":{
  
    
 }
}


  ,
   "Mütze orange":
 
{
  "object":"product",
  "id":34,
  "name":"Mütze orange",
  "creation_date":"2016-03-25 16:19:24",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "muetze-orange-onesize",
  "title": "Trendige Mütze mit Aztekenmuster",
  "description": "Superwarme und flauschige Mütze",
  "keywords": "warm, flauschig, orange, muetze, aztekenmuster"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 2,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":422,
  "name":"name",
  "label":"Name",
  "value":"Mu00fctze orange"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":425,
  "name":"price",
  "label":"Preis",
  "value":17.5
}


                
                                                                                                
    
  },
  "variations":{
  
    
 }
}


  ,
   "Mütze schwarz":
 
{
  "object":"product",
  "id":36,
  "name":"Mütze schwarz",
  "creation_date":"2016-03-25 16:24:52",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "flauschiger-schneehut-schwarz",
  "title": "Superweicher schwarzer Schneehut",
  "description": "Warmer Schneehut der Trendmarke SchneeHut",
  "keywords": "schwarz, schneehut, weich, warm"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":23,
  "width":15,
  "height":26,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":452,
  "name":"name",
  "label":"Name",
  "value":" Schneehut schwarz"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":455,
  "name":"price",
  "label":"Preis",
  "value":18.9
}


                
                                                                                                
    
  },
  "variations":{
  
    
 }
}


  ,
   "Pullover S":
 
{
  "object":"product",
  "id":37,
  "name":"Pullover S",
  "creation_date":"2016-03-25 16:32:43",
  "class":"sizeprod",
  
  
"seo":
{
  "permalink": "hunting-pullover-herren",
  "title": "Trendiger Hunting Herrenpullover",
  "description": "Pullover für Herren der Marke Hunting",
  "keywords": "hunting, robust, warm, dunkelgrau, herren"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":89,
  "width":34,
  "height":98,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":467,
  "name":"name",
  "label":"Name",
  "value":"Hunting Pullover S"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":470,
  "name":"price",
  "label":"Preis",
  "value":45
}


                
                                                                                
    
  },
  "variations":{
  
    
 }
}


  
 
},
"contents":{
  
    "Teaser 1":
  
{
  "object":"content",
  "id":5,
  "name":"Teaser 1",
  "creation_date":"2016-03-25 12:38:23",
  "class":"teaser_pic",
  
  
"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
  "attributes":{
            
                "img":

{
  "type":"IMG",
  "id":51,
  "name":"img",
  "label":"Bild",
  
    
  "value":"https://demo.sleekshop.net/srv/uploads/shopobject_images/1c14058528a52ddae559cb29d7faa94a.jpg",
  "width":"NAN",
  "height":"NAN"
  
    
}


                                    
            
    ,                "headline":

{
  "type":"CHAR",
  "id":52,
  "name":"headline",
  "label":"Überschrift",
  "value":""
}


                                
            
    ,                    "text":

{
  "type":"TXT",
  "id":53,
  "name":"text",
  "label":"Text",
  "value":""
}


                            
        
    
  },
  "variations":{
  
    
 }
}


    ,
      "Teaser 2":
  
{
  "object":"content",
  "id":6,
  "name":"Teaser 2",
  "creation_date":"2016-03-25 12:42:29",
  "class":"teaser_pic",
  
  
"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
  "attributes":{
            
                "img":

{
  "type":"IMG",
  "id":54,
  "name":"img",
  "label":"Bild",
  
    
  "value":"https://demo.sleekshop.net/srv/uploads/shopobject_images/31aee733fa02a09e23c30e8af6dabd9e.jpg",
  "width":"NAN",
  "height":"NAN"
  
    
}


                                    
            
    ,                "headline":

{
  "type":"CHAR",
  "id":55,
  "name":"headline",
  "label":"Überschrift",
  "value":""
}


                                
            
    ,                    "text":

{
  "type":"TXT",
  "id":56,
  "name":"text",
  "label":"Text",
  "value":""
}


                            
        
    
  },
  "variations":{
  
    
 }
}


    ,
      "teaser 3":
  
{
  "object":"content",
  "id":7,
  "name":"teaser 3",
  "creation_date":"2016-03-25 12:44:19",
  "class":"teaser_pic",
  
  
"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
  "attributes":{
            
                "img":

{
  "type":"IMG",
  "id":57,
  "name":"img",
  "label":"Bild",
  
    
  "value":"https://demo.sleekshop.net/srv/uploads/shopobject_images/396497fb5999ce6a8468f86bd0d98b45.jpg",
  "width":"NAN",
  "height":"NAN"
  
    
}


                                    
            
    ,                "headline":

{
  "type":"CHAR",
  "id":58,
  "name":"headline",
  "label":"Überschrift",
  "value":""
}


                                
            
    ,                    "text":

{
  "type":"TXT",
  "id":59,
  "name":"text",
  "label":"Text",
  "value":""
}


                            
        
    
  },
  "variations":{
  
    
 }
}


    

}
}

                    

Here we receive a json - object containing all shopobjects in the determined category.
                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<shopobjects_in_category>
<category>
<id>1</id>
<name>Start</name>
<prio>1</prio>
<id_parent>0</id_parent>
<label>Start</label>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</category>
<products>
<product>
<id>15</id>
<name>Schuh blau</name>
<creation_date>2016-03-25 14:17:46</creation_date>
<class>colorprod</class>
<seo>
<permalink>blaue-laufschuhe-robust</permalink>
<title>Blaue Laufschuhe mit wasserdichter Oberfläche</title>
<description>Blaue Laufschuhe für Männer</description>
<keywords>blau,Schuhe,Laufschuhe</keywords>
</seo>

<availability>
<quantity>5</quantity>
<quantity_warning>3</quantity_warning>
<allow_override>0</allow_override>
<active>1</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="154">
<name>name</name>
<label>Name</label>
<value>Laufschuh blau</value>
</attribute>

<attribute type="FLOAT" id="157">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>
</variations>
</product>

<product>
<id>20</id>
<name>Jacke rot M</name>
<creation_date>2016-03-25 14:29:14</creation_date>
<class>sizeprod</class>
<seo>
<permalink>warme-herren-winterjacke</permalink>
<title>Superwarme und flauschige Winterjacke für Männer</title>
<description>Winterjacke für jedes Wetter!</description>
<keywords>warm,winter,maenner,jacke</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="229">
<name>name</name>
<label>Name</label>
<value>Winterjacke rot M</value>
</attribute>

<attribute type="FLOAT" id="232">
<name>price</name>
<label>Preis</label>
<value>89</value>
</attribute>


</attributes>
<variations>
</variations>
</product>

<product>
<id>30</id>
<name>Polar Jacket blau</name>
<creation_date>2016-03-25 14:36:37</creation_date>
<class>colorprod</class>
<seo>
<permalink>blaue-funktionsjacke-baumwolle</permalink>
<title>Damen Funktionsjacke aus BIO-Baumwolle</title>
<description>Blaue Funktionsjacke für Damen</description>
<keywords>damen,blau,bio,baumwolle,funktionsjacke</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="366">
<name>name</name>
<label>Name</label>
<value>Polar Jacket blau</value>
</attribute>

<attribute type="FLOAT" id="369">
<name>price</name>
<label>Preis</label>
<value>75</value>
</attribute>


</attributes>
<variations>
</variations>
</product>

<product>
<id>34</id>
<name>Mütze orange</name>
<creation_date>2016-03-25 16:19:24</creation_date>
<class>colorprod</class>
<seo>
<permalink>muetze-orange-onesize</permalink>
<title>Trendige Mütze mit Aztekenmuster</title>
<description>Superwarme und flauschige Mütze</description>
<keywords>warm, flauschig, orange, muetze, aztekenmuster</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>2</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="422">
<name>name</name>
<label>Name</label>
<value>Mütze orange</value>
</attribute>

<attribute type="FLOAT" id="425">
<name>price</name>
<label>Preis</label>
<value>17.5</value>
</attribute>


</attributes>
<variations>
</variations>
</product>

<product>
<id>36</id>
<name>Mütze schwarz</name>
<creation_date>2016-03-25 16:24:52</creation_date>
<class>colorprod</class>
<seo>
<permalink>flauschiger-schneehut-schwarz</permalink>
<title>Superweicher schwarzer Schneehut</title>
<description>Warmer Schneehut der Trendmarke SchneeHut</description>
<keywords>schwarz, schneehut, weich, warm</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>23</length>
<width>15</width>
<height>26</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="452">
<name>name</name>
<label>Name</label>
<value> Schneehut schwarz</value>
</attribute>

<attribute type="FLOAT" id="455">
<name>price</name>
<label>Preis</label>
<value>18.9</value>
</attribute>


</attributes>
<variations>
</variations>
</product>

<product>
<id>37</id>
<name>Pullover S</name>
<creation_date>2016-03-25 16:32:43</creation_date>
<class>sizeprod</class>
<seo>
<permalink>hunting-pullover-herren</permalink>
<title>Trendiger Hunting Herrenpullover</title>
<description>Pullover für Herren der Marke Hunting</description>
<keywords>hunting, robust, warm, dunkelgrau, herren</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>89</length>
<width>34</width>
<height>98</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="467">
<name>name</name>
<label>Name</label>
<value>Hunting Pullover S</value>
</attribute>

<attribute type="FLOAT" id="470">
<name>price</name>
<label>Preis</label>
<value>45</value>
</attribute>


</attributes>
<variations>
</variations>
</product>


</products>
<contents>
<content>
<id>5</id>
<name>Teaser 1</name>
<creation_date>2016-03-25 12:38:23</creation_date>
<class>teaser_pic</class>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes>
<attribute type="IMG" id="51">
<name>img</name>
<label>Bild</label>
<value>https://demo.sleekshop.net/srv/uploads/shopobject_images/1c14058528a52ddae559cb29d7faa94a.jpg</value>
<width>NAN</width>
<height>NAN</height>
</attribute>

<attribute type="CHAR" id="52">
<name>headline</name>
<label>Überschrift</label>
<value></value>
</attribute>

<attribute type="TXT" id="53">
<name>text</name>
<label>Text</label>
<value></value>
</attribute>


</attributes>
<variations>

</variations>
</content>

<content>
<id>6</id>
<name>Teaser 2</name>
<creation_date>2016-03-25 12:42:29</creation_date>
<class>teaser_pic</class>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes>
<attribute type="IMG" id="54">
<name>img</name>
<label>Bild</label>
<value>https://demo.sleekshop.net/srv/uploads/shopobject_images/31aee733fa02a09e23c30e8af6dabd9e.jpg</value>
<width>NAN</width>
<height>NAN</height>
</attribute>

<attribute type="CHAR" id="55">
<name>headline</name>
<label>Überschrift</label>
<value></value>
</attribute>

<attribute type="TXT" id="56">
<name>text</name>
<label>Text</label>
<value></value>
</attribute>


</attributes>
<variations>

</variations>
</content>

<content>
<id>7</id>
<name>teaser 3</name>
<creation_date>2016-03-25 12:44:19</creation_date>
<class>teaser_pic</class>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes>
<attribute type="IMG" id="57">
<name>img</name>
<label>Bild</label>
<value>https://demo.sleekshop.net/srv/uploads/shopobject_images/396497fb5999ce6a8468f86bd0d98b45.jpg</value>
<width>NAN</width>
<height>NAN</height>
</attribute>

<attribute type="CHAR" id="58">
<name>headline</name>
<label>Überschrift</label>
<value></value>
</attribute>

<attribute type="TXT" id="59">
<name>text</name>
<label>Text</label>
<value></value>
</attribute>


</attributes>
<variations>

</variations>
</content>


</contents>
</shopobjects_in_category>
                    

The corresponding xml response.

Explanation

This request returns the shopobjects in the category. 

This request has the following structure:

category This contains informations about the corresponding category.
products A section which contains the products in the category.
contents A section which contains all contents in this category.

Shopobjects

Objected oriented approach.

One of the most important structures provided by sleekshop is the flexible data - model an the classes covering them. Customers, products, warehouse - entities and content - elements are all shopobjects. Each shopobject are defined by classes in the backend. These classes contain attributes with different names, labels and datatypes.  So you can form every needed data - structure in the backend. After creation of these data structures the merchant can create objects out of the given classes with the desired attributes. 

These created objects can be referenced by the API like the example request.


Arguments

  • product (int)

    The ID of the product you want to pull the data from.

  • needed_attributes (json-array)

    An array containing the attributes you want to pull. This can limit the size of the response. Here we just pull the fields name and price and also want to hide the variations if there are some.

  • language (string)

    A valid language code.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_product_details' \ -d id_product=37 \ -d needed_attributes='[["name","price"],["variations"]]' \ -d language="de_DE"


Here the product with the 37 is requested.

Response

                    {
  "object":"product",
  "id":37,
  "name":"Pullover S",
  "creation_date":"2016-03-25 16:32:43",
  "class":"sizeprod",
  
  
"seo":
{
  "permalink": "hunting-pullover-herren",
  "title": "Trendiger Hunting Herrenpullover",
  "description": "Pullover für Herren der Marke Hunting",
  "keywords": "hunting, robust, warm, dunkelgrau, herren"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":89,
  "width":34,
  "height":98,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":467,
  "name":"name",
  "label":"Name",
  "value":"Hunting Pullover S"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":470,
  "name":"price",
  "label":"Preis",
  "value":45
}


                
                                                                                
    
  },
  "variations":{
  
    
 }
}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<product>
<id>37</id>
<name>Pullover S</name>
<creation_date>2016-03-25 16:32:43</creation_date>
<class>sizeprod</class>
<seo>
<permalink>hunting-pullover-herren</permalink>
<title>Trendiger Hunting Herrenpullover</title>
<description>Pullover für Herren der Marke Hunting</description>
<keywords>hunting, robust, warm, dunkelgrau, herren</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>89</length>
<width>34</width>
<height>98</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="467">
<name>name</name>
<label>Name</label>
<value>Hunting Pullover S</value>
</attribute>

<attribute type="FLOAT" id="470">
<name>price</name>
<label>Preis</label>
<value>45</value>
</attribute>


</attributes>
<variations>
</variations>
</product>
                    

Explanation

This request returns the shopobject with the determined id: 37

This request has the following structure:

seo-block A SEO - Block containing all SEO - relevant data.
availability-block A block containing informations concerning the availability of the product.
metadata-block A block containing some metadata - stuff.
attributes-block A block containing all attributes selected by the query. Each attribute has a type, a name, a label and a value.

Process

Sleekshops e-commerce processing.

There are several steps a customer passes during a normal checkout in e-commerce. The following figure shows the steps.





Quickstart

Lets start with your first request.

First create your first class by clicking: Administration->Objects->Create a new class.

After this enter a name describing your class and, check the Checkbox "instanceable" and click on the button "Create class". The checkbox determines that the class can be used for creating new objects.

Now create some attributes by clicking on the "Create new attribute" button. 

A new row appears where you can add name, datatype and label for your attribute. 

Lets assume that you have created a instanceable object name test with the following attributes: 

  • name - int
  • short_description - txt
  • price - float

Close the window and click on the item "Products" in the menu. Then click on the green "plus - sign". Here you chose a name for your instance and the class you have created before.

The determined attributes appear. Make the product "shop active" edit the attributes in your favorite language and save the product.

On the right - hand side you see the id of the product. Lets pull the informations given for this product.

Therefor you can execute the given curl - request on the right - hand side. Remember to enter your ID.


Arguments

  • id_product (int)

    The ID of the product you want to pull the data from.

  • needed_attributes (json-array)

    An array containing the attributes you want to pull. This can limit the size of the response. Here we just pull the fields name and price and also want to hide the variations if there are some.

  • language (string)

    A valid language code.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Remember to use your api - credentials and your id_product.

Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_product_details' \ -d id_product=87 \ -d needed_attributes='[]' \ -d language="de_DE"


Here we pull the informations for the product with the id 87.

Response

                    {
  "object":"product",
  "id":87,
  "name":"testproduct",
  "creation_date":"2018-04-17 21:56:46",
  "class":"test",
  
  
"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":865,
  "name":"name",
  "label":"Name",
  "value":"test_name"
}


                                
            
    ,                    "short_description":

{
  "type":"TXT",
  "id":866,
  "name":"short_description",
  "label":"Kurzbeschreibung",
  "value":"here the short_description"
}


                            
            
    ,                                "price":

{
  "type":"FLOAT",
  "id":867,
  "name":"price",
  "label":"Preis",
  "value":12.9
}


                
        
    
  },
  "variations":{
  
    
    
 }
}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<product>
<id>87</id>
<name>testproduct</name>
<creation_date>2018-04-17 21:56:46</creation_date>
<class>test</class>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="865">
<name>name</name>
<label>Name</label>
<value>test_name</value>
</attribute>

<attribute type="TXT" id="866">
<name>short_description</name>
<label>Kurzbeschreibung</label>
<value>here the short_description</value>
</attribute>

<attribute type="FLOAT" id="867">
<name>price</name>
<label>Preis</label>
<value>12.9</value>
</attribute>


</attributes>
<variations>

</variations>
</product>
                    

Explanation

This request returns the shopobject with the determined id: 37

This request has the following structure:

seo-block A SEO - Block containing all SEO - relevant data.
availability-block A block containing informations concerning the availability of the product.
metadata-block A block containing some metadata - stuff.
attributes-block A block containing all attributes selected by the query. Each attribute has a type, a name, a label and a value.

Introduction

How sessions work and how they are used.

The sleekshop sessions are used to identify the user interacting with the frontend, which sends and receives data from the backend via API. Some functions doesn't need to identify the special user like get_products_in_category or similar functions. But a lot functions need session. If you add an item into your cart, the users cart is stored in the sleekshop - backend and you as an developer need to know to which visitor the cart belongs. Therefore we need sessions.

This sessions has to be stored on the frontend - side of the corresponding user, for instance in a cookie. 




get_new_session

Delivers a new session.


Arguments

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_new_session'


Response

                    {
  "object":"session",
  "creation_date":"2018-05-01 14:56:27",
  "expiration_date":"2018-05-02 14:56:27",
  "code":"15251865878APL58l9IgZJ79jZb5IS7kMCue0KdAIX"
}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<session>
<creation_date>2018-05-01 14:54:59</creation_date>
<expiration_date>2018-05-02 14:54:59</expiration_date>
<code>1525186499wNWsboMyoGHXHnjH7pcc3diRuMW3NYlt</code>
</session>
                    

Explanation

creation_dateDate of creation for the session.
expiration_dateDate of expiration for the session.
codeThe session code which has to be used for identifying this session.

get_categories

Delivers the categories with the parent defined by id.


Arguments

  • id_parent (int)

    The id of the parent category.

  • language (string)

    A valid language-code.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Each Category in the sleekshop backend has an unique id. This category can contain other categories beneath it.

For the language you have to use a valid language-code. Valid codes can be found here: language codes

Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_categories' \ -d id_parent=2 \ -d language='en_EN'


Response

                    {"object":"shopcategories",


"parent_category":
{
  "name": "Categories",
  "prio": 2,
  "id": 2,
  "id_parent": 0,
  "label": "Categories",
  
"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
  "attributes":{
     
     
     
  }
},

"categories":[

 {
   "name":"Jacken",
   "prio":1,
   "id":3,
   "id_parent":2,
   "label":"Jacken",
   
"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
   "attributes":{
      
      
      
   }
 }

,

 {
   "name":"Schuhe",
   "prio":2,
   "id":4,
   "id_parent":2,
   "label":"Schuhe",
   
"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
   "attributes":{
      
      
      
   }
 }

,

 {
   "name":"Mützen",
   "prio":3,
   "id":5,
   "id_parent":2,
   "label":"Hats",
   
"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
   "attributes":{
      
      
      
   }
 }


]

}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<shopcategories>
<parent_category>
<name>Categories</name>
<prio>2</prio>
<id>2</id>
<id_parent>0</id_parent>
<label>Categories</label>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</parent_category>
<shopcategory>
<name>Jacken</name>
<prio>1</prio>
<id>3</id>
<id_parent>2</id_parent>
<label>Jacken</label>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</shopcategory>
<shopcategory>
<name>Schuhe</name>
<prio>2</prio>
<id>4</id>
<id_parent>2</id_parent>
<label>Schuhe</label>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</shopcategory>
<shopcategory>
<name>Mützen</name>
<prio>3</prio>
<id>5</id>
<id_parent>2</id_parent>
<label>Hats</label>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</shopcategory>

</shopcategories>
                    

Explanation

parent_categorySection containing informations about the parent category.
categoriesSection containing all categories with the category as parent defined by the ID.

get_products_in_category

Delivers products contained in a category defined by its id.


Arguments

  • id_category (int)

    The id of the category.

  • language (string)

    A valid language-code.

  • country (string)

    A valid country-code.

  • order_column (string)

    The order column.

  • order (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_products_in_category' \ -d id_category=1 \ -d language="de_DE" \ -d country="DE" \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=1 \ -d needed_attributes='["name","price"]'


Here we are requesting the products in the category with the id:1. We want the products to be listed in german defined by the language - code "de_DE" for the country germany defined by the country - code "DE". Further we want the products to be listed ordered by the price descending. Left - limit is 0 an right - limit is 1 so only 1 product will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {"object":"products_in_category",
"category":{
"id":1,
"name":"Start",
"prio":1,
"id_parent":0,
"label":"Start",


"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
"attributes":{
   
   
   
}
},
"products":{
 
  "Schuh blau":
 
{
  "object":"product",
  "id":15,
  "name":"Schuh blau",
  "creation_date":"2016-03-25 14:17:46",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "blaue-laufschuhe-robust",
  "title": "Blaue Laufschuhe mit wasserdichter Oberfläche",
  "description": "Blaue Laufschuhe für Männer",
  "keywords": "blau,Schuhe,Laufschuhe"
}

,
  
"availability":
{
  "quantity": 5,
  "quantity_warning": 3,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":154,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh blau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":157,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
      "Schuh grün":
  
{
  "object":"product",
  "id":17,
  "name":"Schuh grün",
  "creation_date":"2016-03-25 14:24:01",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "gruen-laufschuh-herren",
  "title": "Stylischer Herrenlaufschuh in grün",
  "description": "Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh",
  "keywords": "laufen,schuhe,herren,neu,widerstandsfaehig"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":184,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh gru00fcn"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":187,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


    "Schuh rot":
  
{
  "object":"product",
  "id":18,
  "name":"Schuh rot",
  "creation_date":"2016-03-25 14:25:33",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "laufschuh-sportlich-herren",
  "title": "Modischer Herrenlaufschuh in rot",
  "description": "Robuster und langlebiger Laufschuh für Herren",
  "keywords": "robust,laufen,modisch,maenner,herren"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":199,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh rot"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":202,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


  
    
 }
}


  
 
}
}


                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<products_in_category>
<category>
<id>1</id>
<name>Start</name>
<prio>1</prio>
<id_parent>0</id_parent>
<label>Start</label>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</category>
<products>
<product>
<id>15</id>
<name>Schuh blau</name>
<creation_date>2016-03-25 14:17:46</creation_date>
<class>colorprod</class>
<seo>
<permalink>blaue-laufschuhe-robust</permalink>
<title>Blaue Laufschuhe mit wasserdichter Oberfläche</title>
<description>Blaue Laufschuhe für Männer</description>
<keywords>blau,Schuhe,Laufschuhe</keywords>
</seo>

<availability>
<quantity>5</quantity>
<quantity_warning>3</quantity_warning>
<allow_override>0</allow_override>
<active>1</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="154">
<name>name</name>
<label>Name</label>
<value>Laufschuh blau</value>
</attribute>

<attribute type="FLOAT" id="157">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>
<product>
<id>17</id>
<name>Schuh grün</name>
<creation_date>2016-03-25 14:24:01</creation_date>
<class>colorprod</class>
<seo>
<permalink>gruen-laufschuh-herren</permalink>
<title>Stylischer Herrenlaufschuh in grün</title>
<description>Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh</description>
<keywords>laufen,schuhe,herren,neu,widerstandsfaehig</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="184">
<name>name</name>
<label>Name</label>
<value>Laufschuh grün</value>
</attribute>

<attribute type="FLOAT" id="187">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>18</id>
<name>Schuh rot</name>
<creation_date>2016-03-25 14:25:33</creation_date>
<class>colorprod</class>
<seo>
<permalink>laufschuh-sportlich-herren</permalink>
<title>Modischer Herrenlaufschuh in rot</title>
<description>Robuster und langlebiger Laufschuh für Herren</description>
<keywords>robust,laufen,modisch,maenner,herren</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="199">
<name>name</name>
<label>Name</label>
<value>Laufschuh rot</value>
</attribute>

<attribute type="FLOAT" id="202">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>


</variations>
</product>


</products>
</products_in_category>
                    

Explanation

categorySection containing informations about the category.
productsSection containing all products in the category.

get_contents_in_category

Delivers contents contained in a category defined by its id.


Arguments

  • id_category (int)

    The id of the category.

  • language (string)

    A valid language-code.

  • order_column (string)

    The order column.

  • order (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_contents_in_category' \ -d id_category=1 \ -d language="de_DE" \ -d order_column="name" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=2 \ -d needed_attributes='["headline","img"]'


Here we are requesting the contents in the category with the id:1. We want the contents to be listed in german defined by the language - code "de_DE". Further we want the contents to be listed ordered by the name descending. Left - limit is 0 an right - limit is 2 so only 2 contents will be listed. The attributes we want to be listed are "headline" and "img".

Response

                    {"object":"contents_in_category",
"category":{
"id":1,
"name":"Start",
"prio":1,
"id_parent":0,
"label":"Start",


"seo":
{
  "permalink": "start",
  "title": "demo",
  "description": "",
  "keywords": ""
}

,
"attributes":{
   
   
   
}
},
"contents":{
 
  "Teaser 1":
 
{
  "object":"content",
  "id":5,
  "name":"Teaser 1",
  "creation_date":"2016-03-25 12:38:23",
  "class":"teaser_pic",
  
  
"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
  "attributes":{
            
                "img":

{
  "type":"IMG",
  "id":51,
  "name":"img",
  "label":"Bild",
  
    
  "value":"https://demo.sleekshop.net/srv/uploads/shopobject_images/1c14058528a52ddae559cb29d7faa94a.jpg",
  "width":"NAN",
  "height":"NAN"
  
    
}


                                    
            
    ,                "headline":

{
  "type":"CHAR",
  "id":52,
  "name":"headline",
  "label":"Überschrift",
  "value":""
}


                                
                
    
  },
  "variations":{
  
    
    
 }
}


  ,
   "Teaser 2":
 
{
  "object":"content",
  "id":6,
  "name":"Teaser 2",
  "creation_date":"2016-03-25 12:42:29",
  "class":"teaser_pic",
  
  
"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
  "attributes":{
            
                "img":

{
  "type":"IMG",
  "id":54,
  "name":"img",
  "label":"Bild",
  
    
  "value":"https://demo.sleekshop.net/srv/uploads/shopobject_images/31aee733fa02a09e23c30e8af6dabd9e.jpg",
  "width":"NAN",
  "height":"NAN"
  
    
}


                                    
            
    ,                "headline":

{
  "type":"CHAR",
  "id":55,
  "name":"headline",
  "label":"Überschrift",
  "value":""
}


                                
                
    
  },
  "variations":{
  
    
    
 }
}


  
 
}
}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<contents_in_category>
<category>
<id>1</id>
<name>Start</name>
<prio>1</prio>
<id_parent>0</id_parent>
<label>Start</label>
<seo>
<permalink>start</permalink>
<title>demo</title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</category>
<contents>
<content>
<id>5</id>
<name>Teaser 1</name>
<creation_date>2016-03-25 12:38:23</creation_date>
<class>teaser_pic</class>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes>

</attributes>
<variations>

</variations>
</content>

<content>
<id>6</id>
<name>Teaser 2</name>
<creation_date>2016-03-25 12:42:29</creation_date>
<class>teaser_pic</class>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes>

</attributes>
<variations>

</variations>
</content>


</contents>
</contents_in_category>
                    

Explanation

categorySection containing informations about the category.
contentsSection containing all contents in the category.

get_shopobjects_in_category

Delivers products and contents contained in a category defined by its id.


Arguments

  • id_category (int)

    The id of the category.

  • language (string)

    A valid language-code.

  • country (string)

    A valid country-code.

  • order_column (string)

    The order column.

  • order (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_shopobjects_in_category' \ -d id_category=1 \ -d language="de_DE" \ -d country="DE" \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=1 \ -d needed_attributes='["name","price"]'


Here we are requesting the products and contents in the category with the id:1. We want the objects to be listed in german defined by the language - code "de_DE" for the country germany defined by the country - code "DE". Further we want the objects to be listed ordered by the price descending. Left - limit is 0 an right - limit is 1 so only 1 product will be listed. The attributes we want to be listed are "name" and "price". Here there is no option to define separated "needed_attributes" for contents and products.

Response

                    {"object":"shopobjects_in_category",
"category":{
"id":1,
"name":"Start",
"prio":1,
"id_parent":0,
"label":"Start",


"seo":
{
  "permalink": "start",
  "title": "demo",
  "description": "",
  "keywords": ""
}

,
"attributes":{
   
   
   
}
},
"products":{
 
  "Schuh blau":
 
{
  "object":"product",
  "id":15,
  "name":"Schuh blau",
  "creation_date":"2016-03-25 14:17:46",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "blaue-laufschuhe-robust",
  "title": "Blaue Laufschuhe mit wasserdichter Oberfläche",
  "description": "Blaue Laufschuhe für Männer",
  "keywords": "blau,Schuhe,Laufschuhe"
}

,
  
"availability":
{
  "quantity": 5,
  "quantity_warning": 3,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":154,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh blau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":157,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
      "Schuh grün":
  
{
  "object":"product",
  "id":17,
  "name":"Schuh grün",
  "creation_date":"2016-03-25 14:24:01",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "gruen-laufschuh-herren",
  "title": "Stylischer Herrenlaufschuh in grün",
  "description": "Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh",
  "keywords": "laufen,schuhe,herren,neu,widerstandsfaehig"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":184,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh gru00fcn"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":187,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


    "Schuh rot":
  
{
  "object":"product",
  "id":18,
  "name":"Schuh rot",
  "creation_date":"2016-03-25 14:25:33",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "laufschuh-sportlich-herren",
  "title": "Modischer Herrenlaufschuh in rot",
  "description": "Robuster und langlebiger Laufschuh für Herren",
  "keywords": "robust,laufen,modisch,maenner,herren"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":199,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh rot"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":202,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


  
    
 }
}


  
 
},
"contents":{
  
    "Teaser 1":
  
{
  "object":"content",
  "id":5,
  "name":"Teaser 1",
  "creation_date":"2016-03-25 12:38:23",
  "class":"teaser_pic",
  
  
"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
  "attributes":{
            
                "img":

{
  "type":"IMG",
  "id":51,
  "name":"img",
  "label":"Bild",
  
    
  "value":"https://demo.sleekshop.net/srv/uploads/shopobject_images/1c14058528a52ddae559cb29d7faa94a.jpg",
  "width":"NAN",
  "height":"NAN"
  
    
}


                                    
            
    ,                "headline":

{
  "type":"CHAR",
  "id":52,
  "name":"headline",
  "label":"Überschrift",
  "value":""
}


                                
            
    ,                    "text":

{
  "type":"TXT",
  "id":53,
  "name":"text",
  "label":"Text",
  "value":""
}


                            
        
    
  },
  "variations":{
  
    
    
 }
}


    

}
}


                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<shopobjects_in_category>
<category>
<id>1</id>
<name>Start</name>
<prio>1</prio>
<id_parent>0</id_parent>
<label>Start</label>
<seo>
<permalink>start</permalink>
<title>demo</title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</category>
<products>
<product>
<id>15</id>
<name>Schuh blau</name>
<creation_date>2016-03-25 14:17:46</creation_date>
<class>colorprod</class>
<seo>
<permalink>blaue-laufschuhe-robust</permalink>
<title>Blaue Laufschuhe mit wasserdichter Oberfläche</title>
<description>Blaue Laufschuhe für Männer</description>
<keywords>blau,Schuhe,Laufschuhe</keywords>
</seo>

<availability>
<quantity>5</quantity>
<quantity_warning>3</quantity_warning>
<allow_override>0</allow_override>
<active>1</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="154">
<name>name</name>
<label>Name</label>
<value>Laufschuh blau</value>
</attribute>

<attribute type="FLOAT" id="157">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>
<product>
<id>17</id>
<name>Schuh grün</name>
<creation_date>2016-03-25 14:24:01</creation_date>
<class>colorprod</class>
<seo>
<permalink>gruen-laufschuh-herren</permalink>
<title>Stylischer Herrenlaufschuh in grün</title>
<description>Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh</description>
<keywords>laufen,schuhe,herren,neu,widerstandsfaehig</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="184">
<name>name</name>
<label>Name</label>
<value>Laufschuh grün</value>
</attribute>

<attribute type="FLOAT" id="187">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>18</id>
<name>Schuh rot</name>
<creation_date>2016-03-25 14:25:33</creation_date>
<class>colorprod</class>
<seo>
<permalink>laufschuh-sportlich-herren</permalink>
<title>Modischer Herrenlaufschuh in rot</title>
<description>Robuster und langlebiger Laufschuh für Herren</description>
<keywords>robust,laufen,modisch,maenner,herren</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="199">
<name>name</name>
<label>Name</label>
<value>Laufschuh rot</value>
</attribute>

<attribute type="FLOAT" id="202">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>


</variations>
</product>


</products>
<contents>
<content>
<id>5</id>
<name>Teaser 1</name>
<creation_date>2016-03-25 12:38:23</creation_date>
<class>teaser_pic</class>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes>
<attribute type="IMG" id="51">
<name>img</name>
<label>Bild</label>
<value>https://demo.sleekshop.net/srv/uploads/shopobject_images/1c14058528a52ddae559cb29d7faa94a.jpg</value>
<width>NAN</width>
<height>NAN</height>
</attribute>

<attribute type="CHAR" id="52">
<name>headline</name>
<label>Überschrift</label>
<value></value>
</attribute>

<attribute type="TXT" id="53">
<name>text</name>
<label>Text</label>
<value></value>
</attribute>


</attributes>
<variations>

</variations>
</content>


</contents>
</shopobjects_in_category>
                    

Explanation

categorySection containing informations about the category.
productsSection containing all products in the category.
contentsSection containing all contents in the category.

dump_category

Delivers products and contents recursively where the id_category determines the root where the iteration begins.


Arguments

  • id_category (int)

    The id of the category.

  • language (string)

    A valid language-code.

  • country (string)

    A valid country-code.

  • order_column (string)

    The order column.

  • order (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='dump_category' \ -d id_category=2 \ -d language="de_DE" \ -d country="DE" \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=1 \ -d needed_attributes='["name","price"]'


Here we are requesting the products and contents in the category with the id:1. Further we want all data in the child - nodes. These data will be derived recursively. We want the data to be listed in german defined by the language - code "de_DE" for the country germany defined by the country - code "DE". Further we want the data to be listed ordered by the price descending. Left - limit is 0 an right - limit is 1 so only 1 product will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {
  "object":"category_dump",
  
    
  "parent_category":
  {
    "name":"Categories",
    "prio":2,
    "id":2,
    "id_parent":0,
    "label":"Categories",
    
    
"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}


    
    "attributes":{
      
     
    }
    
  },
  
    
  "shop_categories":{
    
        
     "{$category.name}":
     {
       
       
{
  "object":"category_dump",
  
    
  "parent_category":
  {
    "name":"Jacken",
    "prio":1,
    "id":3,
    "id_parent":2,
    "label":"Jacken",
    
    
"seo":
{
  "permalink": "jacken",
  "title": "Jacken",
  "description": "Jacken",
  "keywords": "jacken"
}


    
    "attributes":{
      
     
    }
    
  },
  
    
  "shop_categories":{
    
    
  },
  
  "products_in_category":
  {
    "category":
    {
      "id_category":3,
      "name":"Jacken"
    }
    "products":
    {
      
            "Jacke rot M":

        
{
  "object":"product",
  "id":20,
  "name":"Jacke rot M",
  "creation_date":"2016-03-25 14:29:14",
  "class":"sizeprod",
  
  
"seo":
{
  "permalink": "warme-herren-winterjacke",
  "title": "Superwarme und flauschige Winterjacke für Männer",
  "description": "Winterjacke für jedes Wetter!",
  "keywords": "warm,winter,maenner,jacke"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":229,
  "name":"name",
  "label":"Name",
  "value":"Winterjacke rot M"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":232,
  "name":"price",
  "label":"Preis",
  "value":89
}


                
                                                                                
    
  },
  "variations":{
  
      "Jacke rot S":
  
{
  "object":"product",
  "id":22,
  "name":"Jacke rot S",
  "creation_date":"2016-03-25 14:31:45",
  "class":"sizeprod",
  
  
"seo":
{
  "permalink": "winterjacke-warm-maenner",
  "title": "Warme Winterjacke für Herren",
  "description": "Winterjacke in superweicher Qualität",
  "keywords": "weich,warm,maenner,herren,winter,jacke"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":254,
  "name":"name",
  "label":"Name",
  "value":"Winterjacke rot S"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":257,
  "name":"price",
  "label":"Preis",
  "value":89
}


                
                                                                                
    
  },
  "variations":{
  
    
    
 }
}


    "Jacke rot L":
  
{
  "object":"product",
  "id":24,
  "name":"Jacke rot L",
  "creation_date":"2016-03-25 14:32:09",
  "class":"sizeprod",
  
  
"seo":
{
  "permalink": "wasserdicht-herren-jacke",
  "title": "Wasserdichte Herrenjacke in rot",
  "description": "Coole Outdoorjacke in rot für Herren",
  "keywords": "warm,wasserdicht,atmungsaktiv,chic"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":282,
  "name":"name",
  "label":"Name",
  "value":"winterjacke rot L"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":285,
  "name":"price",
  "label":"Preis",
  "value":89
}


                
                                                                                
    
  },
  "variations":{
  
    
    
 }
}


    "Jacke rot XL":
  
{
  "object":"product",
  "id":26,
  "name":"Jacke rot XL",
  "creation_date":"2016-03-25 14:32:37",
  "class":"sizeprod",
  
  
"seo":
{
  "permalink": "allwetter-herren-rot",
  "title": "Herrenoutdoorjacke",
  "description": "Allwetterjacke für Herren",
  "keywords": "allwetter,outdoor,herren,rot,wasserdicht"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":310,
  "name":"name",
  "label":"Name",
  "value":"winterjacke rot XL"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":313,
  "name":"price",
  "label":"Preis",
  "value":89
}


                
                                                                                
    
  },
  "variations":{
  
    
    
 }
}


  
    
 }
}



            
      
    }
  },
  "contents_in_category":
  {
   "category":
   {
     "id_category":3,
     "name":"Jacken"
   },
   "contents":
   {
     
     
     
   }
  }
}


       
     }
    
        
     "{$category.name}":
     {
       
       
{
  "object":"category_dump",
  
    
  "parent_category":
  {
    "name":"Schuhe",
    "prio":2,
    "id":4,
    "id_parent":2,
    "label":"Schuhe",
    
    
"seo":
{
  "permalink": "schuhe",
  "title": "Schuhe",
  "description": "Schuhe",
  "keywords": "schuhe"
}


    
    "attributes":{
      
     
    }
    
  },
  
    
  "shop_categories":{
    
    
  },
  
  "products_in_category":
  {
    "category":
    {
      "id_category":4,
      "name":"Schuhe"
    }
    "products":
    {
      
            "Schuh blau":

        
{
  "object":"product",
  "id":15,
  "name":"Schuh blau",
  "creation_date":"2016-03-25 14:17:46",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "blaue-laufschuhe-robust",
  "title": "Blaue Laufschuhe mit wasserdichter Oberfläche",
  "description": "Blaue Laufschuhe für Männer",
  "keywords": "blau,Schuhe,Laufschuhe"
}

,
  
"availability":
{
  "quantity": 5,
  "quantity_warning": 3,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":154,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh blau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":157,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
      "Schuh grün":
  
{
  "object":"product",
  "id":17,
  "name":"Schuh grün",
  "creation_date":"2016-03-25 14:24:01",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "gruen-laufschuh-herren",
  "title": "Stylischer Herrenlaufschuh in grün",
  "description": "Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh",
  "keywords": "laufen,schuhe,herren,neu,widerstandsfaehig"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":184,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh gru00fcn"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":187,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


    "Schuh rot":
  
{
  "object":"product",
  "id":18,
  "name":"Schuh rot",
  "creation_date":"2016-03-25 14:25:33",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "laufschuh-sportlich-herren",
  "title": "Modischer Herrenlaufschuh in rot",
  "description": "Robuster und langlebiger Laufschuh für Herren",
  "keywords": "robust,laufen,modisch,maenner,herren"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":199,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh rot"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":202,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


  
    
 }
}



            
      
    }
  },
  "contents_in_category":
  {
   "category":
   {
     "id_category":4,
     "name":"Schuhe"
   },
   "contents":
   {
     
     
     
   }
  }
}


       
     }
    
        
     "{$category.name}":
     {
       
       
{
  "object":"category_dump",
  
    
  "parent_category":
  {
    "name":"Mützen",
    "prio":3,
    "id":5,
    "id_parent":2,
    "label":"Mützen",
    
    
"seo":
{
  "permalink": "muetzen",
  "title": "Mützen",
  "description": "Mützen",
  "keywords": "mützen"
}


    
    "attributes":{
      
     
    }
    
  },
  
    
  "shop_categories":{
    
    
  },
  
  "products_in_category":
  {
    "category":
    {
      "id_category":5,
      "name":"Mützen"
    }
    "products":
    {
      
            "Schneehut dunkelblau":

        
{
  "object":"product",
  "id":42,
  "name":"Schneehut dunkelblau",
  "creation_date":"2016-03-25 17:22:22",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "dunkelblau-schneehut-warm",
  "title": "Dunkelblauer Schneehut",
  "description": "Cooler Schneehut in dunkelblau",
  "keywords": "dunkelblau, Schneehut, Muetze"
}

,
  
"availability":
{
  "quantity": 14,
  "quantity_warning": 6,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "123321",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":20,
  "width":18,
  "height":25,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":532,
  "name":"name",
  "label":"Name",
  "value":"Schneehut dunkelblau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":535,
  "name":"price",
  "label":"Preis",
  "value":27.9
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}



            
      
    }
  },
  "contents_in_category":
  {
   "category":
   {
     "id_category":5,
     "name":"Mützen"
   },
   "contents":
   {
     
     
     
   }
  }
}


       
     }
    
    
  },
  
  "products_in_category":
  {
    "category":
    {
      "id_category":2,
      "name":"Categories"
    }
    "products":
    {
      
      
      
    }
  },
  "contents_in_category":
  {
   "category":
   {
     "id_category":2,
     "name":"Categories"
   },
   "contents":
   {
     
     
     
   }
  }
}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<category_dump>
<parent_category>
<name>Categories</name>
<prio>2</prio>
<id>2</id>
<id_parent>0</id_parent>
<label>Categories</label>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</parent_category>
<shop_categories>
 <category_dump>
<parent_category>
<name>Jacken</name>
<prio>1</prio>
<id>3</id>
<id_parent>2</id_parent>
<label>Jacken</label>
<seo>
<permalink>jacken</permalink>
<title>Jacken</title>
<description>Jacken</description>
<keywords>jacken</keywords>
</seo>

<attributes></attributes>
</parent_category>
<shop_categories>

</shop_categories>
<products_in_category>
<category>
<id_category>3</id_category>
<name>Jacken</name>
</category>
<products>
<product>
<id>20</id>
<name>Jacke rot M</name>
<creation_date>2016-03-25 14:29:14</creation_date>
<class>sizeprod</class>
<seo>
<permalink>warme-herren-winterjacke</permalink>
<title>Superwarme und flauschige Winterjacke für Männer</title>
<description>Winterjacke für jedes Wetter!</description>
<keywords>warm,winter,maenner,jacke</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="229">
<name>name</name>
<label>Name</label>
<value>Winterjacke rot M</value>
</attribute>

<attribute type="FLOAT" id="232">
<name>price</name>
<label>Preis</label>
<value>89</value>
</attribute>


</attributes>
<variations>
<product>
<id>22</id>
<name>Jacke rot S</name>
<creation_date>2016-03-25 14:31:45</creation_date>
<class>sizeprod</class>
<seo>
<permalink>winterjacke-warm-maenner</permalink>
<title>Warme Winterjacke für Herren</title>
<description>Winterjacke in superweicher Qualität</description>
<keywords>weich,warm,maenner,herren,winter,jacke</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="254">
<name>name</name>
<label>Name</label>
<value>Winterjacke rot S</value>
</attribute>

<attribute type="FLOAT" id="257">
<name>price</name>
<label>Preis</label>
<value>89</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>24</id>
<name>Jacke rot L</name>
<creation_date>2016-03-25 14:32:09</creation_date>
<class>sizeprod</class>
<seo>
<permalink>wasserdicht-herren-jacke</permalink>
<title>Wasserdichte Herrenjacke in rot</title>
<description>Coole Outdoorjacke in rot für Herren</description>
<keywords>warm,wasserdicht,atmungsaktiv,chic</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="282">
<name>name</name>
<label>Name</label>
<value>winterjacke rot L</value>
</attribute>

<attribute type="FLOAT" id="285">
<name>price</name>
<label>Preis</label>
<value>89</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>26</id>
<name>Jacke rot XL</name>
<creation_date>2016-03-25 14:32:37</creation_date>
<class>sizeprod</class>
<seo>
<permalink>allwetter-herren-rot</permalink>
<title>Herrenoutdoorjacke</title>
<description>Allwetterjacke für Herren</description>
<keywords>allwetter,outdoor,herren,rot,wasserdicht</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="310">
<name>name</name>
<label>Name</label>
<value>winterjacke rot XL</value>
</attribute>

<attribute type="FLOAT" id="313">
<name>price</name>
<label>Preis</label>
<value>89</value>
</attribute>


</attributes>
<variations>

</variations>
</product>


</variations>
</product>


</products>
</products_in_category>
<contents_in_category>
<category>
<id_category>3</id_category>
<name>Jacken</name>
</category>
<contents>

</contents>
</contents_in_category>
</category_dump>

 <category_dump>
<parent_category>
<name>Schuhe</name>
<prio>2</prio>
<id>4</id>
<id_parent>2</id_parent>
<label>Schuhe</label>
<seo>
<permalink>schuhe</permalink>
<title>Schuhe</title>
<description>Schuhe</description>
<keywords>schuhe</keywords>
</seo>

<attributes></attributes>
</parent_category>
<shop_categories>

</shop_categories>
<products_in_category>
<category>
<id_category>4</id_category>
<name>Schuhe</name>
</category>
<products>
<product>
<id>15</id>
<name>Schuh blau</name>
<creation_date>2016-03-25 14:17:46</creation_date>
<class>colorprod</class>
<seo>
<permalink>blaue-laufschuhe-robust</permalink>
<title>Blaue Laufschuhe mit wasserdichter Oberfläche</title>
<description>Blaue Laufschuhe für Männer</description>
<keywords>blau,Schuhe,Laufschuhe</keywords>
</seo>

<availability>
<quantity>5</quantity>
<quantity_warning>3</quantity_warning>
<allow_override>0</allow_override>
<active>1</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="154">
<name>name</name>
<label>Name</label>
<value>Laufschuh blau</value>
</attribute>

<attribute type="FLOAT" id="157">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>
<product>
<id>17</id>
<name>Schuh grün</name>
<creation_date>2016-03-25 14:24:01</creation_date>
<class>colorprod</class>
<seo>
<permalink>gruen-laufschuh-herren</permalink>
<title>Stylischer Herrenlaufschuh in grün</title>
<description>Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh</description>
<keywords>laufen,schuhe,herren,neu,widerstandsfaehig</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="184">
<name>name</name>
<label>Name</label>
<value>Laufschuh grün</value>
</attribute>

<attribute type="FLOAT" id="187">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>18</id>
<name>Schuh rot</name>
<creation_date>2016-03-25 14:25:33</creation_date>
<class>colorprod</class>
<seo>
<permalink>laufschuh-sportlich-herren</permalink>
<title>Modischer Herrenlaufschuh in rot</title>
<description>Robuster und langlebiger Laufschuh für Herren</description>
<keywords>robust,laufen,modisch,maenner,herren</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="199">
<name>name</name>
<label>Name</label>
<value>Laufschuh rot</value>
</attribute>

<attribute type="FLOAT" id="202">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>


</variations>
</product>


</products>
</products_in_category>
<contents_in_category>
<category>
<id_category>4</id_category>
<name>Schuhe</name>
</category>
<contents>

</contents>
</contents_in_category>
</category_dump>

 <category_dump>
<parent_category>
<name>Mützen</name>
<prio>3</prio>
<id>5</id>
<id_parent>2</id_parent>
<label>Mützen</label>
<seo>
<permalink>muetzen</permalink>
<title>Mützen</title>
<description>Mützen</description>
<keywords>mützen</keywords>
</seo>

<attributes></attributes>
</parent_category>
<shop_categories>

</shop_categories>
<products_in_category>
<category>
<id_category>5</id_category>
<name>Mützen</name>
</category>
<products>
<product>
<id>42</id>
<name>Schneehut dunkelblau</name>
<creation_date>2016-03-25 17:22:22</creation_date>
<class>colorprod</class>
<seo>
<permalink>dunkelblau-schneehut-warm</permalink>
<title>Dunkelblauer Schneehut</title>
<description>Cooler Schneehut in dunkelblau</description>
<keywords>dunkelblau, Schneehut, Muetze</keywords>
</seo>

<availability>
<quantity>14</quantity>
<quantity_warning>6</quantity_warning>
<allow_override>0</allow_override>
<active>1</active>
</availability>

<metadata>
<element_number>123321</element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>20</length>
<width>18</width>
<height>25</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="532">
<name>name</name>
<label>Name</label>
<value>Schneehut dunkelblau</value>
</attribute>

<attribute type="FLOAT" id="535">
<name>price</name>
<label>Preis</label>
<value>27.9</value>
</attribute>


</attributes>
<variations>

</variations>
</product>


</products>
</products_in_category>
<contents_in_category>
<category>
<id_category>5</id_category>
<name>Mützen</name>
</category>
<contents>

</contents>
</contents_in_category>
</category_dump>


</shop_categories>
<products_in_category>
<category>
<id_category>2</id_category>
<name>Categories</name>
</category>
<products>

</products>
</products_in_category>
<contents_in_category>
<category>
<id_category>2</id_category>
<name>Categories</name>
</category>
<contents>

</contents>
</contents_in_category>
</category_dump>
                    

Explanation

parent_categorySection containing informations about the corresponding parent category.
products_in_categorySection containing all products in the category.
contents_in_categorySection containing all contents in the category.
shop_categoriesSection containing children of the category.

seo_get_products_in_category

Delivers products contained in a category defined by its permalink.


Arguments

  • permalink (string)

    A valid permalink of the category.

  • country (string)

    A valid country-code.

  • order_column (string)

    The order column.

  • order (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='seo_get_products_in_category' \ -d permalink='jacken' \ -d country="DE" \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=1 \ -d needed_attributes='["name","price"]'


Here we are requesting the products in the category determined by the attribute permalink. We want the products to be listed  for the country germany defined by the country - code "DE". Further we want the products to be listed ordered by the price descending. Left - limit is 0 an right - limit is 1 so only 1 product will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {"object":"products_in_category",
"category":{
"id":3,
"name":"Jacken",
"prio":1,
"id_parent":2,
"label":"Jacken",


"seo":
{
  "permalink": "jacken",
  "title": "Jacken",
  "description": "Jacken",
  "keywords": "jacken"
}

,
"attributes":{
   
   
   
}
},
"products":{
 
  "Jacke rot M":
 
{
  "object":"product",
  "id":20,
  "name":"Jacke rot M",
  "creation_date":"2016-03-25 14:29:14",
  "class":"sizeprod",
  
  
"seo":
{
  "permalink": "warme-herren-winterjacke",
  "title": "Superwarme und flauschige Winterjacke für Männer",
  "description": "Winterjacke für jedes Wetter!",
  "keywords": "warm,winter,maenner,jacke"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":229,
  "name":"name",
  "label":"Name",
  "value":"Winterjacke rot M"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":232,
  "name":"price",
  "label":"Preis",
  "value":89
}


                
                                                                                
    
  },
  "variations":{
  
      "Jacke rot S":
  
{
  "object":"product",
  "id":22,
  "name":"Jacke rot S",
  "creation_date":"2016-03-25 14:31:45",
  "class":"sizeprod",
  
  
"seo":
{
  "permalink": "winterjacke-warm-maenner",
  "title": "Warme Winterjacke für Herren",
  "description": "Winterjacke in superweicher Qualität",
  "keywords": "weich,warm,maenner,herren,winter,jacke"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":254,
  "name":"name",
  "label":"Name",
  "value":"Winterjacke rot S"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":257,
  "name":"price",
  "label":"Preis",
  "value":89
}


                
                                                                                
    
  },
  "variations":{
  
    
    
 }
}


    "Jacke rot L":
  
{
  "object":"product",
  "id":24,
  "name":"Jacke rot L",
  "creation_date":"2016-03-25 14:32:09",
  "class":"sizeprod",
  
  
"seo":
{
  "permalink": "wasserdicht-herren-jacke",
  "title": "Wasserdichte Herrenjacke in rot",
  "description": "Coole Outdoorjacke in rot für Herren",
  "keywords": "warm,wasserdicht,atmungsaktiv,chic"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":282,
  "name":"name",
  "label":"Name",
  "value":"winterjacke rot L"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":285,
  "name":"price",
  "label":"Preis",
  "value":89
}


                
                                                                                
    
  },
  "variations":{
  
    
    
 }
}


    "Jacke rot XL":
  
{
  "object":"product",
  "id":26,
  "name":"Jacke rot XL",
  "creation_date":"2016-03-25 14:32:37",
  "class":"sizeprod",
  
  
"seo":
{
  "permalink": "allwetter-herren-rot",
  "title": "Herrenoutdoorjacke",
  "description": "Allwetterjacke für Herren",
  "keywords": "allwetter,outdoor,herren,rot,wasserdicht"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":310,
  "name":"name",
  "label":"Name",
  "value":"winterjacke rot XL"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":313,
  "name":"price",
  "label":"Preis",
  "value":89
}


                
                                                                                
    
  },
  "variations":{
  
    
    
 }
}


  
    
 }
}


  
 
}
}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<products_in_category>
<category>
<id>3</id>
<name>Jacken</name>
<prio>1</prio>
<id_parent>2</id_parent>
<label>Jacken</label>
<seo>
<permalink>jacken</permalink>
<title>Jacken</title>
<description>Jacken</description>
<keywords>jacken</keywords>
</seo>

<attributes></attributes>
</category>
<products>
<product>
<id>20</id>
<name>Jacke rot M</name>
<creation_date>2016-03-25 14:29:14</creation_date>
<class>sizeprod</class>
<seo>
<permalink>warme-herren-winterjacke</permalink>
<title>Superwarme und flauschige Winterjacke für Männer</title>
<description>Winterjacke für jedes Wetter!</description>
<keywords>warm,winter,maenner,jacke</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="229">
<name>name</name>
<label>Name</label>
<value>Winterjacke rot M</value>
</attribute>

<attribute type="FLOAT" id="232">
<name>price</name>
<label>Preis</label>
<value>89</value>
</attribute>


</attributes>
<variations>
<product>
<id>22</id>
<name>Jacke rot S</name>
<creation_date>2016-03-25 14:31:45</creation_date>
<class>sizeprod</class>
<seo>
<permalink>winterjacke-warm-maenner</permalink>
<title>Warme Winterjacke für Herren</title>
<description>Winterjacke in superweicher Qualität</description>
<keywords>weich,warm,maenner,herren,winter,jacke</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="254">
<name>name</name>
<label>Name</label>
<value>Winterjacke rot S</value>
</attribute>

<attribute type="FLOAT" id="257">
<name>price</name>
<label>Preis</label>
<value>89</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>24</id>
<name>Jacke rot L</name>
<creation_date>2016-03-25 14:32:09</creation_date>
<class>sizeprod</class>
<seo>
<permalink>wasserdicht-herren-jacke</permalink>
<title>Wasserdichte Herrenjacke in rot</title>
<description>Coole Outdoorjacke in rot für Herren</description>
<keywords>warm,wasserdicht,atmungsaktiv,chic</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="282">
<name>name</name>
<label>Name</label>
<value>winterjacke rot L</value>
</attribute>

<attribute type="FLOAT" id="285">
<name>price</name>
<label>Preis</label>
<value>89</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>26</id>
<name>Jacke rot XL</name>
<creation_date>2016-03-25 14:32:37</creation_date>
<class>sizeprod</class>
<seo>
<permalink>allwetter-herren-rot</permalink>
<title>Herrenoutdoorjacke</title>
<description>Allwetterjacke für Herren</description>
<keywords>allwetter,outdoor,herren,rot,wasserdicht</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="310">
<name>name</name>
<label>Name</label>
<value>winterjacke rot XL</value>
</attribute>

<attribute type="FLOAT" id="313">
<name>price</name>
<label>Preis</label>
<value>89</value>
</attribute>


</attributes>
<variations>

</variations>
</product>


</variations>
</product>


</products>
</products_in_category>
                    

Explanation

categorySection containing informations about the category.
productsSection containing all products in the category.

seo_get_contents_in_category

Delivers contents contained in a category defined by its permalink.


Arguments

  • permalink (string)

    A valid permalink of the category.

  • order_column (string)

    The order column.

  • order (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='seo_get_contents_in_category' \ -d permalink='start' \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=1 \ -d needed_attributes='["name","price"]'


Here we are requesting the contents in the category determined by the attribute permalink. Further we want the contents to be listed ordered by the price descending. Left - limit is 0 an right - limit is 1 so only 1 product will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {"object":"contents_in_category",
"category":{
"id":1,
"name":"Start",
"prio":1,
"id_parent":0,
"label":"Start",


"seo":
{
  "permalink": "start",
  "title": "demo",
  "description": "",
  "keywords": ""
}

,
"attributes":{
   
   
   
}
},
"contents":{
 
  "Teaser 1":
 
{
  "object":"content",
  "id":5,
  "name":"Teaser 1",
  "creation_date":"2016-03-25 12:38:23",
  "class":"teaser_pic",
  
  
"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
  "attributes":{
                                
    
  },
  "variations":{
  
    
    
 }
}


  
 
}
}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<contents_in_category>
<category>
<id>1</id>
<name>Start</name>
<prio>1</prio>
<id_parent>0</id_parent>
<label>Start</label>
<seo>
<permalink>start</permalink>
<title>demo</title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</category>
<contents>
<content>
<id>5</id>
<name>Teaser 1</name>
<creation_date>2016-03-25 12:38:23</creation_date>
<class>teaser_pic</class>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes>

</attributes>
<variations>

</variations>
</content>


</contents>
</contents_in_category>
                    

Explanation

categorySection containing informations about the category.
contentsSection containing all contents in the category.

seo_get_shopobjects_in_category

Delivers products and contents contained in a category defined by its permalink.


Arguments

  • permalink (string)

    A valid permalink.

  • country (string)

    A valid country-code.

  • order_column (string)

    The order column.

  • order (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='seo_get_shopobjects_in_category' \ -d permalink='start' \ -d country="DE" \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=1 \ -d needed_attributes='["name","price"]'


Here we are requesting the products and contents in the category determined by permalink. We want the objects to be listed in  for the country germany defined by the country - code "DE". Further we want the objects to be listed ordered by the price descending. Left - limit is 0 an right - limit is 1 so only 1 object will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {"object":"shopobjects_in_category",
"category":{
"id":1,
"name":"Start",
"prio":1,
"id_parent":0,
"label":"Start",


"seo":
{
  "permalink": "start",
  "title": "demo",
  "description": "",
  "keywords": ""
}

,
"attributes":{
   
   
   
}
},
"products":{
 
  "Schuh blau":
 
{
  "object":"product",
  "id":15,
  "name":"Schuh blau",
  "creation_date":"2016-03-25 14:17:46",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "blaue-laufschuhe-robust",
  "title": "Blaue Laufschuhe mit wasserdichter Oberfläche",
  "description": "Blaue Laufschuhe für Männer",
  "keywords": "blau,Schuhe,Laufschuhe"
}

,
  
"availability":
{
  "quantity": 5,
  "quantity_warning": 3,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":154,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh blau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":157,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
      "Schuh grün":
  
{
  "object":"product",
  "id":17,
  "name":"Schuh grün",
  "creation_date":"2016-03-25 14:24:01",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "gruen-laufschuh-herren",
  "title": "Stylischer Herrenlaufschuh in grün",
  "description": "Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh",
  "keywords": "laufen,schuhe,herren,neu,widerstandsfaehig"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":184,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh gru00fcn"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":187,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


    "Schuh rot":
  
{
  "object":"product",
  "id":18,
  "name":"Schuh rot",
  "creation_date":"2016-03-25 14:25:33",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "laufschuh-sportlich-herren",
  "title": "Modischer Herrenlaufschuh in rot",
  "description": "Robuster und langlebiger Laufschuh für Herren",
  "keywords": "robust,laufen,modisch,maenner,herren"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":199,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh rot"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":202,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


  
    
 }
}


  
 
},
"contents":{
  
    "Teaser 1":
  
{
  "object":"content",
  "id":5,
  "name":"Teaser 1",
  "creation_date":"2016-03-25 12:38:23",
  "class":"teaser_pic",
  
  
"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
  "attributes":{
            
                "img":

{
  "type":"IMG",
  "id":51,
  "name":"img",
  "label":"Bild",
  
    
  "value":"https://demo.sleekshop.net/srv/uploads/shopobject_images/1c14058528a52ddae559cb29d7faa94a.jpg",
  "width":"NAN",
  "height":"NAN"
  
    
}


                                    
            
    ,                "headline":

{
  "type":"CHAR",
  "id":52,
  "name":"headline",
  "label":"Überschrift",
  "value":""
}


                                
            
    ,                    "text":

{
  "type":"TXT",
  "id":53,
  "name":"text",
  "label":"Text",
  "value":""
}


                            
        
    
  },
  "variations":{
  
    
    
 }
}


    

}
}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<shopobjects_in_category>
<category>
<id>1</id>
<name>Start</name>
<prio>1</prio>
<id_parent>0</id_parent>
<label>Start</label>
<seo>
<permalink>start</permalink>
<title>demo</title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</category>
<products>
<product>
<id>15</id>
<name>Schuh blau</name>
<creation_date>2016-03-25 14:17:46</creation_date>
<class>colorprod</class>
<seo>
<permalink>blaue-laufschuhe-robust</permalink>
<title>Blaue Laufschuhe mit wasserdichter Oberfläche</title>
<description>Blaue Laufschuhe für Männer</description>
<keywords>blau,Schuhe,Laufschuhe</keywords>
</seo>

<availability>
<quantity>5</quantity>
<quantity_warning>3</quantity_warning>
<allow_override>0</allow_override>
<active>1</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="154">
<name>name</name>
<label>Name</label>
<value>Laufschuh blau</value>
</attribute>

<attribute type="FLOAT" id="157">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>
<product>
<id>17</id>
<name>Schuh grün</name>
<creation_date>2016-03-25 14:24:01</creation_date>
<class>colorprod</class>
<seo>
<permalink>gruen-laufschuh-herren</permalink>
<title>Stylischer Herrenlaufschuh in grün</title>
<description>Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh</description>
<keywords>laufen,schuhe,herren,neu,widerstandsfaehig</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="184">
<name>name</name>
<label>Name</label>
<value>Laufschuh grün</value>
</attribute>

<attribute type="FLOAT" id="187">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>18</id>
<name>Schuh rot</name>
<creation_date>2016-03-25 14:25:33</creation_date>
<class>colorprod</class>
<seo>
<permalink>laufschuh-sportlich-herren</permalink>
<title>Modischer Herrenlaufschuh in rot</title>
<description>Robuster und langlebiger Laufschuh für Herren</description>
<keywords>robust,laufen,modisch,maenner,herren</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="199">
<name>name</name>
<label>Name</label>
<value>Laufschuh rot</value>
</attribute>

<attribute type="FLOAT" id="202">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>


</variations>
</product>


</products>
<contents>
<content>
<id>5</id>
<name>Teaser 1</name>
<creation_date>2016-03-25 12:38:23</creation_date>
<class>teaser_pic</class>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes>
<attribute type="IMG" id="51">
<name>img</name>
<label>Bild</label>
<value>https://demo.sleekshop.net/srv/uploads/shopobject_images/1c14058528a52ddae559cb29d7faa94a.jpg</value>
<width>NAN</width>
<height>NAN</height>
</attribute>

<attribute type="CHAR" id="52">
<name>headline</name>
<label>Überschrift</label>
<value></value>
</attribute>

<attribute type="TXT" id="53">
<name>text</name>
<label>Text</label>
<value></value>
</attribute>


</attributes>
<variations>

</variations>
</content>


</contents>
</shopobjects_in_category>
                    

Explanation

categorySection containing informations about the category.
productsSection containing all products in the category.
contentsSection containing all contents in the category.

get_product_details

Delivers the product - details for the product defined by its id.


Arguments

  • id_product (int)

    The id of the product.

  • language (string)

    A valid language-code.

  • country (string)

    A valid country-code.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_product_details' \ -d id_product=42 \ -d language="de_DE" \ -d country="DE" \ -d needed_attributes='["name","price"]'


Here we are requesting the product - details for the product with the id:42. We want the product to be listed in german defined by the language - code "de_DE" for the country germany defined by the country - code "DE".. The attributes we want to be listed are "name" and "price".

Response

                    {
  "object":"product",
  "id":42,
  "name":"Schneehut dunkelblau",
  "creation_date":"2016-03-25 17:22:22",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "dunkelblau-schneehut-warm",
  "title": "Dunkelblauer Schneehut",
  "description": "Cooler Schneehut in dunkelblau",
  "keywords": "dunkelblau, Schneehut, Muetze"
}

,
  
"availability":
{
  "quantity": 14,
  "quantity_warning": 6,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "123321",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":20,
  "width":18,
  "height":25,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":532,
  "name":"name",
  "label":"Name",
  "value":"Schneehut dunkelblau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":535,
  "name":"price",
  "label":"Preis",
  "value":27.9
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<product>
<id>42</id>
<name>Schneehut dunkelblau</name>
<creation_date>2016-03-25 17:22:22</creation_date>
<class>colorprod</class>
<seo>
<permalink>dunkelblau-schneehut-warm</permalink>
<title>Dunkelblauer Schneehut</title>
<description>Cooler Schneehut in dunkelblau</description>
<keywords>dunkelblau, Schneehut, Muetze</keywords>
</seo>

<availability>
<quantity>14</quantity>
<quantity_warning>6</quantity_warning>
<allow_override>0</allow_override>
<active>1</active>
</availability>

<metadata>
<element_number>123321</element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>20</length>
<width>18</width>
<height>25</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="532">
<name>name</name>
<label>Name</label>
<value>Schneehut dunkelblau</value>
</attribute>

<attribute type="FLOAT" id="535">
<name>price</name>
<label>Preis</label>
<value>27.9</value>
</attribute>


</attributes>
<variations>

</variations>
</product>
                    

Explanation

idThe id of the product.
nameThe name of the product.
creation_dateThe creation date of the product.
classThe class of the product.
seoThe SEO - section for the product.
availabilityThe availability - section for the product.
metadataThe metadata section of the product.
attributesThe attributes section of the product.
variationsThe section containing all variations.

get_content_details

Delivers the content - details for the product defined by its id.


Arguments

  • id_content (int)

    The id of the content object.

  • language (string)

    A valid language-code.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_content_details' \ -d id_content=5 \ -d language="de_DE"


Here we are requesting the content - details for the content with the id:5. We want the product to be listed in german defined by the language - code "de_DE".

Response

                    {
  "object":"content",
  "id":5,
  "name":"Teaser 1",
  "creation_date":"2016-03-25 12:38:23",
  "class":"teaser_pic",
  
  
"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
  "attributes":{
            
                "img":

{
  "type":"IMG",
  "id":51,
  "name":"img",
  "label":"Bild",
  
    
  "value":"https://demo.sleekshop.net/srv/uploads/shopobject_images/1c14058528a52ddae559cb29d7faa94a.jpg",
  "width":"NAN",
  "height":"NAN"
  
    
}


                                    
            
    ,                "headline":

{
  "type":"CHAR",
  "id":52,
  "name":"headline",
  "label":"Überschrift",
  "value":""
}


                                
            
    ,                    "text":

{
  "type":"TXT",
  "id":53,
  "name":"text",
  "label":"Text",
  "value":""
}


                            
        
    
  },
  "variations":{
  
    
    
 }
}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<content>
<id>5</id>
<name>Teaser 1</name>
<creation_date>2016-03-25 12:38:23</creation_date>
<class>teaser_pic</class>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes>
<attribute type="IMG" id="51">
<name>img</name>
<label>Bild</label>
<value>https://demo.sleekshop.net/srv/uploads/shopobject_images/1c14058528a52ddae559cb29d7faa94a.jpg</value>
<width>NAN</width>
<height>NAN</height>
</attribute>

<attribute type="CHAR" id="52">
<name>headline</name>
<label>Überschrift</label>
<value></value>
</attribute>

<attribute type="TXT" id="53">
<name>text</name>
<label>Text</label>
<value></value>
</attribute>


</attributes>
<variations>

</variations>
</content>
                    

Explanation

idThe id of the content.
nameThe name of the content.
creation_dateThe creation date of the content.
classThe class of the content.
seoThe SEO - section for the content.
attributesThe attributes section of the content.
variationsThe section containing all variations. In the actual version this section will always be empty for content - objects.

seo_get_product_details

Delivers the product - details for the product defined by its permalink.


Arguments

  • permalink (string)

    The permalink of the product.

  • country (string)

    A valid country-code.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='seo_get_product_details' \ -d permalink='dunkelblau-schneehut-warm' \ -d country="DE" \ -d needed_attributes='["name","price"]'


Here we are requesting the product determined by the permalink. We want the product to be listed  for the country germany defined by the country - code "DE". The attributes we want to be listed are "name" and "price".

Response

                    {
  "object":"product",
  "id":42,
  "name":"Schneehut dunkelblau",
  "creation_date":"2016-03-25 17:22:22",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "dunkelblau-schneehut-warm",
  "title": "Dunkelblauer Schneehut",
  "description": "Cooler Schneehut in dunkelblau",
  "keywords": "dunkelblau, Schneehut, Muetze"
}

,
  
"availability":
{
  "quantity": 14,
  "quantity_warning": 6,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "123321",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":20,
  "width":18,
  "height":25,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":532,
  "name":"name",
  "label":"Name",
  "value":"Schneehut dunkelblau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":535,
  "name":"price",
  "label":"Preis",
  "value":27.9
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<product>
<id>42</id>
<name>Schneehut dunkelblau</name>
<creation_date>2016-03-25 17:22:22</creation_date>
<class>colorprod</class>
<seo>
<permalink>dunkelblau-schneehut-warm</permalink>
<title>Dunkelblauer Schneehut</title>
<description>Cooler Schneehut in dunkelblau</description>
<keywords>dunkelblau, Schneehut, Muetze</keywords>
</seo>

<availability>
<quantity>14</quantity>
<quantity_warning>6</quantity_warning>
<allow_override>0</allow_override>
<active>1</active>
</availability>

<metadata>
<element_number>123321</element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>20</length>
<width>18</width>
<height>25</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="532">
<name>name</name>
<label>Name</label>
<value>Schneehut dunkelblau</value>
</attribute>

<attribute type="FLOAT" id="535">
<name>price</name>
<label>Preis</label>
<value>27.9</value>
</attribute>


</attributes>
<variations>

</variations>
</product>
                    

Explanation

idThe id of the product.
nameThe name of the product.
creation_dateThe creation date of the product.
classThe class of the product.
seoThe SEO - section for the product.
availabilityThe availability - section for the product.
metadataThe metadata section of the product.
attributesThe attributes section of the product.
variationsThe section containing all variations.

seo_get_content_details

Delivers the content - details for the content defined by its permalink.


Arguments

  • permalink (string)

    The permalink of the object.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='seo_get_content_details' \ -d permalink='impressum'


Here we are requesting the content - details for the content determined by its permalink. 

Response

                    {
  "object":"content",
  "id":52,
  "name":"imprint",
  "creation_date":"2016-07-29 16:04:24",
  "class":"content",
  
  
"seo":
{
  "permalink": "impressum",
  "title": "Impressum",
  "description": "",
  "keywords": ""
}

,
  "attributes":{
            
                    "headline":

{
  "type":"CHAR",
  "id":647,
  "name":"headline",
  "label":"Überschrift",
  "value":"Impressum"
}


                                
            
    ,                                            "content":

{
  "type":"HTML",
  "id":648,
  "name":"content",
  "label":"Inhalt",
  "value":"<p>Hier steht das Impressum</p><br><p><br></p>"
}


    
            
    ,            "img":

{
  "type":"IMG",
  "id":649,
  "name":"img",
  "label":"Bild",
  
    
  "value":"https://demo.sleekshop.net/srv/uploads/shopobject_images/",
  "width":"",
  "height":""
  
    
}


                                    
        
    
  },
  "variations":{
  
    
    
 }
}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<content>
<id>52</id>
<name>imprint</name>
<creation_date>2016-07-29 16:04:24</creation_date>
<class>content</class>
<seo>
<permalink>impressum</permalink>
<title>Impressum</title>
<description></description>
<keywords></keywords>
</seo>

<attributes>
<attribute type="CHAR" id="647">
<name>headline</name>
<label>Überschrift</label>
<value>Impressum</value>
</attribute>

<attribute type="HTML" id="648">
<name>content</name>
<label>Inhalt</label>
<value>&amp;lt;p&amp;gt;Hier steht das Impressum&amp;lt;/p&amp;gt;&amp;lt;br&amp;gt;&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/p&amp;gt;</value>
</attribute>

<attribute type="IMG" id="649">
<name>img</name>
<label>Bild</label>
<value>https://demo.sleekshop.net/srv/uploads/shopobject_images/</value>
<width></width>
<height></height>
</attribute>


</attributes>
<variations>

</variations>
</content>
                    

Explanation

idThe id of the content.
nameThe name of the content.
creation_dateThe creation date of the content.
classThe class of the content.
seoThe SEO - section for the content.
attributesThe attributes section of the content.
variationsThe section containing all variations. In the actual version this section will always be empty for content - objects.

search_products

Delivers products matching the constraint defined.


Arguments

  • constraint (json-array)

    A constraint defining defining which products to deliver.

  • language (string)

    A valid language-code.

  • country (string)

    A valid country-code.

  • order_columns (json-array)

    The order columns.

  • order_type (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='search_products' \ -d constraint='{"name":["LIKE","a"]}' \ -d language="de_DE" \ -d country="DE" \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=2 \ -d needed_attributes='["name","price"]'


Here we are requesting the products matching the constraint. We want the products to be listed in german defined by the language - code "de_DE" for the country germany defined by the country - code "DE". Further we want the products to be listed ordered by the price descending. Left - limit is 0 an right - limit is 2 so only 2 product will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {
  "object":"search_products_result",
  "count":16,
  "limit_count":2,
  "result":[
  
    
{
  "object":"product",
  "id":30,
  "name":"Polar Jacket blau",
  "creation_date":"2016-03-25 14:36:37",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "blaue-funktionsjacke-baumwolle",
  "title": "Damen Funktionsjacke aus BIO-Baumwolle",
  "description": "Blaue Funktionsjacke für Damen",
  "keywords": "damen,blau,bio,baumwolle,funktionsjacke"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":366,
  "name":"name",
  "label":"Name",
  "value":"Polar Jacket blau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":369,
  "name":"price",
  "label":"Preis",
  "value":75
}


                
                                                                                                
    
  },
  "variations":{
  
      "Polar Jacket pink":
  
{
  "object":"product",
  "id":31,
  "name":"Polar Jacket pink",
  "creation_date":"2016-03-25 14:37:29",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "polar-jacket-damen",
  "title": "Pinke Funktionsjacke für Damen",
  "description": "Damenjacke in Top-Qualität",
  "keywords": "warm,jacke,damen,pink"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":381,
  "name":"name",
  "label":"Name",
  "value":"Polar Jacket pink"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":384,
  "name":"price",
  "label":"Preis",
  "value":75
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


  
    
 }
}


    ,
      
{
  "object":"product",
  "id":34,
  "name":"Mütze orange",
  "creation_date":"2016-03-25 16:19:24",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "muetze-orange-onesize",
  "title": "Trendige Mütze mit Aztekenmuster",
  "description": "Superwarme und flauschige Mütze",
  "keywords": "warm, flauschig, orange, muetze, aztekenmuster"
}

,
  
"availability":
{
  "quantity": 1,
  "quantity_warning": 3,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":422,
  "name":"name",
  "label":"Name",
  "value":"Mu00fctze orange"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":425,
  "name":"price",
  "label":"Preis",
  "value":17.5
}


                
                                                                                                
    
  },
  "variations":{
  
      "Mütze blau":
  
{
  "object":"product",
  "id":35,
  "name":"Mütze blau",
  "creation_date":"2016-03-25 16:20:50",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "gemusterte-blaue-muetze",
  "title": "Moderne Mütze mit Aztekenmuster und süßen Fransen",
  "description": "Superwarme Mütze mit Fransendetails",
  "keywords": "warm, muetze, fransen, aztekenmuster, unisex"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":437,
  "name":"name",
  "label":"Name",
  "value":"Mu00fctze blau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":440,
  "name":"price",
  "label":"Preis",
  "value":17.5
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


  
    
 }
}


    
  ]

}

                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<search_products_result>
 <count>
  15
 </count>
 <limit_count>
   2
 </limit_count>
<product>
<id>40</id>
<name>Sneakers</name>
<creation_date>2016-03-25 16:47:51</creation_date>
<class>sizeprod</class>
<seo>
<permalink>gruene-sneaker-leder</permalink>
<title>Grüne Herrensneaker aus Leder</title>
<description>Modischer Sneaker fuer Herren</description>
<keywords>gruen,sneaker,leder,italienisch</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number>123</element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>26</length>
<width>8</width>
<height>4</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="506">
<name>name</name>
<label>Name</label>
<value>Sneakers grün</value>
</attribute>

<attribute type="FLOAT" id="509">
<name>price</name>
<label>Preis</label>
<value>65</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>30</id>
<name>Polar Jacket blau</name>
<creation_date>2016-03-25 14:36:37</creation_date>
<class>colorprod</class>
<seo>
<permalink>blaue-funktionsjacke-baumwolle</permalink>
<title>Damen Funktionsjacke aus BIO-Baumwolle</title>
<description>Blaue Funktionsjacke für Damen</description>
<keywords>damen,blau,bio,baumwolle,funktionsjacke</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="366">
<name>name</name>
<label>Name</label>
<value>Polar Jacket blau</value>
</attribute>

<attribute type="FLOAT" id="369">
<name>price</name>
<label>Preis</label>
<value>75</value>
</attribute>


</attributes>
<variations>
<product>
<id>31</id>
<name>Polar Jacket pink</name>
<creation_date>2016-03-25 14:37:29</creation_date>
<class>colorprod</class>
<seo>
<permalink>polar-jacket-damen</permalink>
<title>Pinke Funktionsjacke für Damen</title>
<description>Damenjacke in Top-Qualität</description>
<keywords>warm,jacke,damen,pink</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="381">
<name>name</name>
<label>Name</label>
<value>Polar Jacket pink</value>
</attribute>

<attribute type="FLOAT" id="384">
<name>price</name>
<label>Preis</label>
<value>75</value>
</attribute>


</attributes>
<variations>

</variations>
</product>


</variations>
</product>


</search_products_result>
                    

Explanation

countThe total number of objects matching the constraint.
limit_countThe number of objects matching our limitations.
resultA listing of all products the search delivered.

search_contents

Allows you to search contents matching a determined constraint.


Arguments

  • constraint (json-array)

    The constraint determining which contents to deliver.

  • language (string)

    A valid language-code.

  • country (string)

    A valid country-code.

  • order_columns (json-array)

    The order column.

  • order_type (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='search_contents' \ -d constraint='{"main.name":["LIKE","a"]}' \ -d language="de_DE" \ -d country="DE" \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=2 \ -d needed_attributes='["name","price"]'


Here we are requesting the contents where the name is like "a". We want the contents to be listed in german defined by the language - code "de_DE". Further we want the products to be listed ordered by the price descending. Left - limit is 0 an right - limit is 2 so only 2 contents will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {
  "object":"search_contents_result",
  "count":3,
  "limit_count":2,
  "result":[
  
    
{
  "object":"content",
  "id":5,
  "name":"Teaser 1",
  "creation_date":"2016-03-25 12:38:23",
  "class":"teaser_pic",
  
  
"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
  "attributes":{
                                
    
  },
  "variations":{
  
    
    
 }
}


    ,
      
{
  "object":"content",
  "id":6,
  "name":"Teaser 2",
  "creation_date":"2016-03-25 12:42:29",
  "class":"teaser_pic",
  
  
"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
  "attributes":{
                                
    
  },
  "variations":{
  
    
    
 }
}


    
  ]

}

                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<search_contents_result>
 <count>
  3
 </count>
 <limit_count>
   2
 </limit_count>
<content>
<id>5</id>
<name>Teaser 1</name>
<creation_date>2016-03-25 12:38:23</creation_date>
<class>teaser_pic</class>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes>

</attributes>
<variations>

</variations>
</content>

<content>
<id>6</id>
<name>Teaser 2</name>
<creation_date>2016-03-25 12:42:29</creation_date>
<class>teaser_pic</class>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes>

</attributes>
<variations>

</variations>
</content>


</search_contents_result>
                    

Explanation

countThe total number of objects matching the constraint.
limit_countThe number of objects matching our limitations.
resultA listing of all products the search delivered.

search_distinct_products

Delivers the distinct values of a field in a set of products matching the constraint.


Arguments

  • constraint (json-array)

    A valid constraint array in json-format.

  • field (string)

    A field-name.

  • language (string)

    A valid language-code.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='search_distinct_products' \ -d field='name' \ -d constraint='{"main.name":["LIKE","a"]}' \ -d language="de_DE"


Here we are searching the distinct value of the field name in the set of products where main.name value is like "a"

Response

                    {
  "object":"search_distinct_products_result",
  "count":13,
  "result":[
   
      "Polar Jacket pink"      ,
         "Polar Jacket blau"      ,
         "winterjacke rot L"      ,
         "Winterjacke rot S"      ,
         "Winterjacke rot M"      ,
         "winterjacke rot XL"      ,
         "Laufschuh blau"      ,
         "Sneakers italian"      ,
         "Schneehut dunkelblau"      ,
         "Mütze blau"      ,
         "Mütze orange"      ,
         "Sneakers grün"      ,
         " Schneehut schwarz"      
   
  ]
}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<search_distinct_products_result>
 <count>
  13
</count>
<field>Polar Jacket pink</field>
<field>Polar Jacket blau</field>
<field>winterjacke rot L</field>
<field>Winterjacke rot S</field>
<field>Winterjacke rot M</field>
<field>winterjacke rot XL</field>
<field>Laufschuh blau</field>
<field>Sneakers italian</field>
<field>Schneehut dunkelblau</field>
<field>Mütze blau</field>
<field>Mütze orange</field>
<field>Sneakers grün</field>
<field> Schneehut schwarz</field>

</search_distinct_products_result>
                    

Explanation

countThe count of found elements.
fieldA set of field values.

search_orders

Delivers all orders matching the constraint.


Arguments

  • constraint (json-array)

    A valid constraint.

  • language (string)

    A valid language-code.

  • order_columns (json-array)

    The order column.

  • order_type (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='search_orders' \ -d constraint='{"delivery_firstname":"kaveh"}' \ -d language="de_DE" \ -d left_limit=0 \ -d right_limit=1


Here we are requesting the orders matching the constraint that defines we want all orders with the delivery_firstname="kaveh"

Response

                    {
  "object":"search_orders_result",
  "orders":[
   
       
    {
      "id":3,
      "order_number":3,
      "creation_date":"2016-11-13 16:31:46",
      "order_delivery_companyname":"sleekcommerce UG",
      "order_delivery_department":"",
      "order_delivery_salutation":"Herr",
      "order_delivery_firstname":"kaveh",
      "order_delivery_lastname":"raji",
      "order_delivery_street":"Max-Brauer-Allee",
      "order_delivery_number":"218",
      "order_delivery_zip":"22769",
      "order_delivery_state":"Hamburg",
      "order_delivery_city":"Hamburg",
      "order_delivery_country":"Germany",
      "order_invoice_companyname":"sleekcommerce UG",
      "order_invoice_department":"",
      "order_invoice_salutation":"Herr",
      "order_invoice_firstname":"kaveh",
      "order_invoice_lastname":"raji",
      "order_invoice_street":"Max-Brauer-Allee",
      "order_invoice_number":"218",
      "order_invoice_zip":"22769",
      "order_invoice_state":"Hamburg",
      "order_invoice_city":"Hamburg",
      "order_invoice_country":"Germany",
      "order_email":"info@vitabytes.de",
      "order_phone":"",
      "order_notes":"",
      "payment_method":"PrePayment",
      "payment_state":
      {
        "name":"PAYMENT_NOT_RECEIVED",
        "label":"Zahlung nicht erhalten"
      },
      "delivery_method":"Shipping",
      "delivery_state":{
        "name":"PROCESSING",
        "label":"In Bearbeitung"
      },
      "order_state":"PROCESSING",
      "cart":
      {
        
                
        "creation_date":"2016-11-13 16:20:11",
        "sum":18.9,
        
        
"contents":[
  
     

{
    "type":"FREE_ELEMENT",
    "id":190,
    "id_product":36,
    "quantity":1,
    "price":18.9,
    "sum_price":18.9,
    "tax":3.01765,
    "sum_tax":3.01765,
    "name":" Schneehut schwarz",
    "description":"Superflauschiger Schneehut in schwarz - OneSize",
    "attributes":{
       
                                   "pic":
       
       {
         "name":"pic",
         "value":"http://demo.sleekshop.net/srv/uploads/shopobject_images/5d618534dfd89666cf496cece4355397.jpg"
       }
       
              ,              "sys_tax":
       
       {
         "name":"sys_tax",
         "value":"0.19"
       }
       
              ,              "sys_tax_calc":
       
       {
         "name":"sys_tax_calc",
         "value":"INC"
       }
       
              ,              "sys_length":
       
       {
         "name":"sys_length",
         "value":"23"
       }
       
              ,              "sys_width":
       
       {
         "name":"sys_width",
         "value":"15"
       }
       
              ,              "sys_height":
       
       {
         "name":"sys_height",
         "value":"26"
       }
       
              ,              "sys_weight":
       
       {
         "name":"sys_weight",
         "value":"0"
       }
       
              ,              "sys_notes":
       
       {
         "name":"sys_notes",
         "value":""
       }
       
       
       
    }
  }






      ,
        




{
    "type":"DELIVERY_COSTS",
    "id":191,
    "id_product":0,
    "quantity":1,
    "price":0,
    "sum_price":0,
    "tax":0,
    "sum_tax":0,
    "name":"Versandkosten",
    "description":" ",
    "attributes":{
       
                                   "sys_tax":
       
       {
         "name":"sys_tax",
         "value":"0.19"
       }
       
              ,              "sys_tax_calc":
       
       {
         "name":"sys_tax_calc",
         "value":"INC"
       }
       
              ,              "sys_length":
       
       {
         "name":"sys_length",
         "value":"0"
       }
       
              ,              "sys_width":
       
       {
         "name":"sys_width",
         "value":"0"
       }
       
              ,              "sys_height":
       
       {
         "name":"sys_height",
         "value":"0"
       }
       
              ,              "sys_weight":
       
       {
         "name":"sys_weight",
         "value":"0"
       }
       
              ,              "sys_notes":
       
       {
         "name":"sys_notes",
         "value":""
       }
       
       
       
    }
}



     
  
],
"delivery_costs":{
     "sum":0,
     "positions":[
      
      
       
     ]
}


        
      }
    }
    
       
   
 ]
}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<search_orders_result>
<order>
<id>3</id>
<order_number>3</order_number>
<creation_date>2016-11-13 16:31:46</creation_date>
<order_delivery_companyname>sleekcommerce UG</order_delivery_companyname>
<order_delivery_department></order_delivery_department>
<order_delivery_salutation>Herr</order_delivery_salutation>
<order_delivery_firstname>kaveh</order_delivery_firstname>
<order_delivery_lastname>raji</order_delivery_lastname>
<order_delivery_street>Max-Brauer-Allee</order_delivery_street>
<order_delivery_number></order_delivery_number>
<order_delivery_zip>22769</order_delivery_zip>
<order_delivery_state>Hamburg</order_delivery_state>
<order_delivery_city>Hamburg</order_delivery_city>
<order_delivery_country>Germany</order_delivery_country>
<order_invoice_companyname>sleekcommerce UG</order_invoice_companyname>
<order_invoice_department></order_invoice_department>
<order_invoice_salutation>Herr</order_invoice_salutation>
<order_invoice_firstname>kaveh</order_invoice_firstname>
<order_invoice_lastname>raji</order_invoice_lastname>
<order_invoice_street>Max-Brauer-Allee</order_invoice_street>
<order_invoice_number>218</order_invoice_number>
<order_invoice_zip>22769</order_invoice_zip>
<order_invoice_state>Hamburg</order_invoice_state>
<order_invoice_city>Hamburg</order_invoice_city>
<order_invoice_country>Germany</order_invoice_country>
<order_email>info@vitabytes.de</order_email>
<order_phone></order_phone>
<order_notes></order_notes>
<payment_method>PrePayment</payment_method>
<payment_state><name>PAYMENT_NOT_RECEIVED</name><label>Zahlung nicht erhalten</label></payment_state>
<delivery_method>Shipping</delivery_method>
<delivery_state><name>PROCESSING</name><label>In Bearbeitung</label></delivery_state>
<order_state>PROCESSING</order_state>
<cart>
<creation_date>2016-11-13 16:20:11</creation_date>
<sum>18.9</sum>
<contents>
   
 <element type="FREE_ELEMENT">
 <id>190</id>
 <id_product>36</id_product>
 <quantity>1</quantity>
 <price>18.9</price>
 <sum_price>18.9</sum_price>
<tax>3.01765</tax>
<sum_tax>3.01765</sum_tax>
<name> Schneehut schwarz</name>
<description>Superflauschiger Schneehut in schwarz - OneSize</description>
<attributes><attribute name="pic">http://demo.sleekshop.net/srv/uploads/shopobject_images/5d618534dfd89666cf496cece4355397.jpg</attribute><attribute name="sys_tax">0.19</attribute><attribute name="sys_tax_calc">INC</attribute><attribute name="sys_length">23</attribute><attribute name="sys_width">15</attribute><attribute name="sys_height">26</attribute><attribute name="sys_weight">0</attribute><attribute name="sys_notes"></attribute></attributes>
</element>





   



 <element type="DELIVERY_COSTS">
 <id>191</id>
 <id_product>0</id_product>
 <quantity>1</quantity>
 <price>0</price>
 <sum_price>0</sum_price>
<tax>0</tax>
<sum_tax>0</sum_tax>
<name>Versandkosten</name>
<description> </description>
<attributes><attribute name="sys_tax">0.19</attribute><attribute name="sys_tax_calc">INC</attribute><attribute name="sys_length">0</attribute><attribute name="sys_width">0</attribute><attribute name="sys_height">0</attribute><attribute name="sys_weight">0</attribute><attribute name="sys_notes"></attribute></attributes>
</element>


 
</contents>
<delivery_costs>
<sum></sum>
<positions>

</positions>
</delivery_costs>

</cart>
</order>

</search_orders_result>

                    

Explanation

idThe id of the order.
order_numberThe order number.
creation_dateThe creation date of the order.
order_delivery fieldsSome fields showing the delivery - data.
order_invoice fieldsSome fields showing the invoice - data.
order_emailThe email of the order.
order_phoneThe order - phone number.
order_notesThe notes for the order.
payment_methodThe payment method.
payment_stateThe payment state informations.
delivery_methodThe delivery method.
delivery_stateThe delivery state informations.
order_stateThe state of the order.
cartThe cart and cart - contents of the order.

Adressing attributes

Before constraints can be formed, you need to understand how to address the needed attributes.

Shopobject attributes

Class attributes

You can formulate constraints with different attributes. The normal attributes can be addressed by their names defined in the object - definition.

If you have objects with an attribute named as "name" you can search for products which have the name : "test" when you formulate a constraint like this: 

{"name":"test"}


Main attributes

Each object has also so called "main-attributes" which also can be addressed. These main attributes are the following ones: 

  • id (the id of the object)
  • name (the system name of the object)
  • creation_date (the creation date of the object)
  • class (the class of the object)

If you want to address one of these attributes you have to put the "main-modifier" in front of it. As example, if you want to find objects with the class: product you can form a constraint like this: 

{"main.class":"product"}


Categories

You can also address the corresponding categories of an object. Therefore you have to use the "categories-modifier". 

The following category - attributes are available: 

  • id_shopcategory(the id of the category)
  • name (the name of the category)
  • id_shopcategory_parent (the id of the parent category)
  • label (the label of the category)

An example constraint could look like this: 

{"category.name":"Start"}

or 

{"category.id_shopcategory":1}


Metadata

Some objects (products) also have metadata informations which also can be addressed. To achieve this you have to use the "metadata-modifier".

The following metadata-attributes can be user:

  • element_number (The unique number of the element SKU)
  • length 
  • width
  • height
  • weight

To search for objects with with the element_number 123 you can use a constraint like this:

{"metadata.element_number":"123"}


Availability

There is also the possibility to address the availability attributes of shopobjects (products):

  • quantity (the available quantity)
  • quantity_warning (the warning quantity)
  • allow_override (a flag showing wether an override is allowed or not)

To address these attributes you have to use the "availability - modifier". If you search for products with an availability of 1 you can form the following constraint:

{"availability.quantity":1}


Order attributes

There several possibilities to address order - data attributes. The following fields are available:

  • id (the id of the order)
  • order_number (the order number)
  • delivery_companyname
  • delivery_department
  • delivery_salutation
  • delivery_firstname
  • delivery_lastname
  • delivery_street
  • delivery_number
  • delivery_zip
  • delivery_state
  • delivery_city
  • delivery_country
  • invoice_companyname
  • invoice_department
  • invoice_salutation
  • invoice_firstname
  • invoice_lastname
  • invoice_street
  • invoice_number
  • invoice_zip
  • invoice_state
  • invoice_city
  • invoice_country
  • email
  • phone
  • notes




Forming constraints

There are a lot of possibilities to form search constraints. This rich set of elements you can combine enables the formulation of very complex queries which are executed fast and reliable.

AND catenation

You can form easily a combination of AND combination of attributes. To do that you use valid attributes and values combinations in you j-son array, seperated by a comma.

The following example shows a constraint querying all products with the name: test and a price of 100:

{"name":"test", "price":100}


OR catenation

The OR constraints alway begin {with the OR - keyword followed by several attrubute:values combinations. This pieces can be terms with arbitary complexity. The following constraint searches for products with the name:"test" or price:100:

[{"OR":{"name":"test"},"0":{"price":100}}]


Between operator

You can query objects using the between operator.  You use an attribute identifier where you define a between array as value. 

If you for example want to query products where the price is between 30 and 90 you can formulate the following constraint: 

{"price":["BETWEEN",30,90]}


> (Greater than operator)

The greater than operator is used similar to the between operator. You define a valid attribute and use a json-array as value. If you search all products with the price greater than 100 you can use the following constraint:

{"price":[">",100]}


< (Less than operator)

The less than operator works exactly like the greater than operator. If you are looking for products with a price less than 100, you can form the following constraint:

{"price":["<",100]}


LIKE operator

The like operator allows you to implement  fulltext - search over your attributes.  You can use the LIKE - operator by defining an attribute with an array as value where you use the like - operator. If you are searching for objects where the name is like "a" then you can use the following statement: 

{"name":["LIKE","a"]}


IN operator

You can query objects where the desired attribute - value is in an set of given values. As an example you can query all objects with a price in the following set : 100,99,98: 

{"price":["IN",[100,99,98]]}


Complex constraints

The power of the search service unleashes when you start combining all the explained operators. You can combine them in all needed ways as long you have a well-formed json-array.

In the following example we want to query all products where the main name is like "a" and the price bigger than 10 or less than 8:

{"main.name":["LIKE","a"],"0":{"OR":{"price":[">",10]},"0":{"price":["<",8]}}}




add_to_cart

Adds an element to the cart determined by a session.


Arguments

  • session (string)

    A valid session code.

  • id_shopobject (int)

    The id of the object you want to add to the cart. The value can also be 0. This is interesting for FREE_ELEMENTS.

  • element_type (string)

    A valid element_type. Valid values are: PRODUCT, PRODUCT_GR, FREE_ELEMENT, FREE_ELEMENT_GR.

  • id_parent_element (int)

    If needed you can add a parent element. This value can also be 0 when no parent is needed.

  • quantity (float)

    The quantity you want to be added.

  • price_field (string)

    A field determining the field the the price is stored. For free elements you can also set the price directly.

  • name_field (string)

    A field determining where the name is stored.

  • description_field (string)

    A field where the description is stored.

  • language (string)

    A valid language - code.

  • country (string)

    A valid country - code.

  • attributes (json-array)

    Additional attributes you want to be stored.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='add_to_cart' \ -d session=A_VALID_SESSION_CODE \ -d id_shopobject=42 \ -d element_type="PRODUCT" \ -d id_parent_element=0 \ -d quantity=1 \ -d price_field="price" \ -d name_field="name" \ -d description_field="short_description" \ -d language="de_DE" \ -d country="DE"


Here we want to insert a cart into the session cart determined by the session-attribute. The product id is 42 and we want the name field to be used as name and the short_description field as description for the cart element. The price is read out of the price - field. Quantity is 1.

Response

                    {
  "object":"cart",
  "creation_date":"2018-08-09 21:16:15",
  "sum":27.9,
  "last_inserted_element_id":498,
  
  
"contents":[
  
      
{
    "type":"PRODUCT",
    "id":498,
    "id_product":42,
    "quantity":1,
    "price":27.9,
    "sum_price":27.9,
    "tax":4.45462,
    "sum_tax":4.45462,
    "name":"Schneehut dunkelblau",
    "description":"Warmer und superweicher Schneehut in dunkelblau",
    "attributes":{
       
                                   "sys_tax":
       
       {
         "name":"sys_tax",
         "value":"0.19"
       }
       
              ,              "sys_tax_calc":
       
       {
         "name":"sys_tax_calc",
         "value":"INC"
       }
       
              ,              "sys_length":
       
       {
         "name":"sys_length",
         "value":"20"
       }
       
              ,              "sys_width":
       
       {
         "name":"sys_width",
         "value":"18"
       }
       
              ,              "sys_height":
       
       {
         "name":"sys_height",
         "value":"25"
       }
       
              ,              "sys_weight":
       
       {
         "name":"sys_weight",
         "value":"0"
       }
       
              ,              "sys_notes":
       
       {
         "name":"sys_notes",
         "value":""
       }
       
       
       
    }
  }







     
  
],
"delivery_costs":{
     "sum":0,
     "positions":[
      
      
       
     ]
}


  
}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<cart>
<creation_date>2018-08-09 21:16:15</creation_date>
<sum>55.8</sum>
<last_inserted_element_id>498</last_inserted_element_id>
<contents>
     <element type="PRODUCT">
 <id>498</id>
 <id_product>42</id_product>
 <quantity>2</quantity>
 <price>27.9</price>
 <sum_price>55.8</sum_price>
 <tax>4.45462</tax>
<sum_tax>8.90924</sum_tax>
<name>Schneehut dunkelblau</name>
<description>Warmer und superweicher Schneehut in dunkelblau</description>
<attributes><attribute name="sys_tax">0.19</attribute><attribute name="sys_tax_calc">INC</attribute><attribute name="sys_length">20</attribute><attribute name="sys_width">18</attribute><attribute name="sys_height">25</attribute><attribute name="sys_weight">0</attribute><attribute name="sys_notes"></attribute></attributes> 
</element>






 
</contents>
<delivery_costs>
<sum>0</sum>
<positions>

</positions>
</delivery_costs>

</cart>

                    

Explanation

creation_dateDate of creation.
sumThe total sum of the cart.
last_inserted_element_idThe id of the last element id which was inserted.
productsSection containing all products in the category.
contentsA section containing all cart elements.
delivery_costsA section containing the calculated delivery costs.

sub_from_cart

Deletes a element from the cart.


Arguments

  • session (string)

    A valid session string.

  • id_element (int)

    A valid element_id. This is the id which is set by the cart, not the id_product.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='sub_from_cart' \ -d session='A_VALID_SESSION_ID' \ -d id_element=A_VALID_ELEMENT_ID \ -d country="DE" \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=1 \ -d needed_attributes='["name","price"]'


Here we delete the element in the cart with the an id that has to be a valid element id.

Response

                    {
  "object":"cart",
  "creation_date":"2018-08-09 21:16:15",
  "sum":27.9,
  
  
"contents":[
  
      
{
    "type":"PRODUCT",
    "id":498,
    "id_product":42,
    "quantity":1,
    "price":27.9,
    "sum_price":27.9,
    "tax":4.45462,
    "sum_tax":13.3639,
    "name":"Schneehut dunkelblau",
    "description":"Warmer und superweicher Schneehut in dunkelblau",
    "attributes":{
       
                                   "sys_tax":
       
       {
         "name":"sys_tax",
         "value":"0.19"
       }
       
              ,              "sys_tax_calc":
       
       {
         "name":"sys_tax_calc",
         "value":"INC"
       }
       
              ,              "sys_length":
       
       {
         "name":"sys_length",
         "value":"20"
       }
       
              ,              "sys_width":
       
       {
         "name":"sys_width",
         "value":"18"
       }
       
              ,              "sys_height":
       
       {
         "name":"sys_height",
         "value":"25"
       }
       
              ,              "sys_weight":
       
       {
         "name":"sys_weight",
         "value":"0"
       }
       
              ,              "sys_notes":
       
       {
         "name":"sys_notes",
         "value":""
       }
       
       
       
    }
  }







     
  
],
"delivery_costs":{
     "sum":0,
     "positions":[
      
      
       
     ]
}


  
}

                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<cart>
<creation_date>2018-08-09 21:16:15</creation_date>
<sum>55.8</sum>
<contents>
     <element type="PRODUCT">
 <id>498</id>
 <id_product>42</id_product>
 <quantity>2</quantity>
 <price>27.9</price>
 <sum_price>55.8</sum_price>
 <tax>4.45462</tax>
<sum_tax>13.3639</sum_tax>
<name>Schneehut dunkelblau</name>
<description>Warmer und superweicher Schneehut in dunkelblau</description>
<attributes><attribute name="sys_tax">0.19</attribute><attribute name="sys_tax_calc">INC</attribute><attribute name="sys_length">20</attribute><attribute name="sys_width">18</attribute><attribute name="sys_height">25</attribute><attribute name="sys_weight">0</attribute><attribute name="sys_notes"></attribute></attributes> 
</element>






 
</contents>
<delivery_costs>
<sum>0</sum>
<positions>

</positions>
</delivery_costs>

</cart>
                    

Explanation

cartDelivers a cart.

get_cart

Delivers the cart and its contents from a given session.


Arguments

  • session (string)

    A valid session.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_cart' \ -d session='A_VALID_SESSION'


Here we are requesting the products in the category with the id:1. We want the products to be listed in german defined by the language - code "de_DE" for the country germany defined by the country - code "DE". Further we want the products to be listed ordered by the price descending. Left - limit is 0 an right - limit is 1 so only 1 product will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {
  "object":"cart",
  "creation_date":"2018-08-09 21:16:15",
  "sum":0,
  
  
"contents":[
  
  
  
],
"delivery_costs":{
     "sum":0,
     "positions":[
      
      
       
     ]
}


  
}


{
  "object":"cart",
  "creation_date":"2018-08-09 21:16:15",
  "sum":0,
  
  
"contents":[
  
  
  
],
"delivery_costs":{
     "sum":0,
     "positions":[
      
      
       
     ]
}


  
}

                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<cart>
<creation_date>2018-08-09 21:16:15</creation_date>
<sum>0</sum>
<contents>
 
</contents>
<delivery_costs>
<sum>0</sum>
<positions>

</positions>
</delivery_costs>

</cart>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<cart>
<creation_date>2018-08-09 21:16:15</creation_date>
<sum>0</sum>
<contents>
 
</contents>
<delivery_costs>
<sum>0</sum>
<positions>

</positions>
</delivery_costs>

</cart>
                    

Explanation

creation_dateThe creation date.
contentsThe contents of the cart.
delivery_costsThe delivery costs section.

register_user

Is used to create user - accounts via API.


Arguments

  • language (string)

    The language of the user.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


The following arguments have to be encoded as a json-array:

  • username (string)

    The unique username of the user. This is a string with the length between 4 and 60 characters containing a-z A-Z 0-9 !@$

  • passwd1 (string)

    A valid password for the user. This is a string with the length between 3 and 30 characters containing a-z A-Z 0-9 !@$

  • passwd2 (string)

    The same as passwd1.

  • email (string)

    A valid email for the user.

  • class (string)

    The class that has to be used for creating the user.


Request

curl https://demo.sleekshop.net/srv/service/ \
-d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \
-d licence_password='s9vmrbwT23B7bmjR4Vmz' \
-d request='register_user' \
-d language='de_DE' \
-d args='{"username":"testuser123",
          "passwd1":"thesecret",
          "passwd2":"thesecret",
          "email":"info@sleekcommerce.com"}'

Here we are trying to create a user with the username testuser123 and the other credentials listed.

Response

                    {
  "object":"register_user",
  "status":"SUCCESS",
  "id_user":26,
  "session_id":"UvZABz5GKvOLtyYPC6wQ"
}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<register_user>
<status>SUCCESS</status>
<id_user>25</id_user>
<session_id>wArDqiDsd9OAGwCdLknH</session_id>
</register_user>
                    

Explanation

statusA statuscode which shows wether the action was successful or not.
id_userThe id of the created user.
session_idThe session_id of the created user which can be used to verify the user.

verify_user

Verification method for the user - accounts.

After a user-account is created the account has to be verified to work properly. If this not happens the user cant login.

Arguments

  • id_user (int)

    The id of the user.

  • session_id (string)

    A valid session-code. Here the session_code has to be used which is generated and transferred after registration by the method register_user.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='verify_user' \ -d id_user=1 \ -d session_id="asddsaasddas"


Here we are requesting the products in the category with the id:1. We want the products to be listed in german defined by the language - code "de_DE" for the country germany defined by the country - code "DE". Further we want the products to be listed ordered by the price descending. Left - limit is 0 an right - limit is 1 so only 1 product will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {
  "object":"verify_user",
  "status":"SUCCESS"
}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<verify_user>
<status>SUCCESS</status>
</verify_user>
                    

Explanation

statusThe status message which indicates wether the action successfull or not.

login_user

This is the method to login exisiting and verified users into a valid session.


Arguments

  • username (string)

    The username of the user that has to be logged in.

  • password (string)

    The valid password of the user.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='login_user' \ -d username='testuser' \ -d password="thesecret123" \ -d session="asddsaasddsa"


Here we try to login with his credentials into an existing session.

Response

                    {
  "object":"login_user",
  "status":"SUCCESS",
  "id_user":1,
  "session_id":"uXu6SddddsdsaqO8UA74qdGZMUDk",
  "username":"root",
  "email":"info@xyz.de",
  "default_language":"de_DE",
  "reg_date":"2016-03-22 11:08:58",
  "first_login":"2016-03-22 11:41:07",
  "last_login":"2018-11-05 15-17-40"
}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<login_user>
<status>SUCCESS</status>
<id_user>1</id_user>
<session_id>uXu6SddddsdsaqO8UA74qdGZMUDk</session_id>
<username>root</username>
<email>info@xyz.de</email>
<default_language>de_DE</default_language>
<reg_date>2016-03-22 11:08:58</reg_date>
<first_login>2016-03-22 11:41:07</first_login>
<last_login>2018-11-05 15-18-46</last_login>
</login_user>
                    

Explanation

statusA status determining wether the action was successful or not.
id_userThe id of the user.
session_idThe session_id of the user.
usernameThe username of the user.
emailThe email of the user.
default_languageThe language code presenting the default language of the user.
reg_dateRegistration date of the user.
first_loginDate of the first login.
last_loginDate of the last login.

logout_user

This method logs - out a user from a session. Because for each session only one user can be logged in, the attribute needed is only a valid session.


Arguments

  • session (string)

    A valid session with a user logged in.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='logout_user' \ -d session="asddsaasd123321s"


Response

                    {
  "object":"logout_user",
  "status":"SUCCESS"
}
                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<logout_user>
<status>SUCCESS</status>
</logout_user>
                    

Explanation

statusA status showing wether the action was successful or not.

set_user_password

Delivers products contained in a category defined by its id.


Arguments

  • id_category (int)

    The id of the category.

  • language (string)

    A valid language-code.

  • country (string)

    A valid country-code.

  • order_column (string)

    The order column.

  • order (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_products_in_category' \ -d id_category=1 \ -d language="de_DE" \ -d country="DE" \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=1 \ -d needed_attributes='["name","price"]'


Here we are requesting the products in the category with the id:1. We want the products to be listed in german defined by the language - code "de_DE" for the country germany defined by the country - code "DE". Further we want the products to be listed ordered by the price descending. Left - limit is 0 an right - limit is 1 so only 1 product will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {"object":"products_in_category",
"category":{
"id":1,
"name":"Start",
"prio":1,
"id_parent":0,
"label":"Start",


"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
"attributes":{
   
   
   
}
},
"products":{
 
  "Schuh blau":
 
{
  "object":"product",
  "id":15,
  "name":"Schuh blau",
  "creation_date":"2016-03-25 14:17:46",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "blaue-laufschuhe-robust",
  "title": "Blaue Laufschuhe mit wasserdichter Oberfläche",
  "description": "Blaue Laufschuhe für Männer",
  "keywords": "blau,Schuhe,Laufschuhe"
}

,
  
"availability":
{
  "quantity": 5,
  "quantity_warning": 3,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":154,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh blau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":157,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
      "Schuh grün":
  
{
  "object":"product",
  "id":17,
  "name":"Schuh grün",
  "creation_date":"2016-03-25 14:24:01",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "gruen-laufschuh-herren",
  "title": "Stylischer Herrenlaufschuh in grün",
  "description": "Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh",
  "keywords": "laufen,schuhe,herren,neu,widerstandsfaehig"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":184,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh gru00fcn"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":187,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


    "Schuh rot":
  
{
  "object":"product",
  "id":18,
  "name":"Schuh rot",
  "creation_date":"2016-03-25 14:25:33",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "laufschuh-sportlich-herren",
  "title": "Modischer Herrenlaufschuh in rot",
  "description": "Robuster und langlebiger Laufschuh für Herren",
  "keywords": "robust,laufen,modisch,maenner,herren"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":199,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh rot"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":202,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


  
    
 }
}


  
 
}
}

                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<products_in_category>
<category>
<id>1</id>
<name>Start</name>
<prio>1</prio>
<id_parent>0</id_parent>
<label>Start</label>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</category>
<products>
<product>
<id>15</id>
<name>Schuh blau</name>
<creation_date>2016-03-25 14:17:46</creation_date>
<class>colorprod</class>
<seo>
<permalink>blaue-laufschuhe-robust</permalink>
<title>Blaue Laufschuhe mit wasserdichter Oberfläche</title>
<description>Blaue Laufschuhe für Männer</description>
<keywords>blau,Schuhe,Laufschuhe</keywords>
</seo>

<availability>
<quantity>5</quantity>
<quantity_warning>3</quantity_warning>
<allow_override>0</allow_override>
<active>1</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="154">
<name>name</name>
<label>Name</label>
<value>Laufschuh blau</value>
</attribute>

<attribute type="FLOAT" id="157">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>
<product>
<id>17</id>
<name>Schuh grün</name>
<creation_date>2016-03-25 14:24:01</creation_date>
<class>colorprod</class>
<seo>
<permalink>gruen-laufschuh-herren</permalink>
<title>Stylischer Herrenlaufschuh in grün</title>
<description>Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh</description>
<keywords>laufen,schuhe,herren,neu,widerstandsfaehig</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="184">
<name>name</name>
<label>Name</label>
<value>Laufschuh grün</value>
</attribute>

<attribute type="FLOAT" id="187">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>18</id>
<name>Schuh rot</name>
<creation_date>2016-03-25 14:25:33</creation_date>
<class>colorprod</class>
<seo>
<permalink>laufschuh-sportlich-herren</permalink>
<title>Modischer Herrenlaufschuh in rot</title>
<description>Robuster und langlebiger Laufschuh für Herren</description>
<keywords>robust,laufen,modisch,maenner,herren</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="199">
<name>name</name>
<label>Name</label>
<value>Laufschuh rot</value>
</attribute>

<attribute type="FLOAT" id="202">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>


</variations>
</product>


</products>
</products_in_category>
                    

Explanation

categorySection containing informations about the category.
productsSection containing all products in the category.

reset_user_password

This function is used to reset the user password.




get_user_orders

Delivers products contained in a category defined by its id.


Arguments

  • id_category (int)

    The id of the category.

  • language (string)

    A valid language-code.

  • country (string)

    A valid country-code.

  • order_column (string)

    The order column.

  • order (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_products_in_category' \ -d id_category=1 \ -d language="de_DE" \ -d country="DE" \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=1 \ -d needed_attributes='["name","price"]'


Here we are requesting the products in the category with the id:1. We want the products to be listed in german defined by the language - code "de_DE" for the country germany defined by the country - code "DE". Further we want the products to be listed ordered by the price descending. Left - limit is 0 an right - limit is 1 so only 1 product will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {"object":"products_in_category",
"category":{
"id":1,
"name":"Start",
"prio":1,
"id_parent":0,
"label":"Start",


"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
"attributes":{
   
   
   
}
},
"products":{
 
  "Schuh blau":
 
{
  "object":"product",
  "id":15,
  "name":"Schuh blau",
  "creation_date":"2016-03-25 14:17:46",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "blaue-laufschuhe-robust",
  "title": "Blaue Laufschuhe mit wasserdichter Oberfläche",
  "description": "Blaue Laufschuhe für Männer",
  "keywords": "blau,Schuhe,Laufschuhe"
}

,
  
"availability":
{
  "quantity": 5,
  "quantity_warning": 3,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":154,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh blau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":157,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
      "Schuh grün":
  
{
  "object":"product",
  "id":17,
  "name":"Schuh grün",
  "creation_date":"2016-03-25 14:24:01",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "gruen-laufschuh-herren",
  "title": "Stylischer Herrenlaufschuh in grün",
  "description": "Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh",
  "keywords": "laufen,schuhe,herren,neu,widerstandsfaehig"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":184,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh gru00fcn"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":187,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


    "Schuh rot":
  
{
  "object":"product",
  "id":18,
  "name":"Schuh rot",
  "creation_date":"2016-03-25 14:25:33",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "laufschuh-sportlich-herren",
  "title": "Modischer Herrenlaufschuh in rot",
  "description": "Robuster und langlebiger Laufschuh für Herren",
  "keywords": "robust,laufen,modisch,maenner,herren"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":199,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh rot"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":202,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


  
    
 }
}


  
 
}
}

                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<products_in_category>
<category>
<id>1</id>
<name>Start</name>
<prio>1</prio>
<id_parent>0</id_parent>
<label>Start</label>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</category>
<products>
<product>
<id>15</id>
<name>Schuh blau</name>
<creation_date>2016-03-25 14:17:46</creation_date>
<class>colorprod</class>
<seo>
<permalink>blaue-laufschuhe-robust</permalink>
<title>Blaue Laufschuhe mit wasserdichter Oberfläche</title>
<description>Blaue Laufschuhe für Männer</description>
<keywords>blau,Schuhe,Laufschuhe</keywords>
</seo>

<availability>
<quantity>5</quantity>
<quantity_warning>3</quantity_warning>
<allow_override>0</allow_override>
<active>1</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="154">
<name>name</name>
<label>Name</label>
<value>Laufschuh blau</value>
</attribute>

<attribute type="FLOAT" id="157">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>
<product>
<id>17</id>
<name>Schuh grün</name>
<creation_date>2016-03-25 14:24:01</creation_date>
<class>colorprod</class>
<seo>
<permalink>gruen-laufschuh-herren</permalink>
<title>Stylischer Herrenlaufschuh in grün</title>
<description>Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh</description>
<keywords>laufen,schuhe,herren,neu,widerstandsfaehig</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="184">
<name>name</name>
<label>Name</label>
<value>Laufschuh grün</value>
</attribute>

<attribute type="FLOAT" id="187">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>18</id>
<name>Schuh rot</name>
<creation_date>2016-03-25 14:25:33</creation_date>
<class>colorprod</class>
<seo>
<permalink>laufschuh-sportlich-herren</permalink>
<title>Modischer Herrenlaufschuh in rot</title>
<description>Robuster und langlebiger Laufschuh für Herren</description>
<keywords>robust,laufen,modisch,maenner,herren</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="199">
<name>name</name>
<label>Name</label>
<value>Laufschuh rot</value>
</attribute>

<attribute type="FLOAT" id="202">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>


</variations>
</product>


</products>
</products_in_category>
                    

Explanation

categorySection containing informations about the category.
productsSection containing all products in the category.

get_user_data

Delivers products contained in a category defined by its id.


Arguments

  • id_category (int)

    The id of the category.

  • language (string)

    A valid language-code.

  • country (string)

    A valid country-code.

  • order_column (string)

    The order column.

  • order (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_products_in_category' \ -d id_category=1 \ -d language="de_DE" \ -d country="DE" \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=1 \ -d needed_attributes='["name","price"]'


Here we are requesting the products in the category with the id:1. We want the products to be listed in german defined by the language - code "de_DE" for the country germany defined by the country - code "DE". Further we want the products to be listed ordered by the price descending. Left - limit is 0 an right - limit is 1 so only 1 product will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {"object":"products_in_category",
"category":{
"id":1,
"name":"Start",
"prio":1,
"id_parent":0,
"label":"Start",


"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
"attributes":{
   
   
   
}
},
"products":{
 
  "Schuh blau":
 
{
  "object":"product",
  "id":15,
  "name":"Schuh blau",
  "creation_date":"2016-03-25 14:17:46",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "blaue-laufschuhe-robust",
  "title": "Blaue Laufschuhe mit wasserdichter Oberfläche",
  "description": "Blaue Laufschuhe für Männer",
  "keywords": "blau,Schuhe,Laufschuhe"
}

,
  
"availability":
{
  "quantity": 5,
  "quantity_warning": 3,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":154,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh blau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":157,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
      "Schuh grün":
  
{
  "object":"product",
  "id":17,
  "name":"Schuh grün",
  "creation_date":"2016-03-25 14:24:01",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "gruen-laufschuh-herren",
  "title": "Stylischer Herrenlaufschuh in grün",
  "description": "Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh",
  "keywords": "laufen,schuhe,herren,neu,widerstandsfaehig"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":184,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh gru00fcn"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":187,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


    "Schuh rot":
  
{
  "object":"product",
  "id":18,
  "name":"Schuh rot",
  "creation_date":"2016-03-25 14:25:33",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "laufschuh-sportlich-herren",
  "title": "Modischer Herrenlaufschuh in rot",
  "description": "Robuster und langlebiger Laufschuh für Herren",
  "keywords": "robust,laufen,modisch,maenner,herren"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":199,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh rot"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":202,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


  
    
 }
}


  
 
}
}

                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<products_in_category>
<category>
<id>1</id>
<name>Start</name>
<prio>1</prio>
<id_parent>0</id_parent>
<label>Start</label>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</category>
<products>
<product>
<id>15</id>
<name>Schuh blau</name>
<creation_date>2016-03-25 14:17:46</creation_date>
<class>colorprod</class>
<seo>
<permalink>blaue-laufschuhe-robust</permalink>
<title>Blaue Laufschuhe mit wasserdichter Oberfläche</title>
<description>Blaue Laufschuhe für Männer</description>
<keywords>blau,Schuhe,Laufschuhe</keywords>
</seo>

<availability>
<quantity>5</quantity>
<quantity_warning>3</quantity_warning>
<allow_override>0</allow_override>
<active>1</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="154">
<name>name</name>
<label>Name</label>
<value>Laufschuh blau</value>
</attribute>

<attribute type="FLOAT" id="157">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>
<product>
<id>17</id>
<name>Schuh grün</name>
<creation_date>2016-03-25 14:24:01</creation_date>
<class>colorprod</class>
<seo>
<permalink>gruen-laufschuh-herren</permalink>
<title>Stylischer Herrenlaufschuh in grün</title>
<description>Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh</description>
<keywords>laufen,schuhe,herren,neu,widerstandsfaehig</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="184">
<name>name</name>
<label>Name</label>
<value>Laufschuh grün</value>
</attribute>

<attribute type="FLOAT" id="187">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>18</id>
<name>Schuh rot</name>
<creation_date>2016-03-25 14:25:33</creation_date>
<class>colorprod</class>
<seo>
<permalink>laufschuh-sportlich-herren</permalink>
<title>Modischer Herrenlaufschuh in rot</title>
<description>Robuster und langlebiger Laufschuh für Herren</description>
<keywords>robust,laufen,modisch,maenner,herren</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="199">
<name>name</name>
<label>Name</label>
<value>Laufschuh rot</value>
</attribute>

<attribute type="FLOAT" id="202">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>


</variations>
</product>


</products>
</products_in_category>
                    

Explanation

categorySection containing informations about the category.
productsSection containing all products in the category.

set_user_data

Delivers products contained in a category defined by its id.


Arguments

  • id_category (int)

    The id of the category.

  • language (string)

    A valid language-code.

  • country (string)

    A valid country-code.

  • order_column (string)

    The order column.

  • order (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_products_in_category' \ -d id_category=1 \ -d language="de_DE" \ -d country="DE" \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=1 \ -d needed_attributes='["name","price"]'


Here we are requesting the products in the category with the id:1. We want the products to be listed in german defined by the language - code "de_DE" for the country germany defined by the country - code "DE". Further we want the products to be listed ordered by the price descending. Left - limit is 0 an right - limit is 1 so only 1 product will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {"object":"products_in_category",
"category":{
"id":1,
"name":"Start",
"prio":1,
"id_parent":0,
"label":"Start",


"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
"attributes":{
   
   
   
}
},
"products":{
 
  "Schuh blau":
 
{
  "object":"product",
  "id":15,
  "name":"Schuh blau",
  "creation_date":"2016-03-25 14:17:46",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "blaue-laufschuhe-robust",
  "title": "Blaue Laufschuhe mit wasserdichter Oberfläche",
  "description": "Blaue Laufschuhe für Männer",
  "keywords": "blau,Schuhe,Laufschuhe"
}

,
  
"availability":
{
  "quantity": 5,
  "quantity_warning": 3,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":154,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh blau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":157,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
      "Schuh grün":
  
{
  "object":"product",
  "id":17,
  "name":"Schuh grün",
  "creation_date":"2016-03-25 14:24:01",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "gruen-laufschuh-herren",
  "title": "Stylischer Herrenlaufschuh in grün",
  "description": "Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh",
  "keywords": "laufen,schuhe,herren,neu,widerstandsfaehig"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":184,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh gru00fcn"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":187,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


    "Schuh rot":
  
{
  "object":"product",
  "id":18,
  "name":"Schuh rot",
  "creation_date":"2016-03-25 14:25:33",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "laufschuh-sportlich-herren",
  "title": "Modischer Herrenlaufschuh in rot",
  "description": "Robuster und langlebiger Laufschuh für Herren",
  "keywords": "robust,laufen,modisch,maenner,herren"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":199,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh rot"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":202,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


  
    
 }
}


  
 
}
}

                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<products_in_category>
<category>
<id>1</id>
<name>Start</name>
<prio>1</prio>
<id_parent>0</id_parent>
<label>Start</label>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</category>
<products>
<product>
<id>15</id>
<name>Schuh blau</name>
<creation_date>2016-03-25 14:17:46</creation_date>
<class>colorprod</class>
<seo>
<permalink>blaue-laufschuhe-robust</permalink>
<title>Blaue Laufschuhe mit wasserdichter Oberfläche</title>
<description>Blaue Laufschuhe für Männer</description>
<keywords>blau,Schuhe,Laufschuhe</keywords>
</seo>

<availability>
<quantity>5</quantity>
<quantity_warning>3</quantity_warning>
<allow_override>0</allow_override>
<active>1</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="154">
<name>name</name>
<label>Name</label>
<value>Laufschuh blau</value>
</attribute>

<attribute type="FLOAT" id="157">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>
<product>
<id>17</id>
<name>Schuh grün</name>
<creation_date>2016-03-25 14:24:01</creation_date>
<class>colorprod</class>
<seo>
<permalink>gruen-laufschuh-herren</permalink>
<title>Stylischer Herrenlaufschuh in grün</title>
<description>Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh</description>
<keywords>laufen,schuhe,herren,neu,widerstandsfaehig</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="184">
<name>name</name>
<label>Name</label>
<value>Laufschuh grün</value>
</attribute>

<attribute type="FLOAT" id="187">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>18</id>
<name>Schuh rot</name>
<creation_date>2016-03-25 14:25:33</creation_date>
<class>colorprod</class>
<seo>
<permalink>laufschuh-sportlich-herren</permalink>
<title>Modischer Herrenlaufschuh in rot</title>
<description>Robuster und langlebiger Laufschuh für Herren</description>
<keywords>robust,laufen,modisch,maenner,herren</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="199">
<name>name</name>
<label>Name</label>
<value>Laufschuh rot</value>
</attribute>

<attribute type="FLOAT" id="202">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>


</variations>
</product>


</products>
</products_in_category>
                    

Explanation

categorySection containing informations about the category.
productsSection containing all products in the category.

set_order_details

Delivers products contained in a category defined by its id.


Arguments

  • id_category (int)

    The id of the category.

  • language (string)

    A valid language-code.

  • country (string)

    A valid country-code.

  • order_column (string)

    The order column.

  • order (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_products_in_category' \ -d id_category=1 \ -d language="de_DE" \ -d country="DE" \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=1 \ -d needed_attributes='["name","price"]'


Here we are requesting the products in the category with the id:1. We want the products to be listed in german defined by the language - code "de_DE" for the country germany defined by the country - code "DE". Further we want the products to be listed ordered by the price descending. Left - limit is 0 an right - limit is 1 so only 1 product will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {"object":"products_in_category",
"category":{
"id":1,
"name":"Start",
"prio":1,
"id_parent":0,
"label":"Start",


"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
"attributes":{
   
   
   
}
},
"products":{
 
  "Schuh blau":
 
{
  "object":"product",
  "id":15,
  "name":"Schuh blau",
  "creation_date":"2016-03-25 14:17:46",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "blaue-laufschuhe-robust",
  "title": "Blaue Laufschuhe mit wasserdichter Oberfläche",
  "description": "Blaue Laufschuhe für Männer",
  "keywords": "blau,Schuhe,Laufschuhe"
}

,
  
"availability":
{
  "quantity": 5,
  "quantity_warning": 3,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":154,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh blau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":157,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
      "Schuh grün":
  
{
  "object":"product",
  "id":17,
  "name":"Schuh grün",
  "creation_date":"2016-03-25 14:24:01",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "gruen-laufschuh-herren",
  "title": "Stylischer Herrenlaufschuh in grün",
  "description": "Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh",
  "keywords": "laufen,schuhe,herren,neu,widerstandsfaehig"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":184,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh gru00fcn"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":187,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


    "Schuh rot":
  
{
  "object":"product",
  "id":18,
  "name":"Schuh rot",
  "creation_date":"2016-03-25 14:25:33",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "laufschuh-sportlich-herren",
  "title": "Modischer Herrenlaufschuh in rot",
  "description": "Robuster und langlebiger Laufschuh für Herren",
  "keywords": "robust,laufen,modisch,maenner,herren"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":199,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh rot"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":202,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


  
    
 }
}


  
 
}
}

                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<products_in_category>
<category>
<id>1</id>
<name>Start</name>
<prio>1</prio>
<id_parent>0</id_parent>
<label>Start</label>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</category>
<products>
<product>
<id>15</id>
<name>Schuh blau</name>
<creation_date>2016-03-25 14:17:46</creation_date>
<class>colorprod</class>
<seo>
<permalink>blaue-laufschuhe-robust</permalink>
<title>Blaue Laufschuhe mit wasserdichter Oberfläche</title>
<description>Blaue Laufschuhe für Männer</description>
<keywords>blau,Schuhe,Laufschuhe</keywords>
</seo>

<availability>
<quantity>5</quantity>
<quantity_warning>3</quantity_warning>
<allow_override>0</allow_override>
<active>1</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="154">
<name>name</name>
<label>Name</label>
<value>Laufschuh blau</value>
</attribute>

<attribute type="FLOAT" id="157">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>
<product>
<id>17</id>
<name>Schuh grün</name>
<creation_date>2016-03-25 14:24:01</creation_date>
<class>colorprod</class>
<seo>
<permalink>gruen-laufschuh-herren</permalink>
<title>Stylischer Herrenlaufschuh in grün</title>
<description>Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh</description>
<keywords>laufen,schuhe,herren,neu,widerstandsfaehig</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="184">
<name>name</name>
<label>Name</label>
<value>Laufschuh grün</value>
</attribute>

<attribute type="FLOAT" id="187">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>18</id>
<name>Schuh rot</name>
<creation_date>2016-03-25 14:25:33</creation_date>
<class>colorprod</class>
<seo>
<permalink>laufschuh-sportlich-herren</permalink>
<title>Modischer Herrenlaufschuh in rot</title>
<description>Robuster und langlebiger Laufschuh für Herren</description>
<keywords>robust,laufen,modisch,maenner,herren</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="199">
<name>name</name>
<label>Name</label>
<value>Laufschuh rot</value>
</attribute>

<attribute type="FLOAT" id="202">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>


</variations>
</product>


</products>
</products_in_category>
                    

Explanation

categorySection containing informations about the category.
productsSection containing all products in the category.

get_order_details

Delivers products contained in a category defined by its id.


Arguments

  • id_category (int)

    The id of the category.

  • language (string)

    A valid language-code.

  • country (string)

    A valid country-code.

  • order_column (string)

    The order column.

  • order (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_products_in_category' \ -d id_category=1 \ -d language="de_DE" \ -d country="DE" \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=1 \ -d needed_attributes='["name","price"]'


Here we are requesting the products in the category with the id:1. We want the products to be listed in german defined by the language - code "de_DE" for the country germany defined by the country - code "DE". Further we want the products to be listed ordered by the price descending. Left - limit is 0 an right - limit is 1 so only 1 product will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {"object":"products_in_category",
"category":{
"id":1,
"name":"Start",
"prio":1,
"id_parent":0,
"label":"Start",


"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
"attributes":{
   
   
   
}
},
"products":{
 
  "Schuh blau":
 
{
  "object":"product",
  "id":15,
  "name":"Schuh blau",
  "creation_date":"2016-03-25 14:17:46",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "blaue-laufschuhe-robust",
  "title": "Blaue Laufschuhe mit wasserdichter Oberfläche",
  "description": "Blaue Laufschuhe für Männer",
  "keywords": "blau,Schuhe,Laufschuhe"
}

,
  
"availability":
{
  "quantity": 5,
  "quantity_warning": 3,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":154,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh blau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":157,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
      "Schuh grün":
  
{
  "object":"product",
  "id":17,
  "name":"Schuh grün",
  "creation_date":"2016-03-25 14:24:01",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "gruen-laufschuh-herren",
  "title": "Stylischer Herrenlaufschuh in grün",
  "description": "Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh",
  "keywords": "laufen,schuhe,herren,neu,widerstandsfaehig"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":184,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh gru00fcn"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":187,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


    "Schuh rot":
  
{
  "object":"product",
  "id":18,
  "name":"Schuh rot",
  "creation_date":"2016-03-25 14:25:33",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "laufschuh-sportlich-herren",
  "title": "Modischer Herrenlaufschuh in rot",
  "description": "Robuster und langlebiger Laufschuh für Herren",
  "keywords": "robust,laufen,modisch,maenner,herren"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":199,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh rot"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":202,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


  
    
 }
}


  
 
}
}

                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<products_in_category>
<category>
<id>1</id>
<name>Start</name>
<prio>1</prio>
<id_parent>0</id_parent>
<label>Start</label>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</category>
<products>
<product>
<id>15</id>
<name>Schuh blau</name>
<creation_date>2016-03-25 14:17:46</creation_date>
<class>colorprod</class>
<seo>
<permalink>blaue-laufschuhe-robust</permalink>
<title>Blaue Laufschuhe mit wasserdichter Oberfläche</title>
<description>Blaue Laufschuhe für Männer</description>
<keywords>blau,Schuhe,Laufschuhe</keywords>
</seo>

<availability>
<quantity>5</quantity>
<quantity_warning>3</quantity_warning>
<allow_override>0</allow_override>
<active>1</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="154">
<name>name</name>
<label>Name</label>
<value>Laufschuh blau</value>
</attribute>

<attribute type="FLOAT" id="157">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>
<product>
<id>17</id>
<name>Schuh grün</name>
<creation_date>2016-03-25 14:24:01</creation_date>
<class>colorprod</class>
<seo>
<permalink>gruen-laufschuh-herren</permalink>
<title>Stylischer Herrenlaufschuh in grün</title>
<description>Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh</description>
<keywords>laufen,schuhe,herren,neu,widerstandsfaehig</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="184">
<name>name</name>
<label>Name</label>
<value>Laufschuh grün</value>
</attribute>

<attribute type="FLOAT" id="187">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>18</id>
<name>Schuh rot</name>
<creation_date>2016-03-25 14:25:33</creation_date>
<class>colorprod</class>
<seo>
<permalink>laufschuh-sportlich-herren</permalink>
<title>Modischer Herrenlaufschuh in rot</title>
<description>Robuster und langlebiger Laufschuh für Herren</description>
<keywords>robust,laufen,modisch,maenner,herren</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="199">
<name>name</name>
<label>Name</label>
<value>Laufschuh rot</value>
</attribute>

<attribute type="FLOAT" id="202">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>


</variations>
</product>


</products>
</products_in_category>
                    

Explanation

categorySection containing informations about the category.
productsSection containing all products in the category.

checkout

Delivers products contained in a category defined by its id.


Arguments

  • id_category (int)

    The id of the category.

  • language (string)

    A valid language-code.

  • country (string)

    A valid country-code.

  • order_column (string)

    The order column.

  • order (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_products_in_category' \ -d id_category=1 \ -d language="de_DE" \ -d country="DE" \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=1 \ -d needed_attributes='["name","price"]'


Here we are requesting the products in the category with the id:1. We want the products to be listed in german defined by the language - code "de_DE" for the country germany defined by the country - code "DE". Further we want the products to be listed ordered by the price descending. Left - limit is 0 an right - limit is 1 so only 1 product will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {"object":"products_in_category",
"category":{
"id":1,
"name":"Start",
"prio":1,
"id_parent":0,
"label":"Start",


"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
"attributes":{
   
   
   
}
},
"products":{
 
  "Schuh blau":
 
{
  "object":"product",
  "id":15,
  "name":"Schuh blau",
  "creation_date":"2016-03-25 14:17:46",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "blaue-laufschuhe-robust",
  "title": "Blaue Laufschuhe mit wasserdichter Oberfläche",
  "description": "Blaue Laufschuhe für Männer",
  "keywords": "blau,Schuhe,Laufschuhe"
}

,
  
"availability":
{
  "quantity": 5,
  "quantity_warning": 3,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":154,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh blau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":157,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
      "Schuh grün":
  
{
  "object":"product",
  "id":17,
  "name":"Schuh grün",
  "creation_date":"2016-03-25 14:24:01",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "gruen-laufschuh-herren",
  "title": "Stylischer Herrenlaufschuh in grün",
  "description": "Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh",
  "keywords": "laufen,schuhe,herren,neu,widerstandsfaehig"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":184,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh gru00fcn"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":187,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


    "Schuh rot":
  
{
  "object":"product",
  "id":18,
  "name":"Schuh rot",
  "creation_date":"2016-03-25 14:25:33",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "laufschuh-sportlich-herren",
  "title": "Modischer Herrenlaufschuh in rot",
  "description": "Robuster und langlebiger Laufschuh für Herren",
  "keywords": "robust,laufen,modisch,maenner,herren"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":199,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh rot"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":202,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


  
    
 }
}


  
 
}
}

                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<products_in_category>
<category>
<id>1</id>
<name>Start</name>
<prio>1</prio>
<id_parent>0</id_parent>
<label>Start</label>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</category>
<products>
<product>
<id>15</id>
<name>Schuh blau</name>
<creation_date>2016-03-25 14:17:46</creation_date>
<class>colorprod</class>
<seo>
<permalink>blaue-laufschuhe-robust</permalink>
<title>Blaue Laufschuhe mit wasserdichter Oberfläche</title>
<description>Blaue Laufschuhe für Männer</description>
<keywords>blau,Schuhe,Laufschuhe</keywords>
</seo>

<availability>
<quantity>5</quantity>
<quantity_warning>3</quantity_warning>
<allow_override>0</allow_override>
<active>1</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="154">
<name>name</name>
<label>Name</label>
<value>Laufschuh blau</value>
</attribute>

<attribute type="FLOAT" id="157">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>
<product>
<id>17</id>
<name>Schuh grün</name>
<creation_date>2016-03-25 14:24:01</creation_date>
<class>colorprod</class>
<seo>
<permalink>gruen-laufschuh-herren</permalink>
<title>Stylischer Herrenlaufschuh in grün</title>
<description>Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh</description>
<keywords>laufen,schuhe,herren,neu,widerstandsfaehig</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="184">
<name>name</name>
<label>Name</label>
<value>Laufschuh grün</value>
</attribute>

<attribute type="FLOAT" id="187">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>18</id>
<name>Schuh rot</name>
<creation_date>2016-03-25 14:25:33</creation_date>
<class>colorprod</class>
<seo>
<permalink>laufschuh-sportlich-herren</permalink>
<title>Modischer Herrenlaufschuh in rot</title>
<description>Robuster und langlebiger Laufschuh für Herren</description>
<keywords>robust,laufen,modisch,maenner,herren</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="199">
<name>name</name>
<label>Name</label>
<value>Laufschuh rot</value>
</attribute>

<attribute type="FLOAT" id="202">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>


</variations>
</product>


</products>
</products_in_category>
                    

Explanation

categorySection containing informations about the category.
productsSection containing all products in the category.

get_payment_methods

Delivers products contained in a category defined by its id.


Arguments

  • id_category (int)

    The id of the category.

  • language (string)

    A valid language-code.

  • country (string)

    A valid country-code.

  • order_column (string)

    The order column.

  • order (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_products_in_category' \ -d id_category=1 \ -d language="de_DE" \ -d country="DE" \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=1 \ -d needed_attributes='["name","price"]'


Here we are requesting the products in the category with the id:1. We want the products to be listed in german defined by the language - code "de_DE" for the country germany defined by the country - code "DE". Further we want the products to be listed ordered by the price descending. Left - limit is 0 an right - limit is 1 so only 1 product will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {"object":"products_in_category",
"category":{
"id":1,
"name":"Start",
"prio":1,
"id_parent":0,
"label":"Start",


"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
"attributes":{
   
   
   
}
},
"products":{
 
  "Schuh blau":
 
{
  "object":"product",
  "id":15,
  "name":"Schuh blau",
  "creation_date":"2016-03-25 14:17:46",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "blaue-laufschuhe-robust",
  "title": "Blaue Laufschuhe mit wasserdichter Oberfläche",
  "description": "Blaue Laufschuhe für Männer",
  "keywords": "blau,Schuhe,Laufschuhe"
}

,
  
"availability":
{
  "quantity": 5,
  "quantity_warning": 3,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":154,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh blau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":157,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
      "Schuh grün":
  
{
  "object":"product",
  "id":17,
  "name":"Schuh grün",
  "creation_date":"2016-03-25 14:24:01",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "gruen-laufschuh-herren",
  "title": "Stylischer Herrenlaufschuh in grün",
  "description": "Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh",
  "keywords": "laufen,schuhe,herren,neu,widerstandsfaehig"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":184,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh gru00fcn"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":187,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


    "Schuh rot":
  
{
  "object":"product",
  "id":18,
  "name":"Schuh rot",
  "creation_date":"2016-03-25 14:25:33",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "laufschuh-sportlich-herren",
  "title": "Modischer Herrenlaufschuh in rot",
  "description": "Robuster und langlebiger Laufschuh für Herren",
  "keywords": "robust,laufen,modisch,maenner,herren"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":199,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh rot"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":202,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


  
    
 }
}


  
 
}
}

                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<products_in_category>
<category>
<id>1</id>
<name>Start</name>
<prio>1</prio>
<id_parent>0</id_parent>
<label>Start</label>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</category>
<products>
<product>
<id>15</id>
<name>Schuh blau</name>
<creation_date>2016-03-25 14:17:46</creation_date>
<class>colorprod</class>
<seo>
<permalink>blaue-laufschuhe-robust</permalink>
<title>Blaue Laufschuhe mit wasserdichter Oberfläche</title>
<description>Blaue Laufschuhe für Männer</description>
<keywords>blau,Schuhe,Laufschuhe</keywords>
</seo>

<availability>
<quantity>5</quantity>
<quantity_warning>3</quantity_warning>
<allow_override>0</allow_override>
<active>1</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="154">
<name>name</name>
<label>Name</label>
<value>Laufschuh blau</value>
</attribute>

<attribute type="FLOAT" id="157">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>
<product>
<id>17</id>
<name>Schuh grün</name>
<creation_date>2016-03-25 14:24:01</creation_date>
<class>colorprod</class>
<seo>
<permalink>gruen-laufschuh-herren</permalink>
<title>Stylischer Herrenlaufschuh in grün</title>
<description>Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh</description>
<keywords>laufen,schuhe,herren,neu,widerstandsfaehig</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="184">
<name>name</name>
<label>Name</label>
<value>Laufschuh grün</value>
</attribute>

<attribute type="FLOAT" id="187">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>18</id>
<name>Schuh rot</name>
<creation_date>2016-03-25 14:25:33</creation_date>
<class>colorprod</class>
<seo>
<permalink>laufschuh-sportlich-herren</permalink>
<title>Modischer Herrenlaufschuh in rot</title>
<description>Robuster und langlebiger Laufschuh für Herren</description>
<keywords>robust,laufen,modisch,maenner,herren</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="199">
<name>name</name>
<label>Name</label>
<value>Laufschuh rot</value>
</attribute>

<attribute type="FLOAT" id="202">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>


</variations>
</product>


</products>
</products_in_category>
                    

Explanation

categorySection containing informations about the category.
productsSection containing all products in the category.

do_payment

Delivers products contained in a category defined by its id.


Arguments

  • id_category (int)

    The id of the category.

  • language (string)

    A valid language-code.

  • country (string)

    A valid country-code.

  • order_column (string)

    The order column.

  • order (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_products_in_category' \ -d id_category=1 \ -d language="de_DE" \ -d country="DE" \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=1 \ -d needed_attributes='["name","price"]'


Here we are requesting the products in the category with the id:1. We want the products to be listed in german defined by the language - code "de_DE" for the country germany defined by the country - code "DE". Further we want the products to be listed ordered by the price descending. Left - limit is 0 an right - limit is 1 so only 1 product will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {"object":"products_in_category",
"category":{
"id":1,
"name":"Start",
"prio":1,
"id_parent":0,
"label":"Start",


"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
"attributes":{
   
   
   
}
},
"products":{
 
  "Schuh blau":
 
{
  "object":"product",
  "id":15,
  "name":"Schuh blau",
  "creation_date":"2016-03-25 14:17:46",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "blaue-laufschuhe-robust",
  "title": "Blaue Laufschuhe mit wasserdichter Oberfläche",
  "description": "Blaue Laufschuhe für Männer",
  "keywords": "blau,Schuhe,Laufschuhe"
}

,
  
"availability":
{
  "quantity": 5,
  "quantity_warning": 3,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":154,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh blau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":157,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
      "Schuh grün":
  
{
  "object":"product",
  "id":17,
  "name":"Schuh grün",
  "creation_date":"2016-03-25 14:24:01",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "gruen-laufschuh-herren",
  "title": "Stylischer Herrenlaufschuh in grün",
  "description": "Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh",
  "keywords": "laufen,schuhe,herren,neu,widerstandsfaehig"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":184,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh gru00fcn"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":187,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


    "Schuh rot":
  
{
  "object":"product",
  "id":18,
  "name":"Schuh rot",
  "creation_date":"2016-03-25 14:25:33",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "laufschuh-sportlich-herren",
  "title": "Modischer Herrenlaufschuh in rot",
  "description": "Robuster und langlebiger Laufschuh für Herren",
  "keywords": "robust,laufen,modisch,maenner,herren"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":199,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh rot"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":202,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


  
    
 }
}


  
 
}
}

                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<products_in_category>
<category>
<id>1</id>
<name>Start</name>
<prio>1</prio>
<id_parent>0</id_parent>
<label>Start</label>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</category>
<products>
<product>
<id>15</id>
<name>Schuh blau</name>
<creation_date>2016-03-25 14:17:46</creation_date>
<class>colorprod</class>
<seo>
<permalink>blaue-laufschuhe-robust</permalink>
<title>Blaue Laufschuhe mit wasserdichter Oberfläche</title>
<description>Blaue Laufschuhe für Männer</description>
<keywords>blau,Schuhe,Laufschuhe</keywords>
</seo>

<availability>
<quantity>5</quantity>
<quantity_warning>3</quantity_warning>
<allow_override>0</allow_override>
<active>1</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="154">
<name>name</name>
<label>Name</label>
<value>Laufschuh blau</value>
</attribute>

<attribute type="FLOAT" id="157">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>
<product>
<id>17</id>
<name>Schuh grün</name>
<creation_date>2016-03-25 14:24:01</creation_date>
<class>colorprod</class>
<seo>
<permalink>gruen-laufschuh-herren</permalink>
<title>Stylischer Herrenlaufschuh in grün</title>
<description>Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh</description>
<keywords>laufen,schuhe,herren,neu,widerstandsfaehig</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="184">
<name>name</name>
<label>Name</label>
<value>Laufschuh grün</value>
</attribute>

<attribute type="FLOAT" id="187">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>18</id>
<name>Schuh rot</name>
<creation_date>2016-03-25 14:25:33</creation_date>
<class>colorprod</class>
<seo>
<permalink>laufschuh-sportlich-herren</permalink>
<title>Modischer Herrenlaufschuh in rot</title>
<description>Robuster und langlebiger Laufschuh für Herren</description>
<keywords>robust,laufen,modisch,maenner,herren</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="199">
<name>name</name>
<label>Name</label>
<value>Laufschuh rot</value>
</attribute>

<attribute type="FLOAT" id="202">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>


</variations>
</product>


</products>
</products_in_category>
                    

Explanation

categorySection containing informations about the category.
productsSection containing all products in the category.

add_delivery_costs

Delivers products contained in a category defined by its id.


Arguments

  • id_category (int)

    The id of the category.

  • language (string)

    A valid language-code.

  • country (string)

    A valid country-code.

  • order_column (string)

    The order column.

  • order (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_products_in_category' \ -d id_category=1 \ -d language="de_DE" \ -d country="DE" \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=1 \ -d needed_attributes='["name","price"]'


Here we are requesting the products in the category with the id:1. We want the products to be listed in german defined by the language - code "de_DE" for the country germany defined by the country - code "DE". Further we want the products to be listed ordered by the price descending. Left - limit is 0 an right - limit is 1 so only 1 product will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {"object":"products_in_category",
"category":{
"id":1,
"name":"Start",
"prio":1,
"id_parent":0,
"label":"Start",


"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
"attributes":{
   
   
   
}
},
"products":{
 
  "Schuh blau":
 
{
  "object":"product",
  "id":15,
  "name":"Schuh blau",
  "creation_date":"2016-03-25 14:17:46",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "blaue-laufschuhe-robust",
  "title": "Blaue Laufschuhe mit wasserdichter Oberfläche",
  "description": "Blaue Laufschuhe für Männer",
  "keywords": "blau,Schuhe,Laufschuhe"
}

,
  
"availability":
{
  "quantity": 5,
  "quantity_warning": 3,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":154,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh blau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":157,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
      "Schuh grün":
  
{
  "object":"product",
  "id":17,
  "name":"Schuh grün",
  "creation_date":"2016-03-25 14:24:01",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "gruen-laufschuh-herren",
  "title": "Stylischer Herrenlaufschuh in grün",
  "description": "Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh",
  "keywords": "laufen,schuhe,herren,neu,widerstandsfaehig"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":184,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh gru00fcn"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":187,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


    "Schuh rot":
  
{
  "object":"product",
  "id":18,
  "name":"Schuh rot",
  "creation_date":"2016-03-25 14:25:33",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "laufschuh-sportlich-herren",
  "title": "Modischer Herrenlaufschuh in rot",
  "description": "Robuster und langlebiger Laufschuh für Herren",
  "keywords": "robust,laufen,modisch,maenner,herren"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":199,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh rot"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":202,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


  
    
 }
}


  
 
}
}

                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<products_in_category>
<category>
<id>1</id>
<name>Start</name>
<prio>1</prio>
<id_parent>0</id_parent>
<label>Start</label>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</category>
<products>
<product>
<id>15</id>
<name>Schuh blau</name>
<creation_date>2016-03-25 14:17:46</creation_date>
<class>colorprod</class>
<seo>
<permalink>blaue-laufschuhe-robust</permalink>
<title>Blaue Laufschuhe mit wasserdichter Oberfläche</title>
<description>Blaue Laufschuhe für Männer</description>
<keywords>blau,Schuhe,Laufschuhe</keywords>
</seo>

<availability>
<quantity>5</quantity>
<quantity_warning>3</quantity_warning>
<allow_override>0</allow_override>
<active>1</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="154">
<name>name</name>
<label>Name</label>
<value>Laufschuh blau</value>
</attribute>

<attribute type="FLOAT" id="157">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>
<product>
<id>17</id>
<name>Schuh grün</name>
<creation_date>2016-03-25 14:24:01</creation_date>
<class>colorprod</class>
<seo>
<permalink>gruen-laufschuh-herren</permalink>
<title>Stylischer Herrenlaufschuh in grün</title>
<description>Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh</description>
<keywords>laufen,schuhe,herren,neu,widerstandsfaehig</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="184">
<name>name</name>
<label>Name</label>
<value>Laufschuh grün</value>
</attribute>

<attribute type="FLOAT" id="187">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>18</id>
<name>Schuh rot</name>
<creation_date>2016-03-25 14:25:33</creation_date>
<class>colorprod</class>
<seo>
<permalink>laufschuh-sportlich-herren</permalink>
<title>Modischer Herrenlaufschuh in rot</title>
<description>Robuster und langlebiger Laufschuh für Herren</description>
<keywords>robust,laufen,modisch,maenner,herren</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="199">
<name>name</name>
<label>Name</label>
<value>Laufschuh rot</value>
</attribute>

<attribute type="FLOAT" id="202">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>


</variations>
</product>


</products>
</products_in_category>
                    

Explanation

categorySection containing informations about the category.
productsSection containing all products in the category.

aggregate

Delivers products contained in a category defined by its id.


Arguments

  • id_category (int)

    The id of the category.

  • language (string)

    A valid language-code.

  • country (string)

    A valid country-code.

  • order_column (string)

    The order column.

  • order (string)

    The order of sorting, valid values are ASC (ascending) or DESC (descending).

  • left_limit (int)

    The left limit of your selection.

  • right_limit (int)

    The right limit of your selection.

  • needed_attributes (json-array)

    This arrays specifies a selection of attributes you want to be listed.

  • licence_username (string)

    Your licence - username.

  • licence_password (string)

    Your licence - password.


Request

curl https://demo.sleekshop.net/srv/service/ \ -d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \ -d licence_password='s9vmrbwT23B7bmjR4Vmz' \ -d request='get_products_in_category' \ -d id_category=1 \ -d language="de_DE" \ -d country="DE" \ -d order_column="price" \ -d order="DESC" \ -d left_limit=0 \ -d right_limit=1 \ -d needed_attributes='["name","price"]'


Here we are requesting the products in the category with the id:1. We want the products to be listed in german defined by the language - code "de_DE" for the country germany defined by the country - code "DE". Further we want the products to be listed ordered by the price descending. Left - limit is 0 an right - limit is 1 so only 1 product will be listed. The attributes we want to be listed are "name" and "price".

Response

                    {"object":"products_in_category",
"category":{
"id":1,
"name":"Start",
"prio":1,
"id_parent":0,
"label":"Start",


"seo":
{
  "permalink": "",
  "title": "",
  "description": "",
  "keywords": ""
}

,
"attributes":{
   
   
   
}
},
"products":{
 
  "Schuh blau":
 
{
  "object":"product",
  "id":15,
  "name":"Schuh blau",
  "creation_date":"2016-03-25 14:17:46",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "blaue-laufschuhe-robust",
  "title": "Blaue Laufschuhe mit wasserdichter Oberfläche",
  "description": "Blaue Laufschuhe für Männer",
  "keywords": "blau,Schuhe,Laufschuhe"
}

,
  
"availability":
{
  "quantity": 5,
  "quantity_warning": 3,
  "allow_override": 0,
  "active": 1
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":154,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh blau"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":157,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
      "Schuh grün":
  
{
  "object":"product",
  "id":17,
  "name":"Schuh grün",
  "creation_date":"2016-03-25 14:24:01",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "gruen-laufschuh-herren",
  "title": "Stylischer Herrenlaufschuh in grün",
  "description": "Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh",
  "keywords": "laufen,schuhe,herren,neu,widerstandsfaehig"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":184,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh gru00fcn"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":187,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


    "Schuh rot":
  
{
  "object":"product",
  "id":18,
  "name":"Schuh rot",
  "creation_date":"2016-03-25 14:25:33",
  "class":"colorprod",
  
  
"seo":
{
  "permalink": "laufschuh-sportlich-herren",
  "title": "Modischer Herrenlaufschuh in rot",
  "description": "Robuster und langlebiger Laufschuh für Herren",
  "keywords": "robust,laufen,modisch,maenner,herren"
}

,
  
"availability":
{
  "quantity": 0,
  "quantity_warning": 0,
  "allow_override": 0,
  "active": 0
}

,
  
"metadata":
{
  "element_number": "",
  "taxclass":
  {
   "name":"Standard",
   "calculation":"INC",
   "value":0.19
  },
  "length":0,
  "width":0,
  "height":0,
  "weight":0,
  "notes":""
  }

,
  "attributes":{
            
                    "name":

{
  "type":"CHAR",
  "id":199,
  "name":"name",
  "label":"Name",
  "value":"Laufschuh rot"
}


                                
                            
    ,                                "price":

{
  "type":"FLOAT",
  "id":202,
  "name":"price",
  "label":"Preis",
  "value":95
}


                
                                                                                                
    
  },
  "variations":{
  
    
    
 }
}


  
    
 }
}


  
 
}
}

                    

                      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<products_in_category>
<category>
<id>1</id>
<name>Start</name>
<prio>1</prio>
<id_parent>0</id_parent>
<label>Start</label>
<seo>
<permalink></permalink>
<title></title>
<description></description>
<keywords></keywords>
</seo>

<attributes></attributes>
</category>
<products>
<product>
<id>15</id>
<name>Schuh blau</name>
<creation_date>2016-03-25 14:17:46</creation_date>
<class>colorprod</class>
<seo>
<permalink>blaue-laufschuhe-robust</permalink>
<title>Blaue Laufschuhe mit wasserdichter Oberfläche</title>
<description>Blaue Laufschuhe für Männer</description>
<keywords>blau,Schuhe,Laufschuhe</keywords>
</seo>

<availability>
<quantity>5</quantity>
<quantity_warning>3</quantity_warning>
<allow_override>0</allow_override>
<active>1</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="154">
<name>name</name>
<label>Name</label>
<value>Laufschuh blau</value>
</attribute>

<attribute type="FLOAT" id="157">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>
<product>
<id>17</id>
<name>Schuh grün</name>
<creation_date>2016-03-25 14:24:01</creation_date>
<class>colorprod</class>
<seo>
<permalink>gruen-laufschuh-herren</permalink>
<title>Stylischer Herrenlaufschuh in grün</title>
<description>Aus der neuen Kollektion: Unser &amp;amp;quot;Lauf,Schuh!&amp;amp;quot;-Herrenlaufschuh</description>
<keywords>laufen,schuhe,herren,neu,widerstandsfaehig</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="184">
<name>name</name>
<label>Name</label>
<value>Laufschuh grün</value>
</attribute>

<attribute type="FLOAT" id="187">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>

<product>
<id>18</id>
<name>Schuh rot</name>
<creation_date>2016-03-25 14:25:33</creation_date>
<class>colorprod</class>
<seo>
<permalink>laufschuh-sportlich-herren</permalink>
<title>Modischer Herrenlaufschuh in rot</title>
<description>Robuster und langlebiger Laufschuh für Herren</description>
<keywords>robust,laufen,modisch,maenner,herren</keywords>
</seo>

<availability>
<quantity>0</quantity>
<quantity_warning>0</quantity_warning>
<allow_override>0</allow_override>
<active>0</active>
</availability>

<metadata>
<element_number></element_number>
<taxclass name="Standard" calculation="INC">0.19</taxclass>
<length>0</length>
<width>0</width>
<height>0</height>
<weight>0</weight>
<notes></notes>
</metadata>

<attributes>
<attribute type="CHAR" id="199">
<name>name</name>
<label>Name</label>
<value>Laufschuh rot</value>
</attribute>

<attribute type="FLOAT" id="202">
<name>price</name>
<label>Preis</label>
<value>95</value>
</attribute>


</attributes>
<variations>

</variations>
</product>


</variations>
</product>


</products>
</products_in_category>
                    

Explanation

categorySection containing informations about the category.
productsSection containing all products in the category.

Categories

Beschreibung

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

curl https://demo.sleekshop.net/srv/service/ \
-d licence_username='demo_NBSqhrcrhMci15Ir9UWI' \
-d licence_password='s9vmrbwT23B7bmjR4Vmz' \
-d request='get_shopobjects_in_category' \
-d id_category=1 \
-d needed_attributes='["name","price"]' -d language="de_DE"

You can also set a per-request key like in the example below. This is often useful for Connect applications that use multiple API keys during the lifetime of a process.

Authentication is transparently handled for you in subsequent method calls on the returned object.

A sample test API key is included in all the examples on this page, so you can test any example right away. To test requests using your account, replace the sample API key with your actual API key.

Categories

Beschreibung

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

var stripe = require("stripe")(
              "sk_test_BQokikJOvBiI2HlWgH4olfQ2"
              );

You can also set a per-request key like in the example below. This is often useful for Connect applications that use multiple API keys during the lifetime of a process.

Authentication is transparently handled for you in subsequent method calls on the returned object.

A sample test API key is included in all the examples on this page, so you can test any example right away. To test requests using your account, replace the sample API key with your actual API key.

Errors

Stripe uses conventional HTTP response codes to indicate the success or failure of an API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.), and codes in the 5xx range indicate an error with Stripe's servers (these are rare).

Not all errors map cleanly onto HTTP response codes, however. When a request is valid but does not complete successfully (e.g., a card is declined), we return a 402 error code. To understand why a card is declined, refer to the list of codes in the documentation.

Attributes2

  • type

    The type of error returned. Can be: api_connection_error, api_error, authentication_error, card_error, idempotency_error invalid_request_error, or rate_limit_error.

  • charge

    The ID of the failed charge.

  • message optional

    A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.

  • code optional

    For card errors, a short string—from among those listed on the right—describing the kind of card error that occurred.

  • decline_code optional

    For card errors resulting from a card issuer decline, a short string indicating the card issuer's reason for the decline if they provide one.

  • param optional

    If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.

var stripe = require("stripe")(
              "sk_test_BQokikJOvBiI2HlWgH4olfQ2"
              );

You can also set a per-request key like in the example below. This is often useful for Connect applications that use multiple API keys during the lifetime of a process.

Authentication is transparently handled for you in subsequent method calls on the returned object.

A sample test API key is included in all the examples on this page, so you can test any example right away. To test requests using your account, replace the sample API key with your actual API key.

api_connection_error222 Failure to connect to Stripe's API.
api_error API errors cover any other type of problem (e.g., a temporary problem with Stripe's servers), and are extremely uncommon.
authentication_error Failure to properly authenticate yourself in the request.
card_error Card errors are the most common type of error you should expect to handle. They result when the user enters a card that can't be charged for some reason.
idempotency_error Idempotency errors occur when an Idempotency-Key is re-used on a request that does not match the first request's API endpoint and parameters.
invalid_request_error Invalid request errors arise when your request has invalid parameters.
rate_limit_error Too many requests hit the API too quickly.
validation_error Errors triggered by our client-side libraries when failing to validate fields (e.g., when a card number or expiration date is invalid or incomplete).

Errors

Stripe uses conventional HTTP response codes to indicate the success or failure of an API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.), and codes in the 5xx range indicate an error with Stripe's servers (these are rare).

Not all errors map cleanly onto HTTP response codes, however. When a request is valid but does not complete successfully (e.g., a card is declined), we return a 402 error code. To understand why a card is declined, refer to the list of codes in the documentation.

var stripe = require("stripe")(
              "sk_test_BQokikJOvBiI2HlWgH4olfQ2"
              );

You can also set a per-request key like in the example below. This is often useful for Connect applications that use multiple API keys during the lifetime of a process.

Authentication is transparently handled for you in subsequent method calls on the returned object.

A sample test API key is included in all the examples on this page, so you can test any example right away. To test requests using your account, replace the sample API key with your actual API key.