StoreRouter

Happy Clothing's palette

Every Happy Clothing product, from every store that carries it, is tagged with a shade and a color family, so your app can filter the brand by the color a shopper asks for. See the request.

Mixing the palette…

Build it

Filter any search by color

Add a color_family facet for every shade of a broad color, or a color facet for one shade (a CSS color name such as darkseagreen). brand_slug keeps the search to Happy Clothing, across every store that carries it; add catalogs to search one store. A color in the query itself (“sage green linen shirt”) resolves to a shade on its own.

  • white
  • gray
  • black
  • red
  • orange
  • brown
  • yellow
  • green
  • blue
  • purple
  • pink
  • multicolor
RequestPOST /v1/products/search
curl -sS https://api.storerouter.ai/v1/products/search \  -H "Authorization: Bearer $OCTOGEN_PLATFORM_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "facets": [      {"name":"brand_slug","values":["happy-clothing"]},      {"name":"color_family","values":["pink"]}    ],    "limit": 10  }'