Use this method to retrieve search-related cross selling defined in the Knowledge instance.
client.getSearchCrossSelling(`options:Object`).then(function(response){
//...
});
Name | Type | Description |
---|---|---|
searchCrossSellingCode | string | Search cross-selling code. |
This method does not have any options.
This method calls the Knowledge API’s GET /cross-selling/search
endpoint. Please refer to the Responses section of that endpoint on the Knowledge API Routes page for the response format.
The following example retrieves cross selling by searchCode:
client.getSearchCrossSelling({searchCrossSellingCode:'saPQYregd='}).then(function(response){
response.data.results.forEach(function(result) {
console.log(`Result(${result.id}): ${result.name}`);
});
});