> ## 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 una factura del enlace de deuda (sin sesión)

> Mismo contrato que el detalle del enlace de factura. Acepta cualquier factura visible y no anulada del cliente del enlace, también una ya pagada.



## OpenAPI

````yaml /generated/specs/finance.json get /api/v1/debt-links/{token}/invoices/{invoiceId}
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/debt-links/{token}/invoices/{invoiceId}:
    get:
      tags:
        - debt-links-public
      summary: Detalle de una factura del enlace de deuda (sin sesión)
      description: >-
        Mismo contrato que el detalle del enlace de factura. Acepta cualquier
        factura visible y no anulada del cliente del enlace, también una ya
        pagada.
      operationId: DebtLinkInvoiceController_getInvoice
      parameters:
        - name: token
          required: true
          in: path
          description: Token del enlace de deuda
          schema:
            type: string
        - name: invoiceId
          required: true
          in: path
          description: Id de la factura del cliente del enlace
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AtlasPortalInvoiceDetailResponseDto'
        '404':
          description: >-
            Enlace inexistente, vencido o de un contacto que ya no es del
            cliente, o factura de otro cliente, anulada o inexistente: 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'
        collectionAccount:
          nullable: true
          description: >-
            Cuenta de cobro para pagar por transferencia: la cuenta bancaria
            marcada en Finanzas; null si no hay
          type: object
          allOf:
            - $ref: '#/components/schemas/AtlasPortalCollectionAccountDto'
      required:
        - contractVersion
        - invoice
        - collectionAccount
    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: >-
            Factura cobrable con saldo (su total menos lo pagado), con el DTE
            aceptado por el SII y con folio: 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 de la factura en CLP (su total menos lo pagado); null sin DTE
            o mientras el SII no lo acepta
          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
    AtlasPortalCollectionAccountDto:
      type: object
      properties:
        bankName:
          type: string
          example: Banco Ejemplo
        accountType:
          type: string
          enum:
            - checking
            - savings
            - demand
            - fintech
        accountNumber:
          type: string
          example: 12-345-67890-01
        holderName:
          type: string
          description: Razón social de la empresa; vacío si no la tiene
          example: Empresa Ejemplo SpA
        holderRut:
          type: string
          description: RUT de la empresa; vacío si no lo tiene
        billingEmail:
          type: string
          description: >-
            Correo de facturación o, si falta, el de contacto de la empresa;
            vacío si no tiene ninguno
      required:
        - bankName
        - accountType
        - accountNumber
        - holderName
        - holderRut
        - billingEmail
    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.