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

# Obtener factura por ID

> Obtiene los detalles de una factura específica por su ID.



## OpenAPI

````yaml /openapi.json get /invoices/{invoiceId}
openapi: 3.1.0
info:
  title: Facturear API
  description: >-
    API completa para facturación electrónica en Argentina. Integra con AFIP y
    genera facturas electrónicas válidas de forma rápida y segura.
  version: 1.0.0
  contact:
    name: Facturear Support
    email: support@facture.ar
    url: https://facture.ar
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://facture.ar/api
    description: Servidor de producción
security:
  - apiKey: []
paths:
  /invoices/{invoiceId}:
    get:
      tags:
        - Facturas
      summary: Obtener factura por ID
      description: Obtiene los detalles de una factura específica por su ID.
      parameters:
        - name: invoiceId
          in: path
          description: ID de la factura
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Factura obtenida exitosamente
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Invoice'
        '404':
          description: Factura no encontrada
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Invoice:
      type: object
      required:
        - id
        - cuitId
        - amount
        - status
        - createdAt
      properties:
        id:
          type: string
          format: uuid
          description: ID único de la factura
        cuitId:
          type: string
          format: uuid
          description: ID del CUIT emisor
        amount:
          type: number
          format: float
          description: Monto de la factura
        description:
          type: string
          description: Descripción de la factura
        status:
          type: string
          enum:
            - pending
            - processing
            - completed
            - failed
          description: Estado de la factura
        invoiceNumber:
          type: string
          description: Número de factura generado por AFIP
        cae:
          type: string
          description: Código de Autorización Electrónica
        caeExpirationDate:
          type: string
          format: date
          description: Fecha de vencimiento del CAE
        qrCode:
          type: string
          description: Código QR de la factura
        pdfUrl:
          type: string
          format: uri
          description: URL del PDF de la factura
        createdAt:
          type: string
          format: date-time
          description: Fecha de creación
        updatedAt:
          type: string
          format: date-time
          description: Fecha de última actualización
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
          description: Código de error
        message:
          type: string
          description: Mensaje de error descriptivo
        details:
          type: object
          description: Detalles adicionales del error
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API Key para autenticación. Formato: test_sk_xxx para testing,
        prod_sk_xxx para producción.

````