getRecommendationGlobalRuleConditions

get

/ccadmin/v1/recommendationGlobalRuleConditions

Get the list of Conditions available to build Recommendation Global Rules. 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 : getRecommendationGlobalRuleConditions_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":7,
    "items":[
        {
            "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