Skip to navigation

Natural-language product search

Understands a natural-language boutique/duty-free query (AI parse with a deterministic rules fallback — parsedSource reports which one actually served the request), hard-filters the visible product catalog (category/price ceiling/gender/recipient), then age-gates the result for the CURRENT member’s server-resolved age tier before ranking. seatId/memberSlot are UN-TRUSTED LOCATORS ONLY (never a trust assertion) — an absent or unbound member resolves the MOST-RESTRICTIVE age tier and is gated accordingly; there is no anonymous-search exception on this surface. Ranks via a vector index when available, a lexical fallback otherwise — mode is always reported honestly. Every result’s price is the product catalog’s own rate.

Authentication

AuthorizationBearer

OAuth authentication of the form <token>.

Headers

X-Session-IdstringRequired

The passenger-session locator (a within-tenant locator, never a trust assertion). A missing or key-unsafe value is rejected 400 before this handler runs.

Request

This endpoint expects an object.
querystringRequired
topKinteger or stringOptional
seatIdstring or nullOptional
memberSlotstring or nullOptional

Response

OK
correlationIdstring
parsedobject

The understood product query. source reports whether the AI parser or the deterministic rules fallback produced this result — never silently. Structurally carries no tenancy/persona/price field — nothing for a model to assert beyond the query’s own stated constraints.

resultslist of objects
candidateCountinteger or string

Candidates considered after the catalog hard-filter, before ranking/truncation to TopK.

totalItemsinteger or string

Total visible-catalog count before any filter.

ageExcludedCountinteger or string

Honest count of items the age gate removed — never papered over.

modestring

“vector” or “lexical” — which ranking mode actually served this request. Never silent.

schemaVersionstringOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error