Returns the last visited specific products for a specific user, session and query.
"userLastViewedProducts" and "sessionLastViewedProducts" weight is calculated using the different between the last time there was an interaction with the product and "now". So, the more recent events will have more weight than others that happened long ago.
|client_id||Client identifier on the system|
|user||Identifier that represents an unique user along the client|
Identifier that represents an unique session for the given user along the client
If it's not specified there isn't session object in response
|query||Search term that user did|
|rows|| ||Number of products to return||5|
200 - successful request
400 - mandatory query parameter is missing
"error": "XXX is mandatory"
404 - either client or endpoint don't exist
"error": "XXX not found"