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

# Detalle de la factura del enlace (sin sesión)

> Mismo contrato que el detalle de «Mi cuenta». El enlace sirve varias veces hasta que vence.



## OpenAPI

````yaml /generated/specs/finance.json get /api/v1/invoice-links/{token}
openapi: 3.0.0
info:
  title: Raul API - Finanzas
  description: >-
    Facturas, boletas, ejecuciones de billing, cuentas por pagar y medios de
    pago.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.raul.ugps.io
    description: Production
security: []
tags: []
paths:
  /api/v1/invoice-links/{token}:
    get:
      tags:
        - invoice-links-public
      summary: Detalle de la factura del enlace (sin sesión)
      description: >-
        Mismo contrato que el detalle de «Mi cuenta». El enlace sirve varias
        veces hasta que vence.
      operationId: InvoiceLinkPublicController_getInvoice
      parameters:
        - name: token
          required: true
          in: path
          description: Token del enlace de factura
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AtlasPortalInvoiceDetailResponseDto'
        '404':
          description: >-
            Enlace inexistente, vencido, de una factura anulada o sin PDF:
            siempre el mismo 404, sin causa
        '429':
          description: Límite de solicitudes por IP
components:
  schemas:
    AtlasPortalInvoiceDetailResponseDto:
      type: object
      properties:
        contractVersion:
          type: number
          description: Versión del contrato; el consumidor acepta la vigente y la anterior
          example: 1
          minimum: 1
        invoice:
          $ref: '#/components/schemas/AtlasPortalInvoiceDetailDto'
      required:
        - contractVersion
        - invoice
    AtlasPortalInvoiceDetailDto:
      type: object
      properties:
        id:
          type: string
          format: uuid
        folio:
          type: string
          nullable: true
          example: F33-10452
        taxStatus:
          type: string
          enum:
            - pending
            - sent
            - accepted
            - rejected
            - creditNote
            - voided
        paymentStatus:
          type: string
          enum:
            - pending
            - paid
            - overdue
            - cancelled
        netAmount:
          type: number
          description: CLP sin decimales
          example: 250000
        taxAmount:
          type: number
          example: 47500
        totalAmount:
          type: number
          example: 297500
        amountPaid:
          type: number
          example: 0
        issueDate:
          type: string
          format: date
          example: '2026-08-01'
        dueDate:
          type: string
          format: date
          example: '2026-08-11'
        creditNote:
          nullable: true
          type: object
          allOf:
            - $ref: '#/components/schemas/AtlasPortalCreditNoteReferenceDto'
        payableOnline:
          type: boolean
          description: >-
            DTE con folio, no PAID/REFUNDED/CANCELLED y con saldo, y factura sin
            pagar ni anular: se puede pagar en línea (también en el pago
            múltiple)
        concept:
          type: string
          nullable: true
          example: Servicio GPS agosto
        publicNotes:
          type: string
          nullable: true
        period:
          type: string
          nullable: true
          example: 2026-08
        paymentTermsDays:
          type: number
          example: 10
        receiverName:
          type: string
          example: Transportes Ejemplo SpA
        dteId:
          type: string
          format: uuid
          nullable: true
          description: DTE vinculado (último no borrado con invoice_id); null sin DTE
        amountResidual:
          type: number
          nullable: true
          description: Saldo del DTE en CLP; null sin DTE
          example: 297500
        mpInitPoint:
          type: string
          nullable: true
        lines:
          description: Líneas en el orden del documento emitido
          type: array
          items:
            $ref: '#/components/schemas/AtlasPortalInvoiceLineDto'
      required:
        - id
        - folio
        - taxStatus
        - paymentStatus
        - netAmount
        - taxAmount
        - totalAmount
        - amountPaid
        - issueDate
        - dueDate
        - creditNote
        - payableOnline
        - concept
        - publicNotes
        - period
        - paymentTermsDays
        - receiverName
        - dteId
        - amountResidual
        - mpInitPoint
        - lines
    AtlasPortalCreditNoteReferenceDto:
      type: object
      properties:
        id:
          type: string
          format: uuid
        folio:
          type: string
          nullable: true
          example: NC61-212
        issueDate:
          type: string
          format: date
          example: '2026-07-20'
      required:
        - id
        - folio
        - issueDate
    AtlasPortalInvoiceLineDto:
      type: object
      properties:
        description:
          type: string
          example: Plan GPS Full · agosto 2026
        quantity:
          type: number
          description: Admite hasta dos decimales
          example: 1.5
        unitPrice:
          type: number
          description: Precio unitario neto en CLP; negativo en descuentos o ajustes
          example: 20000
        discountPercent:
          type: number
          minimum: 0
          maximum: 100
          example: 0
        amount:
          type: number
          description: Neto de la línea en CLP, con el descuento aplicado
          example: 30000
      required:
        - description
        - quantity
        - unitPrice
        - discountPercent
        - amount

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.