sii-chile

n8n node for SII Chile integration - Electronic Invoicing, RUT validation, UF/UTM indicators

Package Information

Released: 8 mo ago
Downloads: 7 weeklyΒ /Β 51 monthly
Latest Version: 2.0.0
Author: Manuel Reyes Bravo

Documentation

n8n-nodes-sii-chile πŸ‡¨πŸ‡±

Chile Electronic Invoicing for n8n - Issue receipts, invoices and more directly to SII.

SII Chile
n8n
License

✨ Features

  • βœ… Issue real DTEs to SII (Receipts, Invoices, Credit Notes, Debit Notes)
  • βœ… RUT Validation - Verify, format, calculate check digit
  • βœ… Economic Indicators - UF, UTM, Dollar, Euro, IPC (live data)
  • βœ… UF ↔ Pesos Conversion automatic
  • βœ… Query status of issued documents
  • βœ… Supports OpenFactura and SimpleAPI

πŸš€ Installation

n8n Cloud / Desktop

  1. Settings β†’ Community Nodes
  2. Search n8n-nodes-sii-chile
  3. Install

Self-hosted

npm install n8n-nodes-sii-chile

βš™οΈ Configuration

To issue DTEs you need:

Provider Free Plan Link
OpenFactura Yes (limited) panel.openfactura.cl
SimpleAPI Yes (100/month) simpleapi.cl
  1. Create an account with one of the providers
  2. Get your API Key
  3. Configure credentials in n8n

For local functions (RUT, Indicators):

No credentials needed - works without configuration.

πŸ“– Usage

Issue Electronic Receipt

// Input
{
  "tipoDte": 39,
  "rutReceptor": "66666666-6",
  "items": [
    { "nombre": "Product 1", "cantidad": 2, "precio": 10000 }
  ]
}

// Output
{
  "success": true,
  "folio": 12345,
  "tipo": 39,
  "tipoNombre": "Receipt",
  "total": 20000,
  "pdf": "https://...",
  "urlAutoservicio": "https://..."
}

Issue Electronic Invoice

{
  "tipoDte": 33,
  "rutReceptor": "76123456-7",
  "razonSocial": "Client Company SpA",
  "giro": "Technology Services",
  "direccion": "Main Ave 123",
  "comuna": "Santiago",
  "items": [
    { "nombre": "Monthly Service", "cantidad": 1, "precio": 100000 }
  ]
}

Validate RUT

// Input: "12.345.678-5"
// Output:
{
  "valid": true,
  "rut": "12.345.678-5",
  "dv": "5",
  "message": "βœ… Valid RUT"
}

Get UF

// Output:
{
  "indicator": "UF",
  "value": 38245.76,
  "date": "2024-01-15",
  "unit": "Pesos"
}

Convert UF to Pesos

// Input: 100 UF
// Output:
{
  "uf": 100,
  "pesos": 3824576,
  "valorUf": 38245.76,
  "formatted": "$3,824,576"
}

πŸ“‹ Supported Document Types

Code Document
33 Electronic Invoice
34 Exempt Electronic Invoice
39 Electronic Receipt
41 Exempt Electronic Receipt
61 Electronic Credit Note
56 Electronic Debit Note

πŸ”§ Available Operations

πŸ“„ Issue DTE

  • Issue Receipt
  • Issue Invoice
  • Issue Credit Note
  • Issue Debit Note

πŸ”’ RUT

  • Validate
  • Format (with dots and dash)
  • Clean (remove formatting)
  • Calculate Check Digit
  • Generate valid random RUT

πŸ’° Indicators (live data)

  • Get all indicators
  • UF for today or by date
  • UTM
  • Observed Dollar
  • Euro
  • IPC
  • Convert UF ↔ Pesos

πŸ“Š Query DTE

  • Document status
  • Download PDF
  • Download XML

🌐 Supported Providers

OpenFactura (Haulmer)

  • Most used in Chile
  • Simple REST API
  • Certification and Production
  • Documentation

SimpleAPI

πŸ’‘ Use Cases

  • E-commerce: Automatically issue receipts when order completes
  • SaaS: Generate automatic monthly invoices
  • ERP: Integrate electronic invoicing
  • Validation: Verify customer RUT in forms
  • Quotes: Automatically convert UF prices to pesos

🀝 Contributing

  1. Fork the repository
  2. Create branch: git checkout -b feature/new-feature
  3. Commit: git commit -am 'Add feature'
  4. Push: git push origin feature/new-feature
  5. Pull Request

πŸ“„ License

MIT License - see LICENSE

πŸ‘¨β€πŸ’» Author

Manu - LatamFlows

Automation for LATAM πŸš€


Need a custom integration? Contact me for custom node development.

Discussion