API Reference
update Changelog

Tax Document Object

A Tax Document is an electronic invoice, credit note or similar document as registered with a tax authority, for example a DTE in the Registro de Compras y Ventas of Chile's SII. Tax documents belong to the tax profile (taxpayer) they were registered for and are listed via GET /v1/tax-profiles/{taxProfileId}/tax-documents.

Attributes

Field Type Description
id string Unique identifier for the tax document. Format: tdoc_ULID
taxProfileId string ID of the parent tax profile (the taxpayer)
direction string issued (a sale by the taxpayer) or received (a purchase)
kind string Normalized, country-neutral class: invoice, credit_note, debit_note, receipt, delivery_note, fee_receipt (professional-fee receipt with income-tax withholding, e.g. a Chilean boleta de honorarios), other
documentType string The tax authority's own type code. Chile (SII): 33 factura electrónica, 34 factura exenta, 46 factura de compra, 56 nota de débito, 61 nota de crédito, 110 factura de exportación, BHE boleta de honorarios electrónica
number string Document number (the folio in Chile). A string, since other countries use alphanumeric numbers
counterpartyTaxId string Tax id of the other party: the issuer for received documents, the receiver for issued ones (a RUT such as 96689310-9 in Chile)
counterpartyName string | null Counterparty's legal name
issuedDate string Issue date (YYYY-MM-DD)
receivedAt string | null ISO 8601 timestamp when the tax authority received the document
taxPeriod string Tax period the document is booked in (YYYY-MM). Can differ from the issue month, e.g. a purchase accepted the following month
subtotalAmount number Net taxable amount
exemptAmount number Tax-exempt amount
taxAmount number Headline VAT (IVA). The full tax breakdown is in details
totalAmount number Document total
currency string ISO 4217 currency code (CLP for SII)
status string Normalized registry state: accepted, pending (awaiting the receiver's acceptance), disputed (claimed by the receiver), excluded (registered but excluded from the taxpayer's books), voided (annulled by the issuer)
details object | null The tax authority's own fields, in the same {v, source, fields} envelope as transaction details. Treat every field as optional
createdAt string ISO 8601 timestamp when the document was first synced to Araucaria
lastSyncedAt string | null ISO 8601 timestamp of the last sync that saw this document

Amounts and signs

For fee_receipt documents, totalAmount and subtotalAmount are the gross fee and taxAmount is the income-tax withholding retained by the receiver (not VAT): the net amount paid is totalAmount - taxAmount. When the issuer pays the withholding itself (Chile: retención contribuyente), taxAmount is 0.

Amounts are reported positive, exactly as the tax authority registers them. The sign is implied by kind: when netting a period, subtract credit_note documents and add invoice and debit_note ones.

Sync window and removals

Each sync reads the last 12 tax periods. The tax authority's registry is mutable: a pending purchase can be accepted or claimed later, which updates status in place under the same id. A document that disappears from the registry stops being returned by the API.

SII details fields

For source: "cl_sii", details.fields may include: estado_rcv (SII's own section: REGISTRO, PENDIENTE, RECLAMADO, NO_INCLUIR), tipo_transaccion and descripcion_tipo_transaccion, fecha_recepcion, fecha_acuse_recibo, fecha_reclamo, evento_receptor and evento_receptor_leyenda, tasa_impuesto, tipo_docto_referencia and folio_docto_referencia (the document a credit or debit note corrects), plus tax-breakdown amounts such as monto_iva_no_recuperable, iva_uso_comun, monto_neto_activo_fijo, iva_activo_fijo, total_otros_impuestos and iva_no_retenido. Dates are reported as SII formats them (DD/MM/YYYY HH:mm:ss, Chile time).

Example

json
{
  "id": "tdoc_01HQ3K5J7X8Y9Z0A1B2C3D4E5F",
  "taxProfileId": "tprof_01HQ3K5J7X8Y9Z0A1B2C3D4E5F",
  "direction": "received",
  "kind": "invoice",
  "documentType": "33",
  "number": "184523",
  "counterpartyTaxId": "96689310-9",
  "counterpartyName": "Proveedor Ejemplo SpA",
  "issuedDate": "2026-03-12",
  "receivedAt": "2026-03-12T17:41:08.000Z",
  "taxPeriod": "2026-03",
  "subtotalAmount": 100000,
  "exemptAmount": 0,
  "taxAmount": 19000,
  "totalAmount": 119000,
  "currency": "CLP",
  "status": "accepted",
  "details": {
    "v": 1,
    "source": "cl_sii",
    "fields": [
      { "key": "estado_rcv", "label": "Estado RCV", "value": "REGISTRO" },
      { "key": "fecha_recepcion", "label": "Fecha Recepción", "value": "12/03/2026 14:41:08" }
    ]
  },
  "createdAt": "2026-03-15T14:30:00Z",
  "lastSyncedAt": "2026-03-15T14:30:00Z"
}