REST API - Recommendation top-seller request


Note

Starting with 7.10 our REST API is documented using Redoc accessible at docs.intershop.com.

URI

/recommendationcontexts/<context-id>/topsellerrecommendations

Http Method

GET

Short Description

Get recommended global topseller products

Query Parameters

none

Example Requests

/recommendationcontexts/13157ff6-e645-49a6-ba46-7787563d7214/topsellerrecommendations

HTTP Status Codes

200 OK

Description

If a recommendation service is configured this call returns a list of recommended global top-seller products. The result list strongly depends on the configuration of the recommendation engine and on the back office preferences in "Channel preferences / Recommendation Engines". If the request type TopsellerRecommendationRequest is not activated then an empty list is returned.

The used <contextid> can be any alpha-numeric string. It will be used to distinguish between different users/customers.

Cartridge

app_sf_rest_recomm
Application

B2C Web Shop, SMB Web Shop

Product Version

7.5

Product To Version

 

Status

final

JSON

Request data format

application/json

Request related java object

com.intershop.component.recommendation.capi.rest.resource.TopsellerRequestRecommendationsListResource

Request data example

no request data

Response data format

application/json

Response related java object

com.intershop.component.recommendation.capi.rest.resource.TopsellerRequestRecommendationsListResource
com.intershop.component.rest.capi.resourceobject.LinkRO

Response data example

{
    "total": 10,
    "elements": [
        {
            "type": "Link",
            "title": "1767711",
            "uri": "PrimeTech-PrimeTechSpecials-Site/-/products/1767711"
        },
        {
            "type": "Link",
            "title": "9925078",
            "uri": "PrimeTech-PrimeTechSpecials-Site/-/products/9925078"
        },
        {
            "type": "Link",
            "title": "8509285",
            "uri": "PrimeTech-PrimeTechSpecials-Site/-/products/8509285"
        },
        {
            "type": "Link",
            "title": "3852840",
            "uri": "PrimeTech-PrimeTechSpecials-Site/-/products/3852840"
        },
        {
            "type": "Link",
            "title": "9631560",
            "uri": "PrimeTech-PrimeTechSpecials-Site/-/products/9631560"
        },
        {
            "type": "Link",
            "title": "9631559",
            "uri": "PrimeTech-PrimeTechSpecials-Site/-/products/9631559"
        },
        {
            "type": "Link",
            "title": "9631558",
            "uri": "PrimeTech-PrimeTechSpecials-Site/-/products/9631558"
        },
        {
            "type": "Link",
            "title": "9631557",
            "uri": "PrimeTech-PrimeTechSpecials-Site/-/products/9631557"
        },
        {
            "type": "Link",
            "title": "10645985",
            "uri": "PrimeTech-PrimeTechSpecials-Site/-/products/10645985"
        },
        {
            "type": "Link",
            "title": "10646113",
            "uri": "PrimeTech-PrimeTechSpecials-Site/-/products/10646113"
        }
    ],
    "type": "ResourceCollection",
    "name": "recommendedProducts"
}

XML

Request data format

text/xml

Request related java object

 com.intershop.component.recommendation.capi.rest.resource.TopsellerRequestRecommendationsListResource

Request data example

no request data

Response data format

text/xml

Response related java object

com.intershop.component.recommendation.capi.rest.resource.TopsellerRequestRecommendationsListResource
com.intershop.component.rest.capi.resourceobject.LinkRO

Response data example

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ResourceCollection name="recommendedProducts" type="ResourceCollection">
    <elements>
        <Link type="Link">
            <title>1767711</title>
            <uri>PrimeTech-PrimeTechSpecials-Site/-/products/1767711</uri>
        </Link>
        <Link type="Link">
            <title>9925078</title>
            <uri>PrimeTech-PrimeTechSpecials-Site/-/products/9925078</uri>
        </Link>
        <Link type="Link">
            <title>8509285</title>
            <uri>PrimeTech-PrimeTechSpecials-Site/-/products/8509285</uri>
        </Link>
        <Link type="Link">
            <title>3852840</title>
            <uri>PrimeTech-PrimeTechSpecials-Site/-/products/3852840</uri>
        </Link>
        <Link type="Link">
            <title>9631560</title>
            <uri>PrimeTech-PrimeTechSpecials-Site/-/products/9631560</uri>
        </Link>
        <Link type="Link">
            <title>9631559</title>
            <uri>PrimeTech-PrimeTechSpecials-Site/-/products/9631559</uri>
        </Link>
        <Link type="Link">
            <title>9631558</title>
            <uri>PrimeTech-PrimeTechSpecials-Site/-/products/9631558</uri>
        </Link>
        <Link type="Link">
            <title>9631557</title>
            <uri>PrimeTech-PrimeTechSpecials-Site/-/products/9631557</uri>
        </Link>
        <Link type="Link">
            <title>10645985</title>
            <uri>PrimeTech-PrimeTechSpecials-Site/-/products/10645985</uri>
        </Link>
        <Link type="Link">
            <title>10646113</title>
            <uri>PrimeTech-PrimeTechSpecials-Site/-/products/10646113</uri>
        </Link>
    </elements>
    <total>10</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