Search-term redirect
Changed onCall before searching. When the term has a redirect URL in Marketing > Search Terms for the current channel and locale, the storefront sends the shopper there instead of showing results; redirectUrl is that URL, or null. suggestion is the "did you mean" term when the store searches with Elasticsearch (the product listing searches with it unless suggest=0), otherwise null. Returned as a list of one entry.
Request
- Base URLhttp://localhost:8000/api/shop
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
The search term.
Send 0 to skip the "did you mean" lookup; suggestion is then null.
Headers
Storefront API Key for authentication. Required for all shop/storefront API requests.
Locale code for localized data (e.g. "en", "fr", "ar"). Defaults to channel's default locale.
Channel code (e.g. "default"). Defaults to the current channel.
Currency code (e.g. "USD", "EUR", "INR"). Defaults to channel's base currency.
Response
The redirect for the term.
Changes
- info
endpoint added
- info