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

# Obtener un premio

> Devuelve un premio del comercio por su `id`, con sus ofertas por nivel y sus categorías. Si el premio no existe, o pertenece a otro comercio, responde 404.



## OpenAPI

````yaml /api-reference/openapi.json get /external/products/{id}
openapi: 3.0.0
info:
  title: API de Tienda de Puntos
  description: >-
    API pública de Tienda de Puntos. Permite sumar puntos por compra, consultar
    clientes, validar canjes y consumir cupones desde tu POS, ERP o e-commerce.


    Todas las llamadas se autentican con el header `x-api-key`.
  version: 0.0.1
  contact: {}
servers:
  - url: https://api.tiendadepuntos.com
    description: Producción
  - url: https://apidev.tiendadepuntos.com
    description: Desarrollo
security:
  - ApiKeyAuth: []
tags: []
paths:
  /external/products/{id}:
    get:
      tags:
        - Premios
      summary: Obtener un premio
      description: >-
        Devuelve un premio del comercio por su `id`, con sus ofertas por nivel y
        sus categorías. Si el premio no existe, o pertenece a otro comercio,
        responde 404.
      operationId: ExternalProductCatalogController_findOne
      parameters:
        - name: id
          required: true
          in: path
          description: ID del premio en Tienda de Puntos.
          schema:
            type: integer
            example: 771
      responses:
        '200':
          description: Premio encontrado.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  status:
                    type: integer
                    example: 200
                  message:
                    type: string
                    example: Request was successful
                  data:
                    $ref: '#/components/schemas/ExternalProductOutputDto'
                required:
                  - success
                  - status
                  - message
        '400':
          description: El cuerpo o los parámetros no pasaron la validación.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    example: 400
                  timestamp:
                    type: string
                    format: date-time
                    example: '2026-07-31T14:05:12.431Z'
                  path:
                    type: string
                    example: /external/tags/add
                  method:
                    type: string
                    example: POST
                  message:
                    type: string
                    example: Error de validación
                  errors:
                    type: array
                    nullable: true
                    items:
                      type: object
                  data:
                    type: object
                    nullable: true
        '404':
          description: >-
            Falta el header `x-api-key` (`Api Key is required`) o la API key no
            corresponde a ningún comercio (`Business not found`). También se usa
            cuando el recurso pedido no existe.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    example: 404
                  timestamp:
                    type: string
                    format: date-time
                    example: '2026-07-31T14:05:12.431Z'
                  path:
                    type: string
                    example: /external/tags/add
                  method:
                    type: string
                    example: POST
                  message:
                    type: string
                    example: Api Key is required
                  errors:
                    type: array
                    nullable: true
                    items:
                      type: object
                  data:
                    type: object
                    nullable: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ExternalProductOutputDto:
      type: object
      properties:
        id:
          type: number
          description: ID del premio.
          example: 771
        name:
          type: string
          description: Nombre del premio.
          example: Café gratis
        description:
          type: string
          description: Descripción larga.
          example: Un café de especialidad a elección.
          nullable: true
        shortDescription:
          type: string
          description: Descripción corta.
          example: Café a elección
          nullable: true
        image:
          type: string
          description: URL de la imagen principal.
          example: https://tdp-products.s3.amazonaws.com/771.png
          nullable: true
        isEnabled:
          type: boolean
          description: Si está deshabilitado, no se puede canjear desde la API.
          example: true
        stock:
          $ref: '#/components/schemas/ExternalProductStockOutputDto'
        offers:
          description: >-
            Precio en puntos según el nivel del cliente. El `productOfferId` que
            se usa para canjear se obtiene de acá.
          type: array
          items:
            $ref: '#/components/schemas/ExternalProductOfferOutputDto'
        categories:
          type: array
          items:
            $ref: '#/components/schemas/ExternalProductCategoryOutputDto'
        maxPurchases:
          type: number
          description: Máximo de canjes por cliente. `null` si no hay tope.
          example: null
          nullable: true
        createdAt:
          format: date-time
          type: string
          example: '2026-02-14T12:30:00.000Z'
        updatedAt:
          format: date-time
          type: string
          example: '2026-06-01T09:15:00.000Z'
      required:
        - id
        - name
        - description
        - shortDescription
        - image
        - isEnabled
        - stock
        - offers
        - categories
        - createdAt
        - updatedAt
    ExternalProductStockOutputDto:
      type: object
      properties:
        controlled:
          type: boolean
          description: Indica si el comercio lleva control de stock sobre este premio.
          example: true
        available:
          type: number
          description: >-
            Unidades disponibles. Solo tiene sentido cuando `controlled` es
            `true`.
          example: 12
      required:
        - controlled
        - available
    ExternalProductOfferOutputDto:
      type: object
      properties:
        productOfferId:
          type: number
          description: >-
            ID de la oferta. Es el `productOfferId` que consume `POST
            /external/exchange/product`.
          example: 4412
        points:
          type: number
          description: Puntos que cuesta el premio para este nivel.
          example: 500
        levelId:
          type: number
          description: Nivel al que aplica el precio. `null` si aplica a todos.
          example: 3
          nullable: true
        levelName:
          type: string
          description: Nombre del nivel.
          example: Nivel 2
          nullable: true
      required:
        - productOfferId
        - points
        - levelId
        - levelName
    ExternalProductCategoryOutputDto:
      type: object
      properties:
        id:
          type: number
          example: 7
        name:
          type: string
          example: Cafetería
      required:
        - id
        - name
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key del comercio. Se genera desde el panel de Tienda de Puntos, en
        Configuración → Integraciones.

````