[CL] Related Documents (relations)
Overview
A Chilean DTE can carry references to other documents (SII Referencias). Large buyers often match each invoice against their purchase order (OC) or service entry sheet (HES), and an invoice without the reference they expect can be held at payment.
In Brinta you send these references in the root-level relations[] array. Each entry produces one reference in the XML:
| Brinta field | Required? | SII XML element | Notes |
|---|---|---|---|
relations[].document_type | Required | TpoDocRef | See the table below. |
relations[].invoice_type | Required | (Brinta-only) | See the table below. |
relations[].invoice_number | Required | FolioRef | Number of the referenced document. |
relations[].invoice_date | Required | FchRef | Format YYYY-MM-DD. |
relations[].relation_reason | Optional | RazonRef | Free text. |
You can send several relations in the same document, for example an OC and an HES.
Credit and debit notes keep the reference to the original invoice (original_invoice_id / original_invoice_external_id); any relations[] you send are added to it.
Document types
document_type | invoice_type | SII code | Name shown on the document |
|---|---|---|---|
purchase order | debit | 801 | Orden de Compra |
service entry sheet | debit | HES | Hoja de Entrada Servicio |
order note | debit | 802 | Nota de pedido |
contract | support_document | 803 | Contrato |
resolution | support_document | 804 | Resolución |
chile compra process | support_document | 805 | Proceso Chile Compra |
chile compra record | support_document | 806 | Ficha Chile Compra |
export customs declaration | transport | 807 | DUS |
bill of lading sea | transport | 808 | B/L (Conocimiento de embarque) |
bill of lading air | transport | 809 | AWB (Air Waybill) |
export transport | transport | 810 | MIC/DTA |
bill of lading road | transport | 811 | Carta de Porte |
customs export resolution | transport | 812 | Resolución del SNA donde califica Servicios de Exportación |
exchange deposit certificate | support_document | 814 | Certificado de Depósito Bolsa Prod. Chile |
exchange pledge voucher | support_document | 815 | Vale de Prenda Bolsa Prod. Chile |
exceptional payment term agreement | support_document | 820 | Código de Inscripción en el Registro de Acuerdos con Plazo de Pago Excepcional |
transport | transport | 52 | Guía de Despacho Electrónica |
To reference a DTE already issued through Brinta (for example, an invoice from a previous month), send only invoice_id or invoice_external_id plus relation_reason: Brinta takes the SII code, folio and date from that document.
Example — Invoice referencing an OC and an HES
{
"e_invoice": true,
"currency": "CLP",
"supplier_company_id": "{{supplier_company_id}}",
"invoice_date": "2026-10-21",
"document_type": "invoice",
"invoice_type": "debit",
"invoice_external_id": "{{invoice_external_id}}",
"buyer": {
"company": {
"legal_name": "Buyer Company SpA",
"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": "Maintenance service",
"quantity": 1,
"amount": 100000,
"taxes": [
{
"name": "IVA",
"type": "VAT",
"rate": 0.19,
"rate_type": "percentage",
"amount": 19000
}
]
}
],
"relations": [
{
"document_type": "purchase order",
"invoice_type": "debit",
"invoice_number": "4500265361",
"invoice_date": "2026-09-15"
},
{
"document_type": "service entry sheet",
"invoice_type": "debit",
"invoice_number": "{{hes_number}}",
"invoice_date": "{{hes_date}}",
"relation_reason": "HES {{hes_number}}"
}
]
}Resulting SII references:
| TpoDocRef | FolioRef | FchRef | RazonRef |
|---|---|---|---|
| 801 | 4500265361 | 2026-09-15 | |
| HES | {{hes_number}} | {{hes_date}} | HES {{hes_number}} |
Check with your buyer which reference they expect. Most buyers ask for the OC (801), and some also ask for the HES. Use the number exactly as it appears in the buyer's system.
Updated about 9 hours ago
