listRecommendationGlobalRules

get

/ccstore/v1/recommendationGlobalRules

List Recommendation Global Rules. This operation is used to get the collection of Recommendation Global Rules. By default all properties on the Recommendation Global Rule items are returned.

Request

Supported Media Types
Query Parameters
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

The following model is returned when operation succeeds.
Body ()
Root Schema : listRecommendationGlobalRule_response
Type: object
Show Source
Example:
{
    "totalResults":3,
    "offset":0,
    "sort":{
        "property":"displayName",
        "order":"asc"
    },
    "items":[
        {
            "displayName":"noProductsInCurrentBrand",
            "description":"This is a description of noProductsInCurrentBrand",
            "id":"noProductsInCurrentBrand",
            "conditions":[
                {
                    "id":"notCurrentBrand"
                }
            ]
        },
        {
            "displayName":"noProductsInCurrentCollection",
            "description":"This is a description of noProductsInCurrentCollection",
            "id":"noProductsInCurrentCollection",
            "conditions":[
                {
                    "id":"notCurrentCollection"
                }
            ]
        },
        {
            "displayName":"noProductsInCurrentPriceType",
            "description":"This is a description of noProductsInCurrentPriceType",
            "id":"noProductsInCurrentPriceType",
            "conditions":[
                {
                    "id":"notCurrentPriceType"
                }
            ]
        }
    ]
}
Nested Schema : items
Type: array
The returned list of items.
Show Source
Nested Schema : sort
Type: array
The sort used for the RecommendationGlobalRules audiences.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : conditions
Type: array
The conditions for the RecommendationGlobalRule.
Show Source
Nested Schema : items
Type: object
Show Source
  • The product brand. This is only valid when the condition requires a brand to be specified. For example, brand is required for the condition with id notSpecifiedBrand.
  • The product collection. This is only valid when the condition requires a collection to be specified. For example, a collection is required for a condition with id notSpecifiedCollection.
  • The currency used for evaluating the condition. This is only valid when the condition requires a currency to be specified. For example, a currency is required for a condition with id priceGT.
  • The id of the condition. This identifies the type of condition. Some examples of condition ids are: notCurrentBrand, notSpecifiedCollection, priceNotBetween.
  • The locale used for evaluating the condition. This is only valid when the condition requires a locale to be specified. For example, a locale is required for a condition with id notSpecifiedBrand.
  • The price type. This is only valid when the condition requires a price type to be specified. For example, a priceType is required for a condition with id notSpecifiedPriceType.
  • range
    Minimum Number of Items: 2
    Maximum Number of Items: 2
    The price range used for evaluating the condition. This is only valid when the condition requires a range to be specified. For example, a range is required for a condition with id priceNotBetween.
Nested Schema : range
Type: array
Minimum Number of Items: 2
Maximum Number of Items: 2
The price range used for evaluating the condition. This is only valid when the condition requires a range to be specified. For example, a range is required for a condition with id priceNotBetween.
Show Source
  • Two numbers >= 0 with the first being lower than the second. This represents a price range.
Nested Schema : items
Type: object
Show Source

Default Response

The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |52044|Unable to access Global Rules due to missing request and query.| |52048|An error occurred accessing Global Rules with query {0}.|
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
Example Response (application/json)
{
    "errorCode":"52044",
    "message":"Unable to access Global Rules due to missing request and query.",
    "status":"404"
}
Back to Top