[CL] Issuing
In this section you'll find everything related to issuing electronic documents (DTE) in Chile through the Brinta API.
Document types
document_type | invoice_type | SII code | Name |
|---|---|---|---|
invoice | debit | 33 | Factura Electrónica |
invoice exempt | debit | 34 | Factura No Afecta o Exenta |
ticket | debit | 39 | Boleta Electrónica |
ticket exempt | debit | 41 | Boleta Exenta Electrónica |
purchase invoice | purchase | 46 | Factura de Compra Electrónica |
debit note | debit | 56 | Nota de Débito Electrónica |
debit note ticket | debit | 56 | Nota de Débito Electrónica |
credit note | credit | 61 | Nota de Crédito Electrónica |
credit note ticket | credit | 61 | Nota de Crédito Electrónica |
export | debit | 110 | Factura de Exportación |
debit note exports | debit | 111 | Nota de Débito de Exportación |
credit note exports | credit | 112 | Nota de Crédito de Exportación |
Related pages:
- Brinta API → XML Field Mapping: every field and the SII XML element it produces.
- Export Reason: required sale mode for export documents.
- Related Documents (relations): reference a purchase order, a service entry sheet (HES) or other documents in your DTE.
Invoice (Factura Electrónica, 33)
{
"e_invoice": true,
"currency": "CLP",
"supplier_company_id": "{{supplier_company_id}}",
"invoice_date": "2026-10-21",
"invoice_due_date": "2026-11-20",
"document_type": "invoice",
"invoice_type": "debit",
"invoice_external_id": "{{invoice_external_id}}",
"buyer": {
"company": {
"legal_name": "Buyer Company SpA",
"category_code": "{{giro}}",
"type": "business",
"address": {
"address_line_1": "Av. Apoquindo 1234",
"neighborhood": "Las Condes",
"city": "Santiago",
"country": "CL"
},
"tax_registrations": [
{
"number": "77000000-0",
"type": "RUT",
"level": "country",
"location": "CL"
}
]
}
},
"items": [
{
"name": "Test Service",
"description": "Servicio de prueba",
"quantity": 1,
"amount": 100000,
"item_external_id": "{{item_external_id}}",
"taxes": [
{
"name": "IVA",
"type": "VAT",
"rate": 0.19,
"rate_type": "percentage",
"amount": 19000
}
]
}
]
}Notes:
items[].amountis the net amount (without IVA). Whenquantityis greater than 1, also senditems[].unit_amount(net unit price).buyer.company.category_codeis the buyer's business activity (Giro).buyer.company.address.neighborhoodis the comuna.invoice_due_datesets the payment method: Cash when empty or equal toinvoice_date, Credit otherwise.- The buyer RUT is required for
invoice,invoice exemptandpurchase invoice.
Ticket (Boleta Electrónica, 39)
Same structure as the invoice, with document_type: "ticket". The buyer can be a person without a RUT: Brinta then uses the SII generic RUT (66666666-6).
{
"e_invoice": true,
"currency": "CLP",
"supplier_company_id": "{{supplier_company_id}}",
"invoice_date": "2026-10-21",
"document_type": "ticket",
"invoice_type": "debit",
"invoice_external_id": "{{invoice_external_id}}",
"buyer": {
"company": {
"legal_name": "Final Consumer",
"type": "person",
"address": {
"country": "CL"
}
}
},
"items": [
{
"name": "Test Product",
"quantity": 1,
"amount": 10000,
"taxes": [
{
"name": "IVA",
"type": "VAT",
"rate": 0.19,
"rate_type": "percentage",
"amount": 1900
}
]
}
]
}Credit Note (Nota de Crédito Electrónica, 61)
Reference the original document with original_invoice_id or original_invoice_external_id. Brinta builds the SII reference (document type, folio and date) from the original document. See API Credit Notes Creation for the general rules.
{
"e_invoice": true,
"currency": "CLP",
"supplier_company_id": "{{supplier_company_id}}",
"invoice_date": "2026-10-25",
"document_type": "credit note",
"invoice_type": "credit",
"reason": "void",
"original_invoice_external_id": "{{original_invoice_external_id}}",
"invoice_external_id": "{{invoice_external_id}}",
"buyer": {
"company": {
"legal_name": "Buyer Company SpA",
"type": "business",
"address": {
"country": "CL"
},
"tax_registrations": [
{
"number": "77000000-0",
"type": "RUT",
"level": "country",
"location": "CL"
}
]
}
},
"items": [
{
"name": "Test Service",
"quantity": 1,
"amount": 100000,
"taxes": [
{
"name": "IVA",
"type": "VAT",
"rate": 0.19,
"rate_type": "percentage",
"amount": 19000
}
]
}
]
}reason sets the reference reason sent to the SII:
reason | Reference reason |
|---|---|
void (or not sent) | Anulacion |
return | Cambio en items |
discount, debit note | Cambio en montos |
The original document must already be issued (have its SII folio) before the note is sent.
Debit notes work the same way, with document_type: "debit note" and invoice_type: "debit".
Export (Factura de Exportación, 110)
Use document_type: "export", a foreign buyer and the required export_reason. If the buyer has no RUT, Brinta uses the SII generic foreign RUT. See Export Reason.
Referencing a purchase order, HES or other documents
Many large buyers match each invoice against their purchase order (OC) or service entry sheet (HES) before paying it. To include those references in the DTE, use relations[]. See Related Documents (relations).
Updated about 9 hours ago
