Render Recommended Products
post
/rest/v19/intelligence/actions/recommendProducts
Use this endpoint to render product recommendations during runtime.
Request
Supported Media Types
- application/json
Nested Schema : Commerce
Title:
Commerce
The commerce data source.
Match All
The commerce data source.
Show Source
Nested Schema : CommerceIntelligenceDataSource
Type:
Show Source
object
-
cacheInstanceId:
string()
Title:
Cache Instance ID
The commerce cache instance ID. -
id:
integer()
Title:
Transaction ID
Transaction ID. -
maxTopPicks:
integer()
Title:
Maximum Number Of Top Picks
The maximum number of top picks to return. -
onlyTopPicks:
boolean()
Title:
Only Top Picks
Flag which gets all recommendation categories in addition to the Top Picks cagtegory if false. This is an optional parameter which defaults to true. -
trainingId:
integer()
Title:
Training ID
Training ID.
Response
Supported Media Types
- application/json
202 Response
Success
Root Schema : RecommendProductsResponse
Type:
Show Source
object
-
customersAlsoBought:
array Customers Also Bought
Title:
Customers Also Bought
The recommendations of products also bought by customers. -
frequentlyBoughtTogether:
array Frequently Bought Together
Title:
Frequently Bought Together
The recommendations of products frequently bought together. -
topPicks:
array Top Picks
Title:
Top Picks
The top recommendations.
Nested Schema : Customers Also Bought
Type:
array
Title:
Customers Also Bought
The recommendations of products also bought by customers.
Show Source
Nested Schema : Frequently Bought Together
Type:
array
Title:
Frequently Bought Together
The recommendations of products frequently bought together.
Show Source
Nested Schema : RecommendationResponse
Type:
Show Source
object
-
confidence:
number()
Title:
Confidence
The rule confidence measure between 0 to 1. -
lift:
number()
Title:
Lift
The rule lift measure. -
rank:
integer()
Title:
Rank
The recommendation rank. -
recommendationReason:
string()
Title:
Reason
The reason for the recommendation. -
recommendationType:
string()
Title:
Type
Allowed Values:[ "frequentlyBoughtTogether", "customersAlsoBought" ]
The recommendation type. -
recommendedItem:
Recommended Item
Title:
Recommended Item
The recommended item.
Nested Schema : Recommended Item
Title:
Recommended Item
The recommended item.
Match All
The recommended item.
Show Source
Nested Schema : RecommendedItem
Type:
Show Source
object
-
bomItemVariableName:
string()
Title:
BOM Item Variable Name
The BOM Item variable name. -
description:
string()
Title:
Description
The product description. -
id:
integer()
Title:
ID
The top recommendations. -
label:
string()
Title:
Label
The product label. -
listPrice:
string()
Title:
List Price
The list price. -
partNumber:
string()
Title:
Part Number
The part number. -
productIdentifier:
string()
Title:
Product Identifier
The product identifier. -
productType:
object Product Type
Title:
Product Type
The product type. -
status:
object Status
Title:
Status
The product status.
Nested Schema : Product Type
Type:
object
Title:
Product Type
The product type.
Nested Schema : Status
Type:
object
Title:
Status
The product status.
Examples
The following example shows how to render product recommendations during runtime by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X POST -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/intelligence/actions/recommendProducts
Request Body Sample
{ "commerce": { "id": 3023201387, "cacheInstanceId": "K4MAHuD725BG6ivxR3tvGqazte22AOVHIb9owz7WmBtO84saOneTD3hN4Nkb73i9", "onlyTopPicks": false, "maxTopPicks": 4 } }
Response Body Sample
{ "topPicks": [{ "recommendedItem": { "id": 15213819, "partNumber": "Customer Specific Pricing 02", "productIdentifier": "PART_Customer Specific Pricing 02", "description": "Base price in all currencies - Absolute price profile in USD only", "label": "Customer Specific Pricing 02", "listPrice": "$2.00", "status": { "displayValue": "Created", "lookupCode": "ORA_CREATED" }, "productType": { "displayValue": "Part", "lookupCode": 0 } }, "rank": 1, "recommendationType": "customersAlsoBought", "recommendationReason": "Customers also bought this item with others in the transaction.", "confidence": 1.0, "lift": 2.0 }, { "recommendedItem": { "id": 8523277, "partNumber": "part100", "productIdentifier": "PART_part100", "label": "Part Display 100", "listPrice": "$100.00", "status": { "displayValue": "Created", "lookupCode": "ORA_CREATED" }, "productType": { "displayValue": "Part", "lookupCode": 0 } }, "rank": 2, "recommendationType": "frequentlyBoughtTogether", "recommendationReason": "This item is frequently bought together with others in the transaction.", "confidence": 1.0, "lift": 2.793103448275862 }, { "recommendedItem": { "id": 8523072, "partNumber": "part1", "productIdentifier": "BOM_configIntegrationRoot", "bomItemVariableName": "configIntegrationRoot", "label": "Part Display 1", "listPrice": "$1.00", "status": { "displayValue": "Created", "lookupCode": "ORA_CREATED" }, "productType": { "displayValue": "Bom", "lookupCode": 1 } }, "rank": 3, "recommendationType": "frequentlyBoughtTogether", "recommendationReason": "This item is frequently bought together with others in the transaction.", "confidence": 0.9655172413793104, "lift": 1.4756018217306441 }, { "recommendedItem": { "id": 19823338, "partNumber": "PriceScore1", "productIdentifier": "PART_PriceScore1", "description": "pricescore", "label": "PriceScore1", "listPrice": "$200.00", "status": { "displayValue": "Created", "lookupCode": "ORA_CREATED" }, "productType": { "displayValue": "Part", "lookupCode": 0 } }, "rank": 4, "recommendationType": "customersAlsoBought", "recommendationReason": "Customers also bought this item with others in the transaction.", "confidence": 1.0, "lift": 2.0 }, { "recommendedItem": { "id": 8523091, "partNumber": "part10", "productIdentifier": "PART_part10", "label": "Part Display 10", "listPrice": "$10.00", "status": { "displayValue": "Created", "lookupCode": "ORA_CREATED" }, "productType": { "displayValue": "Part", "lookupCode": 0 } }, "rank": 5, "recommendationType": "frequentlyBoughtTogether", "recommendationReason": "This item is frequently bought together with others in the transaction.", "confidence": 0.9655172413793104, "lift": 2.6068965517241383 } ], "frequentlyBoughtTogether": [{ "recommendedItem": { "id": 8523277, "partNumber": "part100", "productIdentifier": "PART_part100", "label": "Part Display 100", "listPrice": "$100.00", "status": { "displayValue": "Created", "lookupCode": "ORA_CREATED" }, "productType": { "displayValue": "Part", "lookupCode": 0 } }, "rank": 1, "recommendationType": "frequentlyBoughtTogether", "recommendationReason": "This item is frequently bought together with others in the transaction.", "confidence": 1.0, "lift": 2.793103448275862 }, { "recommendedItem": { "id": 8523072, "partNumber": "part1", "productIdentifier": "BOM_configIntegrationRoot", "bomItemVariableName": "configIntegrationRoot", "label": "Part Display 1", "listPrice": "$1.00", "status": { "displayValue": "Created", "lookupCode": "ORA_CREATED" }, "productType": { "displayValue": "Bom", "lookupCode": 1 } }, "rank": 2, "recommendationType": "frequentlyBoughtTogether", "recommendationReason": "This item is frequently bought together with others in the transaction.", "confidence": 0.9655172413793104, "lift": 1.4756018217306441 }, { "recommendedItem": { "id": 8523091, "partNumber": "part10", "productIdentifier": "PART_part10", "label": "Part Display 10", "listPrice": "$10.00", "status": { "displayValue": "Created", "lookupCode": "ORA_CREATED" }, "productType": { "displayValue": "Part", "lookupCode": 0 } }, "rank": 3, "recommendationType": "frequentlyBoughtTogether", "recommendationReason": "This item is frequently bought together with others in the transaction.", "confidence": 0.9655172413793104, "lift": 2.6068965517241383 }, { "recommendedItem": { "id": 8523281, "partNumber": "part102", "productIdentifier": "PART_part102", "label": "part102", "listPrice": "$102.00", "status": { "displayValue": "Created", "lookupCode": "ORA_CREATED" }, "productType": { "displayValue": "Part", "lookupCode": 0 } }, "rank": 4, "recommendationType": "frequentlyBoughtTogether", "recommendationReason": "This item is frequently bought together with others in the transaction.", "confidence": 0.9655172413793104, "lift": 2.793103448275862 } ], "customersAlsoBought": [{ "recommendedItem": { "id": 15213819, "partNumber": "Customer Specific Pricing 02", "productIdentifier": "PART_Customer Specific Pricing 02", "description": "Base price in all currencies - Absolute price profile in USD only", "label": "Customer Specific Pricing 02", "listPrice": "$2.00", "status": { "displayValue": "Created", "lookupCode": "ORA_CREATED" }, "productType": { "displayValue": "Part", "lookupCode": 0 } }, "rank": 1, "recommendationType": "customersAlsoBought", "recommendationReason": "Customers also bought this item with others in the transaction.", "confidence": 1.0, "lift": 2.0 }, { "recommendedItem": { "id": 19823338, "partNumber": "PriceScore1", "productIdentifier": "PART_PriceScore1", "description": "pricescore", "label": "PriceScore1", "listPrice": "$200.00", "status": { "displayValue": "Created", "lookupCode": "ORA_CREATED" }, "productType": { "displayValue": "Part", "lookupCode": 0 } }, "rank": 2, "recommendationType": "customersAlsoBought", "recommendationReason": "Customers also bought this item with others in the transaction.", "confidence": 1.0, "lift": 2.0 }, { "recommendedItem": { "id": 8523135, "partNumber": "part32", "productIdentifier": "PART_part32", "label": "part32", "listPrice": "$32.00", "status": { "displayValue": "Created", "lookupCode": "ORA_CREATED" }, "productType": { "displayValue": "Part", "lookupCode": 0 } }, "rank": 3, "recommendationType": "customersAlsoBought", "recommendationReason": "Customers also bought this item with others in the transaction.", "confidence": 1.0, "lift": 2.0 }, { "recommendedItem": { "id": 8523080, "partNumber": "part5", "productIdentifier": "PART_part5", "label": "Part Display 5", "listPrice": "$5.00", "status": { "displayValue": "Created", "lookupCode": "ORA_CREATED" }, "productType": { "displayValue": "Part", "lookupCode": 0 } }, "rank": 4, "recommendationType": "customersAlsoBought", "recommendationReason": "Customers also bought this item with others in the transaction.", "confidence": 1.0, "lift": 2.0 }, { "recommendedItem": { "id": 16267157, "partNumber": "Basic Pricing 13", "productIdentifier": "PART_Basic Pricing 13", "description": "Explicitly added to Pricebook 5: Multiplier of Pricebook 3 (10.0x) in all MDB currencies.", "label": "Basic Pricing 13", "listPrice": "$1.00", "status": { "displayValue": "Created", "lookupCode": "ORA_CREATED" }, "productType": { "displayValue": "Part", "lookupCode": 0 } }, "rank": 5, "recommendationType": "customersAlsoBought", "recommendationReason": "Customers also bought this item with others in the transaction.", "confidence": 1.0, "lift": 2.0 } ] }