> ## Documentation Index
> Fetch the complete documentation index at: https://docs.merchantops.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Product Summary

> Return a product list enriched with price record statistics.

Mirrors the filter set on ``GET /api/products/`` so the same header
filter UI on the products page can drive this endpoint. When any
product-side filter is set, we resolve the matching product_key set
via ``ProductService.list_keys_matching`` and then aggregate pricing
only over that set.



## OpenAPI

````yaml /openapi/merchantops-public.json get /api/pricing/records/product-summary
openapi: 3.1.0
info:
  description: >-
    Public API for the MerchantOps product catalog, pricing, and publishing
    surface.
  title: MerchantOps API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.merchantops.ai
security: []
paths:
  /api/pricing/records/product-summary:
    get:
      tags:
        - Pricing
        - Pricing
        - Price Records
      summary: Get Product Summary
      description: |-
        Return a product list enriched with price record statistics.

        Mirrors the filter set on ``GET /api/products/`` so the same header
        filter UI on the products page can drive this endpoint. When any
        product-side filter is set, we resolve the matching product_key set
        via ``ProductService.list_keys_matching`` and then aggregate pricing
        only over that set.
      operationId: get_product_summary
      parameters:
        - description: Search products via Atlas Search
          in: query
          name: search
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Search products via Atlas Search
            title: Search
        - description: Filter by brand
          in: query
          name: brand
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by brand
            title: Brand
        - description: 'DEPRECATED: alias for `brand`'
          in: query
          name: brand_key
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: 'DEPRECATED: alias for `brand`'
            title: Brand Key
        - description: Filter by product type key
          in: query
          name: product_type
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by product type key
            title: Product Type
        - description: Filter by enrichment status
          in: query
          name: enrichment_status
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by enrichment status
            title: Enrichment Status
        - description: Filter by creator (user ID)
          in: query
          name: created_by
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by creator (user ID)
            title: Created By
        - description: Filter to products in the given catalog batch.
          in: query
          name: batch_key
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter to products in the given catalog batch.
            title: Batch Key
        - description: Filter by creation date (ISO 8601)
          in: query
          name: created_after
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by creation date (ISO 8601)
            title: Created After
        - description: Filter by creation date (ISO 8601)
          in: query
          name: created_before
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by creation date (ISO 8601)
            title: Created Before
        - description: Filter by update date (ISO 8601)
          in: query
          name: updated_after
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by update date (ISO 8601)
            title: Updated After
        - description: Filter by update date (ISO 8601)
          in: query
          name: updated_before
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by update date (ISO 8601)
            title: Updated Before
        - description: 'Repeatable: key:value (filters on products.properties)'
          in: query
          name: property_filter
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            description: 'Repeatable: key:value (filters on products.properties)'
            title: Property Filter
        - description: >-
            Sort field. One of: active_count, active_price_max,
            active_price_min, brand, draft_count, key, name, product_type,
            total_records, variant_count
          in: query
          name: sort_by
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Sort field. One of: active_count, active_price_max,
              active_price_min, brand, draft_count, key, name, product_type,
              total_records, variant_count
            title: Sort By
        - in: query
          name: sort_dir
          required: false
          schema:
            default: asc
            pattern: ^(asc|desc)$
            title: Sort Dir
            type: string
        - description: 'Temporal filter: current_price, next_future_price, date_range'
          in: query
          name: temporal_filter
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: 'Temporal filter: current_price, next_future_price, date_range'
            title: Temporal Filter
        - description: Start date for date_range filter (YYYY-MM-DD)
          in: query
          name: date_from
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Start date for date_range filter (YYYY-MM-DD)
            title: Date From
        - description: End date for date_range filter (YYYY-MM-DD)
          in: query
          name: date_to
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: End date for date_range filter (YYYY-MM-DD)
            title: Date To
        - in: query
          name: skip
          required: false
          schema:
            default: 0
            minimum: 0
            title: Skip
            type: integer
        - in: query
          name: limit
          required: false
          schema:
            default: 50
            maximum: 200
            minimum: 1
            title: Limit
            type: integer
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: X-Organization-ID
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Organization-Id
        - in: cookie
          name: stytch_session
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Stytch Session
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````