Related Documents
Document Properties
Kbid2515C6
Last Modified23-Jun-2020
Added to KB17-Sep-2013
Public AccessEveryone
StatusOnline
Doc TypeReferences
Product
  • ICM 7.6
  • ICM 7.7
  • ICM 7.8

REST API - Get list of products category (until 7.8)

URI

/categories/<catID>/products?amount=<amount>&offset=<offset>

Http Method

GET

Short Description

Get list of products of (sub-) category.

Query Parameters

optional parameters:

  • amount - the number of products to retrieve.
  • offset - the offset in the retrieved product list to start from.


e.g.:
/categories/Computers/206/1563/products
/categories/Computers/206/1563/products?amount=4 or
/categories/Computers/206/1563/products?amount=4&offset=2

Example Requests

/categories/Computers/206/1563/products?amount=2&offset=2

HTTP Status Codes

200 OK
404 Not Found

Description

The following details/attributes are listed for each product:

  • Type
  • Title
  • Description
  • URI to /categories/<catID>/products/<sku>

Cartridge

app_sf_rest

Application

B2C Web Shop, SMB Web Shop

Product Version

7.4

Product To Version

7.8
Status

final

JSON

Request Data Format

Request related java object

n/a

Request Example

n/a

Response Data Format

application/json

Response related java object

com.intershop.component.rest.capi.resourceobject.LinkRO
com.intershop.component.rest.capi.resourceobject.ResourceCollectionRO

Response Example

/categories/Computers/206/1563/products?amount=2&offset=2

{
    "pageable": "DZoKDACw_hcAAAFBh1yJnO6I",
    "total": 19,
    "offset": 2,
    "amount": 2,
    "elements": [
        {
            "type": "Link",
            "description": "Insurance against breakdown. Warranty period: 3 years.",
            "uri": "PrimeTech-PrimeTechSpecials-Site/b2c-web-shop/categories/Cameras-Camcorders/products/3YLEDTVSUP",
            "title": "3-year LED TV Support"
        },
        {
            "type": "Link",
            "description": "120GB S510 SATA III",
            "uri": "PrimeTech-PrimeTechSpecials-Site/b2c-web-shop/categories/Cameras-Camcorders/products/11089966",
            "title": "A-DATA 120GB S510"
        }
    ],
    "type": "ResourceCollection",
    "name": "products"
}

XML

XML Request Data Format

XML Request Java Objects

n/a

XML Request Example

n/a

XML Response Data Format

text/xml

XML Response Java Objects

com.intershop.component.rest.capi.resourceobject.LinkRO
com.intershop.component.rest.capi.resourceobject.ResourceCollectionRO

XML Response Example

/categories/Computers/206/1563/products?amount=2&offset=2

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ResourceCollection name="products" type="ResourceCollection">
    <amount>2</amount>
    <elements>
        <Link type="Link">
            <description>Insurance against breakdown. Warranty period: 3 years.</description>
            <title>3-year LED TV Support</title>
            <uri>PrimeTech-PrimeTechSpecials-Site/b2c-web-shop/categories/Cameras-Camcorders/products/3YLEDTVSUP</uri>
        </Link>
        <Link type="Link">
            <description>120GB S510 SATA III</description>
            <title>A-DATA 120GB S510</title>
            <uri>PrimeTech-PrimeTechSpecials-Site/b2c-web-shop/categories/Cameras-Camcorders/products/11089966</uri>
        </Link>
    </elements>
    <offset>2</offset>
    <pageable>TLsKDACwZJYAAAFBj92JnO6M</pageable>
    <total>19</total>
</ResourceCollection

Disclaimer

The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.

Customer Support
Knowledge Base
Product Resources
Support Tickets