El Salvador
In El Salvador every document is a DTE (Documento Tributario Electrónico) that the Ministerio de Hacienda (MH) has to certify before it is valid. You send the document to Brinta with POST /invoices; Brinta builds the DTE, submits it to MH and stores the result. This page covers what is common to every El Salvador document. Each document type has its own page with a full example.
📮 Postman: every document type has a ready-to-send request in the Invoicing - El Salvador folder of the Brinta Testing collection.
Supported documents
| Document | MH code | invoice_type | document_type | Guide |
|---|---|---|---|---|
| Factura | 01 | debit | ticket | [SV] Factura and Crédito Fiscal |
| Comprobante de Crédito Fiscal (CCF) | 03 | debit | invoice | [SV] Factura and Crédito Fiscal Payload Examples |
| Nota de Remisión | 04 | transport | transport | [SV] Nota de Remisión |
| Nota de Crédito | 05 | credit | credit note | [SV] Credit and Debit Notes |
| Nota de Débito | 06 | debit | debit note | [SV] Credit and Debit Notes |
| Evento de Retorno | 18 | credit | credit note ticket | [SV] Return Event (Evento de Retorno) |
Cancellation (invalidación) and contingency transmission are not available yet.
Before you start
Your company (the issuer) must be set up in Brinta with:
- Tax registrations: your
NITand yourNRC. - Economic activity:
category_code, your MH activity code (for example62090). - Address:
address_line_1,stateandmunicipality_code. - Email and phone: MH requires both on the issuer.
- Establishment and point of sale: your MH establishment and point-of-sale codes are registered during onboarding, for every document type you will issue.
Currency is always USD.
Root fields
| Field | Required | Notes |
|---|---|---|
supplier_company_id | Yes | Brinta ID of the issuing company. You can send supplier_external_company_id instead. |
invoice_type | Yes | See Supported documents. |
document_type | Yes | See Supported documents. |
invoice_date | Yes | "2026-10-27" |
currency | Yes | USD. |
payment_model | Yes on 01, 03 and 06 | See Payment. Not sent on a Nota de Remisión. |
payment_methods | No | See Payment. |
invoice_external_id | No | Your own ID for the document. |
additional_info | No | Printed as the document's observations (up to 500 characters). |
Buyer
Send the buyer inline in buyer.company, or reference a buyer company already created in Brinta.
Buyer ID
Send the buyer's ID in buyer.company.tax_registrations[], with level "country" and location "SV":
type | Use |
|---|---|
NIT | Companies and taxpayers. Required on a CCF, credit note and debit note. |
NRC | Taxpayer registration number, sent next to the NIT. Required on a CCF, credit note and debit note. |
DUI | Salvadoran individuals, on a Factura. 9 digits; a dash, if sent, is removed. |
passport | Foreign individuals. |
resident card | Foreign residents. |
other | Final consumer without an ID, Factura only. Number 00000000. |
An unknown type makes the document fail.
Economic activity
buyer.company.category_code is the buyer's MH economic activity code (for example 62010). It is required on a CCF, a Nota de Remisión, a credit note and a debit note.
Address
| Field | Notes |
|---|---|
address_line_1 | Street address. |
state | ISO 3166-2 department code, for example SV-SS (San Salvador). |
municipality_code | 4 digits: the MH municipio (first 2) and the distrito (last 2). For example 2005 is municipio 20, distrito 05. |
country | SV. |
Send address_line_1 and municipality_code together: the buyer's address is printed on the document only when both are present.
state | Department | state | Department | |
|---|---|---|---|---|
SV-AH | Ahuachapán | SV-SA | Santa Ana | |
SV-CA | Cabañas | SV-SM | San Miguel | |
SV-CH | Chalatenango | SV-SO | Sonsonate | |
SV-CU | Cuscatlán | SV-SS | San Salvador | |
SV-LI | La Libertad | SV-SV | San Vicente | |
SV-MO | Morazán | SV-UN | La Unión | |
SV-PA | La Paz | SV-US | Usulután |
Payment
payment_model.type is CASH (contado) or CREDIT (crédito). A credit sale needs a term in payment_model.terms, written as a number and a period: net 30, 30 days, 3 months, 1 year.
"payment_model": { "type": "CREDIT", "terms": "net 30" }On a credit sale you can leave payment_methods out.
payment_methods[] lists how the document is paid. With one method, type is enough. With more than one, every entry needs the MH payment code and its amount, and the amounts must add up to the document total:
"payment_methods": [
{ "type": "cash", "code": "01", "amount": 13.00 },
{ "type": "credit card", "code": "03", "amount": 100.00 }
]type | code |
|---|---|
cash | 01 |
debit card | 02 |
credit card | 03 |
bank transfer | 05 |
Items
| Field | Notes |
|---|---|
name | Item description. |
quantity | Whole numbers only. |
unit_amount | Unit price without VAT, on every document type. |
amount | quantity × unit_amount, without VAT. |
discount | Line discount, without VAT. |
final_amount | Line total with VAT. The document total is the sum of these. |
item_external_id | Your item code, up to 25 characters. |
categories[] list type | goods or services. |
categories[] list unit | MH unit of measure code, for example 59 (unit) or 99 (other). |
taxes[] | VAT 13%: type VAT, rate 0.13. See Tax treatment. |
Tax treatment
A taxed line carries VAT at 13%. For any other treatment, send the VAT at rate 0 and amount 0, with a code:
taxes[].code | Treatment |
|---|---|
| (none) | Taxed (venta gravada), VAT 13%. |
exempt | Exempt (venta exenta). |
not subject | Not subject (venta no sujeta). |
not taxed | Charge outside the tax base (no gravado), for example a deposit or a third-party charge. Send unit 99. |
"taxes": [
{ "name": "IVA", "type": "VAT", "rate": 0, "rate_type": "percentage", "amount": 0, "taxable_amount": 50.00, "code": "exempt" }
]A Nota de Remisión, credit note and debit note do not accept not taxed lines.
Response
POST /invoices answers right away with the invoice id. MH certifies the document within seconds; until then the status is received or in process. Check it with Get an invoice:
| Field | What it is |
|---|---|
status | created when MH certified it, failed when MH rejected it. |
id | Brinta's ID. In upper case it is the DTE's código de generación. |
invoice_key | MH control number, for example DTE-01-M001P001-000000500000065. |
pdf_url | The printable representation. |
file_alt_url | The signed DTE (JSON) that MH received. In El Salvador this JSON is the legal document; there is no XML. |
external_file_url | MH's public lookup page for the document. |
errors | On failed, the reasons. Fix the data and send it again. |
A rejected document still uses its control number. Send the corrected document as a new invoice.
Updated about 1 month ago
