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
- application/json
Path Parameters
-
id: string
The RecommendationStrategy id.
Response
Supported Media Types
- application/json
200 Response
The following model is returned when operation succeeds.
Root Schema : getRecommendationStrategy_response
Type:
Show Source
object
-
description(optional):
string
The description for the RecommendationStrategy.
-
displayName(optional):
string
The display name for the RecommendationStrategy.
-
id(optional):
string
The id of the RecommendationStrategy.
-
recommendationGroups(optional):
array recommendationGroups
The recommendationGroups for the RecommendationStrategy.
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:
Show Source
object
-
conditions(optional):
array conditions
The conditions for the RecommendationGlobalRule.
-
numRecs(optional):
integer
The number of recs to be returned by this recommendation group.
Nested Schema : items
Type:
Show Source
object
-
brand(optional):
string
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.
-
collection(optional):
string
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.
-
currency(optional):
string
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.
-
id(optional):
integer
The id of the condition. This identifies the type of condition. Some examples of condition ids are: notCurrentBrand, notSpecifiedCollection, priceNotBetween.
-
locale(optional):
string
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.
-
priceType(optional):
string
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(optional):
array 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
-
Array of:
number
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.|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
Example Response (application/json)
{
"errorCode":"52006",
"message":"A non-empty Strategy ID is required.",
"status":"404"
}