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

# Get Related Products

> Retrieve active related products for the items currently in the cart. Products already in the cart are excluded and results are de-duplicated. The number returned defaults to the store's configured related-products count and can be overridden with the `limit` query parameter.



## OpenAPI

````yaml /api-reference/openapi.json get /carts/{cartId}/relatedProducts
openapi: 3.0.0
info:
  title: Marzipan API
  version: 1.0.0
servers:
  - url: https://api.marzipan.co/v1
security:
  - tenantAuth: []
tags:
  - name: Account
    description: >-
      Account management endpoints including registration, login, and user
      details
  - name: Carts
    description: Shopping cart management endpoints
  - name: Products
    description: Product catalog and search endpoints
  - name: Subscriptions
    description: Subscription management and renewal endpoints
  - name: CMS
    description: Content management system endpoints
  - name: Messaging
    description: Message and communication endpoints
  - name: Search
    description: Search functionality endpoints
  - name: Settings
    description: >-
      Storefront settings and market detection used to configure the web
      components and checkout.
  - name: Analytics
    description: Storefront visit and attribution tracking.
  - name: Rewards
    description: >-
      Loyalty and rewards programme endpoints for the authenticated customer,
      covering points balance, tier status, perks, exclusive products and
      transaction history.
  - name: Forms
    description: Render and submit dynamic storefront forms defined in the CMS.
  - name: Events
    description: >-
      Check event availability, browse occurrences and recurring dates, generate
      ticket QR codes, and manage event waitlists (join, leave, check status,
      and claim promoted spots).
paths:
  /carts/{cartId}/relatedProducts:
    parameters:
      - name: cartId
        in: path
        required: true
        description: The unique identifier for the cart
        schema:
          type: string
          format: uuid
        example: 893ff86d-4453-4134-9f62-5c9b7a70d74e
    get:
      tags:
        - Carts
      summary: Get Related Products
      description: >-
        Retrieve active related products for the items currently in the cart.
        Products already in the cart are excluded and results are de-duplicated.
        The number returned defaults to the store's configured related-products
        count and can be overridden with the `limit` query parameter.
      parameters:
        - name: limit
          in: query
          required: false
          description: >-
            Maximum number of related products to return. Defaults to the
            store's configured related-products count.
          schema:
            type: integer
          example: 4
      responses:
        '200':
          description: A list of related products.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ProductSummary'
              example:
                data:
                  - id: 7f2a1c3b-9d8e-4f6a-b1c2-3d4e5f6a7b8c
                    name: Sea Salt Caramel Truffles
                    slug: sea-salt-caramel-truffles
                    price: 1200
                    productType: physical
        '404':
          description: Cart not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                message: No query results for model [Cart].
components:
  schemas:
    ProductSummary:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the product
        name:
          type: string
          description: Product name
        slug:
          type: string
          description: URL-friendly product identifier
        price:
          type: number
          format: float
          description: Product price
        productType:
          type: string
          enum:
            - physical
            - event
            - subscription
          description: Type of product
    Error:
      type: object
      properties:
        message:
          type: string
          description: Error message
      required:
        - message
  securitySchemes:
    tenantAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your API token.
      bearerFormat: JWT

````