Search and filter purchasable products
GET/products
SearchProducts over the ProductView projection. q runs full-text search (tsvector weights title A, category names A, attributes B, description C) with a pg_trgm similarity fallback for typos; filters combine with AND. Product-type queries also return category suggestions. Keyset pagination: limit (1-500, default 100) and the opaque cursor taken from the previous page's nextCursor; filters are repeated on every page. A query parameter the operation does not declare (for example the retired after) is a 400 unknown-query-parameter.
Request
Responses
- 200
- 400
- 422
- 500
The matching products, with facets and category suggestions.
invalid-limit, invalid-cursor, unknown-query-parameter (search only) or malformed-request (a NUL in the query string of any route).
validation-failed (q longer than 200 characters, unknown sort, a non-boolean inStock, a non-integer, negative or inverted price bound).
internal-error; the detail never carries the internal message.