Which filters show on the shop
GET
/storefront/filters
const url = 'https://example.com/storefront/filters';const options = { method: 'GET', headers: {cookie: '__Host-bottle.session_token=<__Host-bottle.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/storefront/filters \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token>For every filter the shop could offer, switched on or not, whether it would show on All products with the products published now and the draft settings, and if not, why not. A filter only shows where it splits the products: some yes and some not, two different options, or two different numbers.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Each filter, in the shop’s order
Media typeapplication/json
object
filters
required
Array<object>
object
id
required
string
split
required
Shows: the filter shows on All products. noProducts: nothing is on the shop. unset: no product on the shop has it. same: every product has the same answer or number. oneOption: the products have one option between them.
string
Example
{ "filters": [ { "id": "gasType", "split": "shows" } ]}Not signed in
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}The plan does not include a shop
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not a member, or without the permission this needs
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
Media typeapplication/json
object
error
required
string
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}