Skip to main content
This page explains which electronic tax documents the invoices product returns, how to classify each document, and how Fintoc keeps them up to date. For every attribute, see the Invoice object.

Which documents you get

In Chile, the Servicio de Impuestos Internos (SII) publishes electronic tax documents (Documento Tributario Electrónico, DTE) in the taxpayer’s purchase and sales registry (Registro de Compras y Ventas). The registry includes the documents the taxpayer issues or receives. Fee receipts for professional services (boletas de honorarios) live in a separate registry. A Link created with the invoices product returns every document in the purchase and sales registry: invoices, credit and debit notes, dispatch guides, settlements, export documents, and receipt summaries. It returns both issued and received documents. It also returns the fee receipts the taxpayer issued and received. List invoices and Get an invoice return every document as an Invoice object, from either registry.

Issued and received documents

The issue_type attribute tells you the direction of the document from the point of view of the taxpayer who owns the Link. Filter by direction with the issue_type parameter of List invoices.

Classify a document

The Invoice object holds the attributes shared by every document. The institution_invoice field holds the detail the SII reports for that type of document: type, statuses, value-added tax (VAT) breakdown, and fee receipt data. Use the following attributes to tell the documents apart.

Document type

institution_invoice.document_type is the SII code of the document. For example, 33 is an electronic invoice, 61 is an electronic credit note, and 39 is an electronic receipt. See the full list in Document types. document_type is null for fee receipts, which the SII doesn’t code as an electronic tax document (DTE). Identify them with institution_invoice.is_services_invoice.

Fee receipts

When institution_invoice.is_services_invoice is true, the document is a fee receipt for professional services. institution_invoice.services_invoice then holds the receipt’s own data: the withheld amount, whether a third party issued it, and its status at the SII. Status values are VIG (valid), ANUL (annulled), ObR (observed), and VCA (valid with an annulment request). For any other document, is_services_invoice is false and services_invoice is null.

Summary documents

The SII reports some documents as a daily summary instead of one row per document. These are receipts (35, 38, 39, and 41), the special monthly voucher (47), and electronic payments (48). Fintoc returns one Invoice per day and document type for them, with the total of the day. For a summary document, institution_invoice.total_documents holds the number of documents grouped. The number, issuer, and receiver attributes are null, because the summary has no folio and no single counterparty.

Registry status

institution_invoice.invoice_status tells you in which tab of the purchase and sales registry the SII reports the document. Filter by registry status with the invoice_status parameter of List invoices.

Acknowledgment status

institution_invoice.confirmation_status shows the result of the SII’s acknowledgment or claim process (acuse de recibo) for a received invoice. The receiver has 8 calendar days to acknowledge or claim the invoice. If the receiver does nothing, the SII acknowledges it automatically. null is not a rejection and does not make the document invalid. The SII reports null in three cases: the document is still inside the 8-day term, the document type skips the acknowledgment process (receipts, credit and debit notes, and dispatch guides), or the document is issued and the counterparty has not acted. To know where the document stands, use invoice_status, accepted_at, and rejected_at.

Other attributes

  • institution_invoice.transaction_category is the classification the taxpayer gives to a received document in the purchase registry, such as Del Giro (part of the business activity), Supermercado, or Activo Fijo. It is null when the SII doesn’t report it.
  • institution_invoice.has_note is true when a credit or debit note references the document.
  • Amounts (total_amount, net_amount, institution_invoice.exempt_amount, institution_invoice.vat_amount, and institution_invoice.other_taxes) are integers in CLP, the smallest unit of the currency.

Filter the list

List invoices returns the documents sorted by descending date, paginated. These parameters narrow the result set.

How Fintoc keeps invoices up to date

When your user creates the Link, Fintoc fetches the documents of the last 12 months. The documents become available after your user connects. Fintoc then refreshes the Link periodically with the refresh interval of your plan. Each refresh fetches the documents of the current and the previous month, because the SII can still change a document after the month closes. Fintoc sends the link.refresh_intent.succeeded event when a refresh finishes. If the refresh does not complete, Fintoc sends link.refresh_intent.failed. See the events reference for the payload. To refresh a Link created with the invoices product on demand, create a Refresh Intent.

Example

A received electronic invoice (document_type 33), already part of the registry: