Intelligence REST APIs

Overview

The Intelligence Run-Time and Setup REST APIs provide web services to support product recommendations based on Machine Learning to suggest products to be added alongside the current items in the quote. AI generated product recommendations can help improve the customer experience and increase sales by creating opportunities to cross-sell and upsell products. The algorithms look at the products already selected and starts recommending other products based on the concepts "Frequently bought together" and/or "Customers also bought".

Administration

Intelligence Run-Time REST API

ClosedRender Recommended Products

Intelligence Setup REST APIs

The Intelligence Setup REST API endpoints provide web service support for the administration of AI generated product recommendations.

Intelligence Models

ClosedDelete an Intelligence Model

Delete an Intelligence ModelDELETE method

Description

Use this endpoint to delete the specified intelligence model.

URI Endpoint

/rest/v19/intelligenceSetup/models/{modelId}

Endpoint Parameters

modelId

The intelligence model Id

HTTP Method

DELETE

Request Body Parameters

None

Success Response

204


ClosedGet All Intelligence Models

Get All Intelligence Models GET Method
Description

Use this endpoint to retrieve all intelligence models.

URI Endpoint

/rest/v19/intelligenceSetup/models

Endpoint Parameters

None

Query Parameters

This endpoint supports the following optional parameters: expand, fields, finder, limit, offset, onlyData, orderby, q, and totalResults.
Refer to Manage Collections for additional information

HTTP Method GET
Request Body Parameters

None

Response Body Parameters

An array of intelligence model items:

analyticsType

(required) The analytics type.

Allowed Values: "productRecommendation"

createdBy

The details of the user who created the record.

customerAlsoBought

Indicates whether to perform the customer also bought analysis.

dateAdded

Creation date of the intelligence model.

dateFilter

The Id of the attribute used in the date filter.

dateModified

Last modified date of the intelligence model.

description

Description of the intelligence model.

documentId

The Commerce document Id.

documentName

Name of the source document.

duration

The duration of the date filter.

Allowed Values: "NONE", "THIRTYDAYS", "SIXTYDAYS", "SIXMONTHS", "ONEYEAR", "TWOYEAR", "ALL"

filters

List of filters to be applied for the intelligence model.

frequentlyBoughtTogether

Indicates whether to perform the frequently bought together analysis.

id

Id of the intelligence model.

lastModifiedBy

The details of the user who modified the record.

links

The link relations associated with the resource instance.

maxNumOutput

The maximum number of outputs.

name

(required) Name of the intelligence model.

processId

The Commerce process Id.

processName

Name of the source process.

trainings

List of trainings for the intelligence model.

ClosedURI Endpoint Sample

ClosedSample Response Body


ClosedGet an Intelligence Model

Get an Intelligence Model GET Method
Description

Use this endpoint to retrieve the specified intelligence model.

URI Endpoint

/rest/v19/intelligenceSetup/models/{modelId}

Endpoint Parameters

modelId

The intelligence model Id

Query Parameters

This endpoint supports the following optional parameters: expand and fields. Refer to Manage Collections for additional information

HTTP Method GET
Request Body Parameters

None

Response Body Parameters

analyticsType

(required) The analytics type.

Allowed Values: "productRecommendation"

createdBy

The details of the user who created the record.

customerAlsoBought

Indicates whether to perform the customer also bought analysis.

dateAdded

Creation date of the intelligence model.

dateFilter

The Id of the attribute used in the date filter.

dateModified

Last modified date of the intelligence model.

description

Description of the intelligence model.

documentId

The Commerce document Id.

documentName

Name of the source document.

duration

The duration of the date filter.

Allowed Values: "NONE", "THIRTYDAYS", "SIXTYDAYS", "SIXMONTHS", "ONEYEAR", "TWOYEAR", "ALL"

filters

List of filters to be applied for the intelligence model.

frequentlyBoughtTogether

Indicates whether to perform the frequently bought together analysis.

id

Id of the intelligence model.

lastModifiedBy

The details of the user who modified the record.

links

The link relations associated with the resource instance.

maxNumOutput

The maximum number of outputs.

name

(required) Name of the intelligence model.

processId

The Commerce process Id.

processName

Name of the source process.

trainings

List of trainings for the intelligence model.

ClosedURI Endpoint Sample

ClosedSample Response Body


ClosedUpdate Intelligence Models

Update Intelligence Models PATCH method

Description

Use this endpoint to update the specified intelligence model.

URI Endpoint

/rest/v19/intelligenceSetup/models

Endpoint Parameters

modelId

The intelligence model Id

HTTP Method

PATCH

Request Body Parameters

The array of intelligence patch operations.

op

The operation to be performed. Allowed values: "add", "remove", and "replace".

path

The JSON pointer string for "path" property.

value

The target value. Refer to Update Intelligence Model for more information.

Success Response

204

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v19/intelligenceSetup/models


ClosedSample Request Body

[ { "op": "replace", "path": "/3023483575", "value" : { "attributeId": "4356390", "operator" : "_not_eq", "attributeValue": "44" } } ]


ClosedUpdate an Intelligence Model

Update an Intelligence Model PATCH method

Description

Use this endpoint to update the specified intelligence model.

URI Endpoint

/rest/v19/intelligenceSetup/models/{modelId}

Endpoint Parameters

modelId

The intelligence model Id

HTTP Method

PATCH

Request Body Parameters

analyticsType

(required) The analytics type.

Allowed Values: "productRecommendation"

customerAlsoBought

Indicates whether to perform the customer also bought analysis.

dateFilter

The Id of the attribute used in the date filter.

description

Description of the intelligence model.

documentId

The Commerce document Id.

documentName

Name of the source document.

duration

The duration of the date filter.

Allowed Values: "NONE", "THIRTYDAYS", "SIXTYDAYS", "SIXMONTHS", "ONEYEAR", "TWOYEAR", "ALL"

filters

List of filters to be applied for the intelligence model.

frequentlyBoughtTogether

Indicates whether to perform the frequently bought together analysis.

id

Id of the intelligence model.

maxNumOutput

The maximum number of outputs.

name

(required) Name of the intelligence model.

processId

The Commerce process Id.

processName

Name of the source process.

trainings

List of trainings for the intelligence model.

Success Response

204

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v19/intelligenceSetup/models/334523


ClosedSample Request Body

{ "frequentlyBoughtTogether": true, "customerAlsoBought" : true, "topPicks": false }


Intelligence Model Filters

ClosedAdd an Intelligence Model Filter

Add an Intelligence Model FilterPOST method
Description

Use this endpoint to create an intelligence model filter.

URI Endpoint

/rest/v19/intelligenceSetup/models/{modelId}/filters

Endpoint Parameters

modelId

The intelligence model Id

HTTP Method

POST

Request Body Parameters

attributeId

(required) ID of the attribute used on the left hand side of the filter.

attributeLabel

Label of the attribute used on the left hand side of the filter.

attributeValue

(required) Value on the right hand side of the filter.

attributeValueLabel

Label of the attribute used as the Value on the right hand side of the filter. If this value is static, then this will just be the value.

operator

(required) Operator used in the filter.

Allowed Values: [ "_eq", "_not_eq", "_gr", "_le", "_gr_eq", "_le_eq", "_none", "_like", "_notlike", "_emp", "_not_emp" ]

Response Body Parameters

_proxy_id

The proxy identifier for the resource that was added.

attributeId

(required) ID of the attribute used on the left hand side of the filter.

attributeLabel

Label of the attribute used on the left hand side of the filter.

attributeValue

(required) Value on the right hand side of the filter.

attributeValueLabel

Label of the attribute used as the Value on the right hand side of the filter. If this value is static, then this will just be the value.

createdBy

The details of the user who created the record.

dateAdded

Creation date of the intelligence model filter.

dateModified

Last modified date of the intelligence model filter.

id

Id of the intelligence model filter.

lastModifiedBy

The details of the user who modified the record.

operator

(required) Operator used in the filter.

Allowed Values: [ "_eq", "_not_eq", "_gr", "_le", "_gr_eq", "_le_eq", "_none", "_like", "_notlike", "_emp", "_not_emp" ]

ClosedURI Endpoint Sample

ClosedSample Request Body

ClosedSample Response Body


ClosedDelete an Intelligence Model Filter

Delete an Intelligence Model FilterDELETE method

Description

Use this endpoint to delete the specified intelligence model filter.

URI Endpoint

/rest/v19/intelligenceSetup/models/{modelId}/filters/{filterId}

Endpoint Parameters

modelId

The intelligence model Id

filterId

The intelligence model filter Id

HTTP Method

DELETE

Request Body Parameters

None

Success Response

204


ClosedGet All Intelligence Model Filters

Get All Intelligence Model Filters GET Method
Description

Use this endpoint to retrieve all intelligence model filters for the specified model.

URI Endpoint

/rest/v19/intelligenceSetup/models/{modelId}/filters

Endpoint Parameters

modelId

The intelligence model Id

Query Parameters

This endpoint supports the following optional parameters: fields, limit, offset, onlyData, orderby, q, and totalResults.

Refer to Manage Collections for additional information

HTTP Method GET
Request Body Parameters

None

Response Body Parameters

An array of intelligence model filter items:

_proxy_id

The proxy identifier for the resource that was added.

attributeId

(required) ID of the attribute used on the left hand side of the filter.

attributeLabel

Label of the attribute used on the left hand side of the filter.

attributeValue

(required) Value on the right hand side of the filter.

attributeValueLabel

Label of the attribute used as the Value on the right hand side of the filter. If this value is static, then this will just be the value.

createdBy

The details of the user who created the record.

dateAdded

Creation date of the intelligence model filter.

dateModified

Last modified date of the intelligence model filter.

id

Id of the intelligence model filter.

lastModifiedBy

The details of the user who modified the record.

operator

(required) Operator used in the filter.

Allowed Values: [ "_eq", "_not_eq", "_gr", "_le", "_gr_eq", "_le_eq", "_none", "_like", "_notlike", "_emp", "_not_emp" ]

ClosedURI Endpoint Sample

ClosedSample Response Body


ClosedGet an Intelligence Model Filter

Get an Intelligence Model Filter GET Method
Description

Use this endpoint to retrieve the specified intelligence model filter.

URI Endpoint

/rest/v19/intelligenceSetup/models/{modelId}/filters/{filterId}

Endpoint Parameters

modelId

The intelligence model Id

filterId

The intelligence model filter Id

Query Parameters

This endpoint supports the following optional parameters: expand and fields. Refer to Manage Collections for additional information

HTTP Method GET
Request Body Parameters

None

Response Body Parameters

_proxy_id

The proxy identifier for the resource that was added.

attributeId

(required) ID of the attribute used on the left hand side of the filter.

attributeLabel

Label of the attribute used on the left hand side of the filter.

attributeValue

(required) Value on the right hand side of the filter.

attributeValueLabel

Label of the attribute used as the Value on the right hand side of the filter. If this value is static, then this will just be the value.

createdBy

The details of the user who created the record.

dateAdded

Creation date of the intelligence model filter.

dateModified

Last modified date of the intelligence model filter.

id

Id of the intelligence model filter.

lastModifiedBy

The details of the user who modified the record.

operator

(required) Operator used in the filter.

Allowed Values: [ "_eq", "_not_eq", "_gr", "_le", "_gr_eq", "_le_eq", "_none", "_like", "_notlike", "_emp", "_not_emp" ]

ClosedURI Endpoint Sample

ClosedSample Response Body


ClosedUpdate Intelligence Model Filters

Update Intelligence Model FiltersPATCH method

Description

Use this endpoint to update intelligence model filters.

URI Endpoint

/rest/v19/intelligenceSetup/models/{modelId}/filters

Endpoint Parameters

modelId

The intelligence model Id

HTTP Method

PATCH

Request Body Parameters

The array of intelligence patch operations.

op

The operation to be performed. Allowed values: "add", "remove", and "replace".

path

The JSON pointer string for "path" property.

value

The target value. Refer to Update Intelligence Model Filter for more information.

Success Response

204

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v19/intelligenceSetup/models/334523/filters


ClosedSample Request Body

[{ "op": "add", "path": "/", "value": { "id": -1, "attributeId": 4356390, "operator": "_not_eq", "value": "55" }, { "op": "replace", "path": "/5435123", "value": { "value": "Healthcare" } }, { "op": "remove", "path": "/1234567" } ]


ClosedSample Response Body

[{ "_proxy_id": -1, "id": "321456" } ]


ClosedUpdate an Intelligence Model Filter

Update an Intelligence Model FilterPATCH method

Description

Use this endpoint to update the specified intelligence model filter.

URI Endpoint

/rest/v19/intelligenceSetup/models/{modelId}/filters/{filterId}

Endpoint Parameters

modelId

The intelligence model Id

filterId

The intelligence model filter Id

HTTP Method

PATCH

Request Body Parameters

attributeId

(required) ID of the attribute used on the left hand side of the filter.

attributeLabel

Label of the attribute used on the left hand side of the filter.

attributeValue

(required) Value on the right hand side of the filter. This value must either be the variable name of the source attribute or prefixed with '#SPECIFIC_' for static values.

attributeValueLabel

Label of the attribute used as the Value on the right hand side of the filter. If this value is static, then this will just be the value.

operator

(required) Operator used in the filter.

Allowed Values: [ "_eq", "_not_eq", "_gr", "_le", "_gr_eq", "_le_eq", "_none", "_like", "_notlike", "_emp", "_not_emp" ]

Success Response

204

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v19/intelligenceSetup/models/334523/filters/3023603684


ClosedSample Request Body

{ "attributeValue": "ORDERED" }


Intelligence Model Training

ClosedDelete an Intelligence Model Training

Delete an Intelligence Model TrainingDELETE method

Description

Use this endpoint to delete the specified intelligence model training.

URI Endpoint

/rest/v19/intelligenceSetup/models/{modelId}/trainings/{trainingId}

Endpoint Parameters

modelId

The intelligence model Id

trainingId

The training Id

HTTP Method

DELETE

Request Body Parameters

None

Success Response

204


ClosedDeploy Intelligence Model Training

Deploy Intelligence Model TrainingPOST method
Description

Use this endpoint to deploy the most recent training for the specified intelligence model.

URI Endpoint

/rest/v19/intelligenceSetup/models/{modelId}/actions/deploy

Endpoint Parameters

modelId

The intelligence model Id

HTTP Method

POST

Request Body Parameters

trainingId

The Id of the training to be deployed. It should be a training that has successfully completed but has not been deployed yet.

Response Body Parameters

analyticsInfo

Information about the training.

createdBy

The details of the user who created the record.

dateAdded

Creation date of the intelligence model training.

dateModified

Last modified date of the intelligence model training.

duration

The training duration.

id

The Id of the intelligence model training.

lastDeployed

Date of the training's last deployment.

lastModifiedBy

The details of the user who modified the record.

learningTimeElapsed

Learning time elapsed.

message

Training message.

status

The training status.

Allowed Values: [ "Started", "Completed", "Failed" ]

testErrorRate

Test error rate.

Training and Test Error Rates measure the accuracy of the recommendations made by the intelligence model. If the Training or Test Error Rates are too high, messages will display with recommended actions to improve the model’s recommendations.

totalRecords

Total number of records used for training.

trainingErrorRate

Training error rate.

Training and Test Error Rates measure the accuracy of the recommendations made by the intelligence model. If the Training or Test Error Rates are too high, messages will display with recommended actions to improve the model’s recommendations.

ClosedURI Endpoint Sample

ClosedSample Request Body

ClosedSample Response Body


ClosedGet All Intelligence Model Trainings

Get All Intelligence Model Trainings GET Method
Description

Use this endpoint to retrieve all trainings for the specified intelligence model.

URI Endpoint

/rest/v19/intelligenceSetup/models/{modelId}/trainings

Endpoint Parameters

modelId

The intelligence model Id

Query Parameters

This endpoint supports the following optional parameters: fields, limit, offset, onlyData, orderby, q, and totalResults.

Refer to Manage Collections for additional information

HTTP Method GET
Request Body Parameters

None

Response Body Parameters An array of intelligence model training items.

analyticsInfo

Information about the training.

createdBy

The details of the user who created the record.

dateAdded

Creation date of the intelligence model training.

dateModified

Last modified date of the intelligence model training.

duration

The training duration.

id

The Id of the intelligence model training.

lastDeployed

Date of the training's last deployment.

lastModifiedBy

The details of the user who modified the record.

learningTimeElapsed

Learning time elapsed.

message

Training message.

status

The training status.

Allowed Values: [ "Started", "Completed", "Failed" ]

testErrorRate

Test error rate.

Training and Test Error Rates measure the accuracy of the recommendations made by the intelligence model. If the Training or Test Error Rates are too high, messages will display with recommended actions to improve the model’s recommendations.

totalRecords

Total number of records used for training.

trainingErrorRate

Training error rate.

Training and Test Error Rates measure the accuracy of the recommendations made by the intelligence model. If the Training or Test Error Rates are too high, messages will display with recommended actions to improve the model’s recommendations.

ClosedURI Endpoint Sample

ClosedSample Response Body


ClosedGet an Intelligence Model Training

Get an Intelligence Model Training GET Method
Description

Use this endpoint to retrieve the specified intelligence model training.

URI Endpoint

/rest/v19/intelligenceSetup/models/{modelId}/trainings/{trainingId}

Endpoint Parameters

modelId

The intelligence model Id

trainingId

The training Id

Query Parameters

This endpoint supports the following optional parameters: expand and fields. Refer to Manage Collections for additional information

HTTP Method GET
Request Body Parameters

None

Response Body Parameters

analyticsInfo

Information about the training.

createdBy

The details of the user who created the record.

dateAdded

Creation date of the intelligence model training.

dateModified

Last modified date of the intelligence model training.

duration

The training duration.

id

The Id of the intelligence model training.

lastDeployed

Date of the training's last deployment.

lastModifiedBy

The details of the user who modified the record.

learningTimeElapsed

Learning time elapsed.

message

Training message.

status

The training status.

Allowed Values: [ "Started", "Completed", "Failed" ]

testErrorRate

Test error rate.

Training and Test Error Rates measure the accuracy of the recommendations made by the intelligence model. If the Training or Test Error Rates are too high, messages will display with recommended actions to improve the model’s recommendations.

totalRecords

Total number of records used for training.

trainingErrorRate

Training error rate.

Training and Test Error Rates measure the accuracy of the recommendations made by the intelligence model. If the Training or Test Error Rates are too high, messages will display with recommended actions to improve the model’s recommendations.

ClosedURI Endpoint Sample

ClosedSample Response Body


ClosedTrain an Intelligence Model

Train an Intelligence Model POST method
Description

Use this endpoint start an intelligence model training session.

URI Endpoint

/rest/v19/intelligenceSetup/models/{modelId}/actions/train

Endpoint Parameters

modelId

The intelligence model Id

HTTP Method

POST

Request Body Parameters

None

Response Body Parameters

analyticsInfo

Information about the training.

createdBy

The details of the user who created the record.

dateAdded

Creation date of the intelligence model training.

dateModified

Last modified date of the intelligence model training.

duration

The training duration.

id

The Id of the intelligence model training.

lastDeployed

Date of the training's last deployment.

lastModifiedBy

The details of the user who modified the record.

learningTimeElapsed

Learning time elapsed.

message

Training message.

status

The training status.

Allowed Values: [ "Started", "Completed", "Failed" ]

testErrorRate

Test error rate.

Training and Test Error Rates measure the accuracy of the recommendations made by the intelligence model. If the Training or Test Error Rates are too high, messages will display with recommended actions to improve the model’s recommendations.

totalRecords

Total number of records used for training.

trainingErrorRate

Training error rate.

Training and Test Error Rates measure the accuracy of the recommendations made by the intelligence model. If the Training or Test Error Rates are too high, messages will display with recommended actions to improve the model’s recommendations.

ClosedURI Endpoint Sample

ClosedSample Response Body


ClosedUndeploy Intelligence Model Training

Undeploy Intelligence Model TrainingPOST method
Description

Use this endpoint to undeploy the most recent training deployment for the specified intelligence model.

URI Endpoint

/rest/v19/intelligenceSetup/models/{modelId}/actions/undeploy

Endpoint Parameters

None

HTTP Method

POST

Request Body Parameters

None

Response Body Parameters

analyticsInfo

Information about the training.

createdBy

The details of the user who created the record.

dateAdded

Creation date of the intelligence model training.

dateModified

Last modified date of the intelligence model training.

duration

The training duration.

id

The Id of the intelligence model training.

lastDeployed

Date of the training's last deployment.

lastModifiedBy

The details of the user who modified the record.

learningTimeElapsed

Learning time elapsed.

message

Training message.

status

The training status.

Allowed Values: [ "Started", "Completed", "Failed" ]

testErrorRate

Test error rate.

Training and Test Error Rates measure the accuracy of the recommendations made by the intelligence model. If the Training or Test Error Rates are too high, messages will display with recommended actions to improve the model’s recommendations.

totalRecords

Total number of records used for training.

trainingErrorRate

Training error rate.

Training and Test Error Rates measure the accuracy of the recommendations made by the intelligence model. If the Training or Test Error Rates are too high, messages will display with recommended actions to improve the model’s recommendations.

ClosedURI Endpoint Sample

ClosedSample Response Body


ClosedUpdate Intelligence Model Trainings

Update Intelligence Model TrainingsPATCH method

Description

Use this endpoint to update intelligence model trainings.

URI Endpoint

/rest/v19/intelligenceSetup/models/{modelId}/trainings

Endpoint Parameters

modelId

The intelligence model Id

HTTP Method

PATCH

Request Body Parameters

The array of intelligence patch operations.

op

The operation to be performed. Allowed values: "add", "remove", and "replace".

path

The JSON pointer string for "path" property.

value

The target value. Refer to Update Intelligence Model Training for more information.

Success Response

204

ClosedURI Endpoint Sample

https://sitename.oracle.com/rest/v19/intelligenceSetup/models/334523/trainings


ClosedSample Request Body

[{ "op": "remove", "path": "/5435123" } ]


ClosedGet Commerce Process Data Columns

Get Commerce Process Data Columns GET Method
Description

Use this endpoint to retrieve all Data Columns for the specified Commerce Process.

URI Endpoint

/rest/v19/intelligenceSetup/models/lookups/commerceProcesses/{commerceProcessVarName}/dataColumns

Endpoint Parameters

modelId

The intelligence model Id

Query Parameters

This endpoint supports the following optional parameters: fields, limit, offset, onlyData, and totalResults. Refer to Manage Collections for additional information

HTTP Method GET
Request Body Parameters

None

Response Body Parameters

An array of data column items.

attributeId

Id of the attribute.

attributeLabel

The attribute label.

attributeVariableName

Variable Name of the attribute.

commerceDocumentVariableName

Variable Name of the commerce document.

createdBy

The details of the user who created the record.

Id

Id of the data column.

lastModifiedBy

The details of the user who modified the record.

links

The link relations associated with the resource instance.

menuItems

An array of menu items:

  • Display Value

  • Order Number

  • Value

type

Type of the attribute.

ClosedURI Endpoint Sample

ClosedSample Response Body


Related Topics

Related Topics Link IconSee Also