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

# Leer un producto



## OpenAPI

````yaml /api-reference/openapi.json get /v1/products/{id}
openapi: 3.1.0
info:
  title: Caudal Public API
  version: 1.0.0
  description: >-
    REST API for HORECA distributors to integrate their ERP with Caudal.
    Authenticate with an API key issued from the Caudal dashboard
    (WorkOS-backed). Pass it as 'Authorization: Bearer <key>'. Base URL:
    https://api.caudalflow.com
servers:
  - url: https://api.caudalflow.com
security:
  - bearerAuth: []
tags:
  - name: Pedidos
    description: Leer y crear pedidos.
  - name: Cuentas
    description: Leer y crear las cuentas de los clientes.
  - name: Productos
    description: Leer el catálogo.
paths:
  /v1/products/{id}:
    get:
      tags:
        - Productos
      summary: Leer un producto
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The resource.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Product'
        '400':
          $ref: '#/components/responses/Error'
          description: The request is malformed (code invalid_request).
        '401':
          $ref: '#/components/responses/Error'
          description: The API key is missing, invalid or not linked to an organization.
        '403':
          $ref: '#/components/responses/Error'
          description: The API key lacks the scope this route requires.
        '404':
          $ref: '#/components/responses/Error'
          description: No resource of this type carries that id in this organization.
        '429':
          $ref: '#/components/responses/Error'
          description: >-
            The organization exceeded its rate limit. Retry after the delay in
            Retry-After.
      security:
        - bearerAuth:
            - products:read
components:
  schemas:
    Product:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        sku:
          anyOf:
            - type: string
            - type: 'null'
        unit:
          anyOf:
            - type: string
            - type: 'null'
        price_per_unit:
          anyOf:
            - type: number
            - type: 'null'
        availability:
          type: string
          enum:
            - available
            - out_of_stock
            - discontinued
      required:
        - id
        - name
        - sku
        - unit
        - price_per_unit
        - availability
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - missing_api_key
                - invalid_api_key
                - insufficient_scope
                - rate_limited
                - not_found
                - invalid_request
                - idempotency_key_conflict
                - internal_error
                - erased_customer
                - order_items_unresolved
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
  responses:
    Error:
      description: Error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key issued from the Caudal dashboard. Scopes are enforced per route:
        orders:read, orders:write, accounts:read, accounts:write, products:read.

````