Get Recommendation

This endpoint will return all recommendation of provided productIds.

GET#

https://api.altoshift.com/recommendation

Parameter#

FieldTypeDescription
tokenStringIdentifier of recommendation engine, use search token when hit this endpoint
itemsId[]StringUnique id of the item

Request Param#

https://search.altoshift.com/recommendation?token=a25a7f18aaf35e92d8948237d60d4a10&itemId[]=1

Success 200#

FieldTypeDescription
successBooleanRequest was successful
recommendationObject[]List of recommendation
    idStringProductId of the recommended product
    titleStringTitle of the recommended product
    confidenceNumberConfidence of the recommended product

Success Response Example#

{
"success": true,
"recommendation": [
{
"id": "4",
"title": "item 4",
"confidence": 1
}
]
}