REST API - Get list of bundles for product bundle in category (until 7.8)




URI

/categories/<cat_ID>/products/<sku>/bundles

Http Method

GET

Short Description

Get list of bundles for product bundle

Query Parameters

Optional parameters:

  • amount

  • offset

  • pageable

Example Requests

/categories/Cameras-Camcorders/products/M1575918/bundles&amount=2

HTTP Status Codes

200 OK
404 Not found

Description

The following details/attributes are listed for each bundled product:

  • Type

  • Quantity

  • Description

  • Title

  • Uri

It is possible to request only part of the complete list (using the parameters amount and offset)

Cartridge

app_sf_rest

Application

B2C Web Shop, SMB Web Shop







Product Version

7.4

Product To Version

7.8

Status

New Labels





JSON

Request Data Format

n.a.

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.ResourceCollectionRO
com.intershop.component.rest.capi.resourceobject.LinkRO



Response Example



{
    "elements": [
        {
            "type": "Link",
            "description": "EOS 5D Mark II - 36x 24 mm CMOS, 21.1M pixels, DIGIC 4, 9-point AF",
            "uri": "PrimeTech-PrimeTechSpecials-Site/b2c-web-shop/products/1718663",
            "title": "Canon EOS 5D Mark II, body",
            "attributes": [
                {
                    "name": "quantity",
                    "type": "ResourceAttribute",
                    "value": 1
                }
            ]
        },
        {
            "type": "Link",
            "description": "EF 50mm f/1.8 II",
            "uri": "PrimeTech-PrimeTechSpecials-Site/b2c-web-shop/products/805956",
            "title": "Canon EF 50mm f/1.8 II",
            "attributes": [
                {
                    "name": "quantity",
                    "type": "ResourceAttribute",
                    "value": 1
                }
            ]
        }
    ],
    "type": "ResourceCollection",
    "name": "bundles"
}



XML

XML Request Data Format

n.a.

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.ResourceCollectionRO
com.intershop.component.rest.capi.resourceobject.LinkRO



XML Response Example



?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ResourceCollection name="bundles" type="ResourceCollection">
    <elements>
        <Link type="Link">
            <attributes>
                <ResourceAttribute name="quantity" type="ResourceAttribute">
                    <value 
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                        xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:decimal">1
                    </value>
                </ResourceAttribute>
            </attributes>
            <description>EOS 5D Mark II - 36x 24 mm CMOS, 21.1M pixels, DIGIC 4, 9-point AF</description>
            <title>Canon EOS 5D Mark II, body</title>
            <uri>PrimeTech-PrimeTechSpecials-Site/b2c-web-shop/products/1718663</uri>
        </Link>
        <Link type="Link">
            <attributes>
                <ResourceAttribute name="quantity" type="ResourceAttribute">
                    <value 
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                        xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:decimal">1
                    </value>
                </ResourceAttribute>
            </attributes>
            <description>EF 50mm f/1.8 II</description>
            <title>Canon EF 50mm f/1.8 II</title>
            <uri>PrimeTech-PrimeTechSpecials-Site/b2c-web-shop/products/805956</uri>
        </Link>
    </elements>
</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
Tickets