Method description
...
Parameter name | Required | Description | Default |
---|---|---|---|
user_id | Identifier that represents an unique user along the client | ||
session_id | 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 | ||
preferences.rows | Number of values of each field | 1 | |
last_products.rows | Number of products to return | 5 |
...
Code Block | ||
---|---|---|
| ||
{ "userPreferences": [ { "field": "brand", "values": [ {"value": "apple", "weight": 3}, {"value": "sony", "weight": 2.1} ] }, { "field": "gender", "values": [ {"value": "woman", "weight": 3} ] } ], "sessionPreferences": [ { "field": "brand", "values": [ {"value": "apple", "weight": 3} ] }, { "field": "gender", "values": [ {"value": "woman", "weight": 3} ] } ], "userLastViewedProducts": [ {"value":"213115", weight:"3"}, {"value":"213149", weight:"1.3"} ], "sessionLastViewedProducts": [ {"value":"213142", weight:"3"} ] } |
400 - mandatory query parameter is missing
...