Developers

GetSearchCrossSelling

Usage

Use this method to retrieve search-related cross selling defined in the Knowledge instance.

client.getSearchCrossSelling(`options:Object`).then(function(response){
  //...
});

Mandatory parameters

Name Type Description
searchCrossSellingCode string Search cross-selling code.

Options

This method does not have any options.

Response data format

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.

Example

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}`);
    });
});