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

# Descargar el PDF del dictamen

> Redirige (`302`) a una URL firmada y temporal del PDF. Incluye el cálculo de costos si se adjuntó uno. Solo existe con `status` `resolved`; antes responde `409`.

La URL de la redirección es temporal: descargá el archivo en el momento y no la guardes. Con `curl`, usá `-L` para seguir la redirección:

```bash theme={null}
curl -L -o dictamen.pdf https://api.nomenclator.com.ar/v1/classifications/cls_7K4M2P9QX3RT/pdf \
  -H "Authorization: Bearer $NOMENCLATOR_API_KEY"
```


## OpenAPI

````yaml GET /classifications/{id}/pdf
openapi: 3.1.0
info:
  title: Nomenclator API
  version: 1.0.0
  termsOfService: https://nomenclator.com.ar/terminos
  contact:
    name: Nomenclator
    email: hola@nomenclator.com.ar
  summary: Clasificación arancelaria NCM de 8 dígitos para el MERCOSUR.
  description: >-
    Clasificá productos en NCM de 8 dígitos y consultá dictámenes desde tus
    sistemas, con las mismas reglas que la app. Cada clasificación queda en el
    historial de tu organización.
servers:
  - url: https://api.nomenclator.com.ar/v1
security:
  - apiKey: []
tags:
  - name: classifications
    description: Crear, consultar y listar clasificaciones.
  - name: reference
    description: Aranceles, aperturas SIM y catálogo de países.
  - name: account
    description: Saldo del plan y medidor de la API.
paths:
  /classifications/{id}/pdf:
    get:
      tags:
        - classifications
      summary: Descargar el PDF del dictamen
      description: >-
        Redirige (`302`) a una URL firmada y temporal del PDF. Incluye el
        cálculo de costos si se adjuntó uno. Solo existe con `status`
        `resolved`; antes responde `409`.
      operationId: getClassificationPdf
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            pattern: ^cls_[23456789ABCDEFGHJKMNPQRSTVWXYZ]{12}$
            title: Classification Id
          description: Id público de la clasificación, el que devolvió el `202` al crearla.
          example: cls_7K4M2P9QX3RT
      responses:
        '302':
          description: Redirección al PDF.
          headers:
            Location:
              description: URL firmada del PDF.
              schema:
                type: string
        '401':
          $ref: '#/components/responses/Problem'
        '404':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '429':
          $ref: '#/components/responses/RateLimited'
        '502':
          $ref: '#/components/responses/Problem'
        default:
          $ref: '#/components/responses/Problem'
      security:
        - apiKey:
            - read
components:
  responses:
    Problem:
      description: Error, en formato `application/problem+json` (RFC 9457).
      headers:
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    RateLimited:
      description: Superaste un límite de pedidos (`rate-limited`).
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
  headers:
    XRequestId:
      description: Id del pedido. Citalo si nos escribís por soporte.
      schema:
        type: string
        example: req_3NQ8VZ2K6MHT
    RetryAfter:
      description: Segundos que conviene esperar antes de reintentar.
      schema:
        type: integer
    RateLimitLimit:
      description: Pedidos permitidos en la ventana.
      schema:
        type: integer
    RateLimitRemaining:
      description: Pedidos que te quedan en la ventana.
      schema:
        type: integer
    RateLimitReset:
      description: Segundos hasta que la ventana se reinicia.
      schema:
        type: integer
  schemas:
    Problem:
      title: Problem
      type: object
      properties:
        type:
          type: string
          format: uri
          description: URI del tipo de error. Decidí por este campo.
        title:
          type: string
          description: Resumen fijo por tipo.
        status:
          type: integer
          minimum: 400
          maximum: 599
          description: Código HTTP.
        detail:
          type: string
          description: Qué pasó en este pedido. Se puede mostrar a una persona.
        instance:
          type: string
          description: Ruta del pedido.
        request_id:
          type: string
          pattern: ^req_[23456789ABCDEFGHJKMNPQRSTVWXYZ]{12}$
          description: Igual al header `X-Request-Id`.
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                description: Ruta del campo, como `items[2].ncm`.
              code:
                type: string
                description: Código de la falla.
              message:
                type: string
                description: Explicación que se puede mostrar.
            required:
              - field
              - code
              - message
            additionalProperties: false
          description: Campos inválidos. Solo en errores de validación.
      required:
        - type
        - title
        - status
        - detail
        - instance
        - request_id
      additionalProperties: {}
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: nmc_live_... / nmc_test_...
      description: >-
        API key de tu organización, creada en la app en **Ajustes → API**. Se
        manda como `Authorization: Bearer nmc_live_…`, nunca en la query string.
        Alcances: `read` (solo leer) y `classify` (clasificar y leer).

````