...
Instructions to use the skusearch endpoint to retrieve results only searching by an id. Useful to return results when a reference of product is detected.
Tell the team which field is the reference of the product you need to search by.
Step-by-step guide
You can search by reference using the skusearch function.
...
Parameter | Description | Data Type | Mandatory |
---|---|---|---|
terms | The query typed by the user | String | Yes |
start | This parameter is used to paginate results from a query | Integer | No |
rows | This parameter is used to paginate results from a query | Integer | No |
options | Object that may contain information about filters and other required data for example: scope | Object | No |
callback | Function that will be executed after sending data | Function | No |
Notes:
|
Code samples
Code Block | ||
---|---|---|
| ||
var options = { lang:'en', scope:'desktop' } empathySearch.skusearch('term', 1, 10, options, function(data){ //the data object will contain search results and links alert('test'); }); |
...