Search Filters
Get Enabled Filters
GET https://api.bigcommerce.com/stores/{store_hash}/v3/settings/search/filtersRequest
Returns a list of enabled default Product Filtering filters. These filters will be used if a store does not have contextual overrides.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
example
Response
Body
object | application/json
dataarray[]
example-1
Update Enabled Filters
PUT https://api.bigcommerce.com/stores/{store_hash}/v3/settings/search/filtersRequest
Updates enabled default Product Filtering filters.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
Body
array | application/json
example-1
Response
Body
object | application/json
dataarray[]
example-1
Get Available Filters
GET https://api.bigcommerce.com/stores/{store_hash}/v3/settings/search/filters/availableRequest
Returns a list of filters available to power Product Filtering.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
- channel_id in query - integerNarrows the list of available filters based on channel ID. Only products currently assigned to the given Channel will be considered.
- category_id in query - integerNarrows the list of available filters based on category ID. You can display settings to show products from the provided category, subcategories only, or both the category and its child categories.
example
Response
Body
object | application/json
dataarray[]
example-1
Get Contextual Filters
GET https://api.bigcommerce.com/stores/{store_hash}/v3/settings/search/filters/contextsRequest
Returns a list of contextual filters enabled for a particular channel or category.
Usage Notes
Contextual filters allow you to configure the enabled filters per channel or category, so that shoppers can filter by the most relevant criteria.
The order of the returned filters will match the sort order of the filters on the storefront.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- channel_id in query - integerOnly return contextual overrides related to a particular Channel.
- category_id in query - integerOnly return contextual overrides related to a particular Category.
example
Response
OK
Body
object | application/json
dataarray[object]
example
Upsert Contextual Filters
PUT https://api.bigcommerce.com/stores/{store_hash}/v3/settings/search/filters/contextsRequest
Upserts contextual filters for a particular channel or category.
Usage Notes
Contextual filters allow you to configure the enabled filters per channel or category, so that shoppers can filter by the most relevant criteria.
You can change the order of the filters on the live site by changing the order of the filters you send.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
Body
array | application/json
contextobject
dataarray[]
example
Response
OK
Body
object | application/json
dataarray[object]
example
Did you find what you were looking for?