> ## 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.

# Descargar el EnvioDTE XML enviado al SII

> Descarga el XML firmado tal cual se subió al SII (solo DTEs de emisión SII-directa).



## OpenAPI

````yaml /generated/specs/finance.json get /api/v1/billing/invoices/{id}/dte-xml
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/billing/invoices/{id}/dte-xml:
    get:
      tags:
        - Invoices
      summary: Descargar el EnvioDTE XML enviado al SII
      description: >-
        Descarga el XML firmado tal cual se subió al SII (solo DTEs de emisión
        SII-directa).
      operationId: InvoiceDetailQueryController_getDteXml
      parameters:
        - name: id
          required: true
          in: path
          description: UUID de la factura
          schema:
            type: string
      responses:
        '200':
          description: XML del envío al SII
        '404':
          description: XML no disponible
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Token de sesión Better Auth para rutas de backoffice; las rutas de
        portal usan su token propio.

````

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