# Parametric Search for Product Parts

Search for product parts within a specific product using parametric attributes.

Endpoint: POST /product-parts/search
Version: 1.2.0
Security: ApiKeyAuth

## Security:

  - `ApiKeyAuth` (unknown)
    apiKey in header x-api-key

## Request fields (application/json):

  - `productId` (string, required)
    The product identifier to search within (required). Matched case-insensitively (`ra2a1` resolves to `RA2A1`). An unknown product returns `404`.
    Example: RA2A1

  - `limit` (integer)
    The number of results to return (default 10).

  - `offset` (integer)
    The page number for pagination (default 0). This is multiplied by limit to get the actual offset.

  - `filters` (array)
    Array of parametric attribute filters.

  - `filters.productPartAttributeId` (string, required)
    The attribute identifier to filter by. Matched case-insensitively. Use `GET /product-parts/attributes?productId=...` to list valid IDs for the product. An ID that is not an attribute of the product returns `400`.
    Example: field__segment_lcd_controller

  - `filters.values` (array)
    Values to match (OR operation within this array). Required when `operator` is omitted or is `eq`, `gt`, `gte`, `lt` or `lte`
(must be a non-empty array; ordered operators take a single numeric threshold, e.g. `[48]`).
Not allowed with `range`. Mutually exclusive with `min`/`max`.
    Example: ["Yes","Available"]

  - `filters.operator` (string)
    Comparison operator. `eq` (the default) accepts string, number and boolean `values`; `gt`, `gte`, `lt`, `lte` and `range`
are for numeric attributes. Use `values` with `eq`, `gt`, `gte`, `lt` and `lte`;
use `min` and/or `max` with `range`.
    Enum: "eq", "gt", "gte", "lt", "lte", "range"

  - `filters.min` (number)
    Minimum value. Only allowed with the `range` operator; mutually exclusive with `values`.

  - `filters.max` (number)
    Maximum value. Only allowed with the `range` operator; mutually exclusive with `values`. A `range` where `min` is greater than `max` returns `400`.

## Response 200:

  - `200` (unknown)
    Successful response

## Response 200 fields (application/json):

  - `data` (array)

  - `data.orderableId` (string)
    Orderable product part identifier.

  - `data.genericId` (string)
    Generic product identifier.

  - `data.status` (string)
    Part status.

  - `data.parametricAttributes` (array)
    Array of parametric attribute objects.

  - `data.parametricAttributes.productPartAttributeId` (string)

  - `data.parametricAttributes.attributeValues` (array)

  - `data.parametricAttributes.attributeName` (string)

  - `data.parametricAttributes.href` (string)

  - `data.href` (string)
    URL to the full product part details.

  - `pagination` (object)

  - `pagination.offset` (integer)
    The actual offset used (page * limit)

  - `pagination.limit` (integer)
    The number of items per page

  - `pagination.total` (integer)
    Total number of items matching the search

  - `pagination.has_more` (boolean)
    Whether there are more items available

  - `filters` (object)
    The filters that were applied.

## Response 400:

  - `400` (unknown)
    Bad request - missing required `productId`, invalid filters, an unknown `productPartAttributeId` for the product, or a `range` with `min` greater than `max`

## Response 400 fields (application/json):

  - `error` (string)

## Response 404:

  - `404` (unknown)
    Product not found. `productId` is matched case-insensitively, so only an ID that does not exist in any casing returns 404.

## Response 404 fields (application/json):

  - `error` (string)

## Response 500:

  - `500` (unknown)
    Internal server error

## Response 500 fields (application/json):

  - `error` (string)

