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

# Get product

> Retrieve a product by ID



## OpenAPI

````yaml /api-reference/link-product-openapi.json get /products/{id}
openapi: 3.0.0
info:
  title: Link Product API
  description: RESTful API for managing payment links, customers, and invoices
  version: 1.0.0
servers:
  - url: https://api.sandbox.cheqpay.mx/lps
    description: Sandbox environment
  - url: https://prod.cheqpay.mx/lps
    description: Production environment
security: []
tags:
  - name: Payment Links
    description: Operations related to payment links
  - name: Invoices
    description: Invoice creation and retrieval
  - name: Products
    description: Product management operations
paths:
  /products/{id}:
    get:
      tags:
        - Products
      summary: Get product
      description: Retrieve a product by ID
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            pattern: ^[a-f\d]{24}$
          description: Product ID (MongoDB ObjectId)
      responses:
        '200':
          description: Product retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Product'
        '400':
          description: Invalid product ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedError'
        '404':
          description: Product not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Product:
      type: object
      description: Product entity
      required:
        - _id
        - merchantId
        - name
        - price
      properties:
        _id:
          type: string
          description: MongoDB ObjectId
          pattern: ^[a-f\d]{24}$
        id:
          type: string
          description: Custom product identifier
        merchantId:
          type: string
          pattern: ^[a-f\d]{24}$
          description: Merchant identifier
        name:
          type: string
          description: Product name
        description:
          type: string
          description: Product description
        price:
          type: number
          minimum: 0
          description: Product price
        status:
          type: string
          enum:
            - active
            - inactive
          default: active
          description: Product status
        imageUrl:
          type: string
          description: Product image URL
        createdAt:
          type: string
          format: date-time
          description: Creation timestamp
        updatedAt:
          type: string
          format: date-time
          description: Last update timestamp
        deletedAt:
          type: string
          format: date-time
          nullable: true
          description: Soft deletion timestamp (null if not deleted)
    ValidationError:
      type: object
      description: Validation error response
      properties:
        message:
          type: string
          description: Error message
          example: Validation failed
    UnauthorizedError:
      type: object
      description: Unauthorized error response
      properties:
        message:
          type: string
          description: Error message
          example: Unauthorized
    NotFoundError:
      type: object
      description: Not found error response
      properties:
        message:
          type: string
          description: Error message
          example: Resource not found
    InternalError:
      type: object
      description: Internal server error response
      properties:
        message:
          type: string
          description: Error message
          example: Internal server error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for merchant authentication

````