getRecommendationStrategy

get

/ccstore/v1/recommendationStrategies/{id}

Get RecommendationStrategy. This operation is used to get a Recommendation Strategy from Oracle Commerce Cloud.

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

200 Response

The following model is returned when operation succeeds.
Body ()
Root Schema : getRecommendationStrategy_response
Type: object
Show Source
Example:
{
    "recommendationGroups":[
        {
            "numRecs":1,
            "conditions":[
                {
                    "id":"specifiedCollection",
                    "collection":"Shirts"
                },
                {
                    "range":[
                        50,
                        100
                    ],
                    "currency":"USD",
                    "id":"priceBetween"
                }
            ]
        },
        {
            "numRecs":2,
            "conditions":[
                {
                    "id":"specifiedCollection",
                    "collection":"Pants"
                }
            ]
        }
    ],
    "displayName":"One Mid-Range Shirt and Two Pants",
    "description":"This is a description of oneMidRangeShirtAndTwoPants",
    "id":"oneMidRangeShirtAndTwoPants"
}
Nested Schema : recommendationGroups
Type: array
The recommendationGroups for the RecommendationStrategy.
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.

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| |------------------|------------------| |52008|There is no Strategy with ID {0}.| |52006|A non-empty Strategy ID is required.| |52007|An error occurred accessing strategies.|
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":"52006",
    "message":"A non-empty Strategy ID is required.",
    "status":"404"
}
Back to Top