Render Recommended Products

post

/rest/v19/intelligence/actions/recommendProducts

Use this endpoint to render product recommendations during runtime.

Request

Supported Media Types
Body ()
Root Schema : RecommendProductsRequest
Type: object
Show Source
Nested Schema : Commerce
Title: Commerce
The commerce data source.
Match All
The commerce data source.
Show Source
Nested Schema : CommerceIntelligenceDataSource
Type: object
Show Source
Back to Top

Response

Supported Media Types

202 Response

Success
Body ()
Root Schema : RecommendProductsResponse
Type: object
Show Source
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 : Top Picks
Type: array
Title: Top Picks
The top recommendations.
Show Source
Nested Schema : RecommendationResponse
Type: object
Show Source
Nested Schema : Recommended Item
Title: Recommended Item
The recommended item.
Match All
The recommended item.
Show Source
Nested Schema : RecommendedItem
Type: object
Show Source
Nested Schema : Product Type
Type: object
Title: Product Type
The product type.
Nested Schema : Status
Type: object
Title: Status
The product status.
Back to Top

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
    }
  ]
}
Back to Top