Skip to main content
The SII (Servicio de Impuestos Internos) is Chile’s national tax authority. A DTE (Documento Tributario Electrónico) is a Chilean e-invoice or credit note issued through the SII. Sintropix imports DTEs from an SII feed and exposes them through the endpoints on this page so callers can read them and manage cross-DTE references (for example, a credit note referencing an original invoice). Sintropix does not emit DTEs on the caller’s behalf here; issuance happens in the SII portal or through an integration that populates the feed.
Source: apps/erp-backend/src/sii/sii.controller.ts. Base path: /api/entities/:entityId/sii.

GET /sii/document-types

List the SII document type catalog available to this Entity (invoice, credit note, debit note, and their variants).
  • Response: array of siiDocumentTypeSchema.

GET /sii/dte/:dteId

Fetch a single DTE with its detail, including line items and any references to or from other DTEs.
  • Response: dteDetailSchema.

POST /sii/dte/:dteId/references

Add a reference from this DTE to a target DTE. Used, for example, to record that a credit note credits a specific original invoice.
  • Body: CreateDteReferenceDto.
  • Response: the updated dteDetailSchema.

DELETE /sii/dte/:dteId/references/:targetDteId

Remove a previously added reference.
  • Response: the updated dteDetailSchema.

Status codes

Unverified: the exact fields of CreateDteReferenceDto (typically reference type and free-text reason). Refer to the DTO alongside the controller and @sintropix/api-contract for authoritative shapes.