Poq.SDK.Node

Home > @poq/sdk-sfcc > SearchService > search

SearchService.search() method

Method returns result for found products by provided criteria.

Signature:

search(authInfo: AuthInfo, appIdentifier: string, searchParams: ProductSearchRequest, currencyCode?: string, locale?: string): Promise<PoqResponse<SearchResponse>>;

Parameters

Parameter Type Description
authInfo AuthInfo The auth info to make request (credentials or token).
appIdentifier string The unique guid v4 app identifier.
searchParams ProductSearchRequest Search criterias and configuration of output.
currencyCode string (Optional) The ISO currency code is the three-letter alphabetic code that represent the various currencies used throughout the world.
locale string (Optional) The indicator carries information about locale.

Returns:

Promise<PoqResponse<SearchResponse>>

List of found products by provided criteria.