List attribute options
Changed onReturns attribute options with their translations, ordered by sort order. Pass attribute_id to list one attribute's options — a boolean attribute returns its No (id 0) and Yes (id 1) options — and search to match the option label in the current locale or its admin name. Public endpoint.
Request
- Base URLhttp://localhost:8000/api/shop
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Only the options of this attribute. Returns 404 when the attribute does not exist.
Partial match on the option label (current locale) or admin name.
The collection page number
The number of items per page
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
List of attribute options.
Changes
- info
added the new optional
queryrequest parameterattribute_id - info
added the new optional
queryrequest parametersearch
- info