getRecommendationStrategyConditions

get

/ccadmin/v1/recommendationStrategyConditions

Get the list of Conditions available to build Recommendation Strategies. This endpoint doesn't support paging, sorting or filtering.

Request

There are no request parameters for this operation.

Back to Top

Response

Supported Media Types

200 Response

The following model is returned when operation succeeds.
Body ()
Root Schema : getRecommendationStrategyConditions_response
Type: object
Show Source
Nested Schema : items
Type: array
The returned list of items.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : params
Type: array
The array of parameters for the Condition.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "totalResults":12,
    "items":[
        {
            "id":"topSellers",
            "label":"Top Sellers"
        },
        {
            "id":"purchasedTogether",
            "label":"Purchased Together"
        },
        {
            "id":"browsedTogether",
            "label":"Browsed Together"
        },
        {
            "id":"mostRecentlyViewed",
            "label":"Most Recently Viewed"
        },
        {
            "id":"manuallyRelatedProducts",
            "label":"Manually Related Products"
        },
        {
            "id":"inCurrentBrand",
            "label":"Brand",
            "tag":"brand",
            "operator":"is same as context"
        },
        {
            "id":"inSpecifiedBrand",
            "label":"Brand",
            "tag":"brand",
            "params":[
                {
                    "id":"brand",
                    "type":"string"
                }
            ],
            "operator":"is"
        },
        {
            "id":"inCurrentCollection",
            "label":"Collection",
            "tag":"collection",
            "operator":"is same as context"
        },
        {
            "id":"inSpecifiedCollection",
            "label":"Collection",
            "tag":"collection",
            "params":[
                {
                    "options":{
                        "endpointId":"listCollections",
                        "rel":"self",
                        "href":"/ccadminui/v1/collections"
                    },
                    "id":"collection",
                    "type":"collectionId"
                }
            ],
            "operator":"is"
        },
        {
            "id":"inCurrentPriceType",
            "label":"Price Type",
            "tag":"priceType",
            "operator":"is same as context"
        },
        {
            "id":"inSpecifiedPriceType",
            "label":"Price Type",
            "tag":"priceType",
            "params":[
                {
                    "options":[
                        {
                            "label":"Full Price",
                            "id":"fullPrice"
                        },
                        {
                            "label":"On Sale",
                            "id":"onSale"
                        }
                    ],
                    "id":"priceType",
                    "type":"priceTypeId"
                }
            ],
            "operator":"is"
        },
        {
            "id":"priceRange",
            "label":"Price",
            "params":[
                {
                    "id":"lowValue",
                    "type":"decimal"
                },
                {
                    "id":"highValue",
                    "type":"decimal"
                },
                {
                    "id":"currency",
                    "type":"string"
                }
            ],
            "operator":"between"
        }
    ]
}

Default Response

The error response.
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top