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: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    CommerceThe commerce data source.
    
    
    
    
    
    
    Match All
    
        
            The commerce data source.
        
    
    Show Source
    
    
    
    
    
    
    
Nested Schema : CommerceIntelligenceDataSource
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            cacheInstanceId: 
            string()
            Title:Cache Instance IDThe commerce cache instance ID.
- 
            id: 
            integer()
            Title:Transaction IDTransaction ID.
- 
            maxTopPicks: 
            integer()
            Title:Maximum Number Of Top PicksThe maximum number of top picks to return.
- 
            onlyTopPicks: 
            boolean()
            Title:Only Top PicksFlag 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 IDTraining 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 BoughtThe recommendations of products also bought by customers.
- 
            frequentlyBoughtTogether: 
            array  Frequently Bought Together
            
            Title:Frequently Bought TogetherThe recommendations of products frequently bought together.
- 
            topPicks: 
            array  Top Picks
            
            Title:Top PicksThe top recommendations.
Nested Schema : Customers Also Bought
    
      
      Type: 
    
    
    
    arrayTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Customers Also BoughtThe recommendations of products also bought by customers.
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : Frequently Bought Together
    
      
      Type: 
    
    
    
    arrayTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Frequently Bought TogetherThe recommendations of products frequently bought together.
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : RecommendationResponse
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            confidence: 
            number()
            Title:ConfidenceThe rule confidence measure between 0 to 1.
- 
            lift: 
            number()
            Title:LiftThe rule lift measure.
- 
            rank: 
            integer()
            Title:RankThe recommendation rank.
- 
            recommendationReason: 
            string()
            Title:ReasonThe reason for the recommendation.
- 
            recommendationType: 
            string()
            Title:TypeAllowed Values:[ "frequentlyBoughtTogether", "customersAlsoBought" ]The recommendation type.
- 
            recommendedItem: 
             Recommended Item
            
            Title:Recommended ItemThe recommended item.
Nested Schema : Recommended Item
    
      
      
    
    
    
    Title: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Recommended ItemThe recommended item.
    
    
    
    
    
    
    Match All
    
        
            The recommended item.
        
    
    Show Source
    
    
    
    
    
    
    
Nested Schema : RecommendedItem
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            bomItemVariableName: 
            string()
            Title:BOM Item Variable NameThe BOM Item variable name.
- 
            description: 
            string()
            Title:DescriptionThe product description.
- 
            id: 
            integer()
            Title:IDThe top recommendations.
- 
            label: 
            string()
            Title:LabelThe product label.
- 
            listPrice: 
            string()
            Title:List PriceThe list price.
- 
            partNumber: 
            string()
            Title:Part NumberThe part number.
- 
            productIdentifier: 
            string()
            Title:Product IdentifierThe product identifier.
- 
            productType: 
            object  Product Type
            
            Title:Product TypeThe product type.
- 
            status: 
            object  Status
            
            Title:StatusThe product status.
Nested Schema : Product Type
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Product TypeThe product type.
    
    
    
    
    
    
    
    
    
    
Nested Schema : Status
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    StatusThe 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
    }
  ]
}