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

DocumentMH codeinvoice_typedocument_typeGuide
Factura01debitticket[SV] Factura and Crédito Fiscal
Comprobante de Crédito Fiscal (CCF)03debitinvoice[SV] Factura and Crédito Fiscal Payload Examples
Nota de Remisión04transporttransport[SV] Nota de Remisión
Nota de Crédito05creditcredit note[SV] Credit and Debit Notes
Nota de Débito06debitdebit note[SV] Credit and Debit Notes
Evento de Retorno18creditcredit 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 NIT and your NRC.
  • Economic activity: category_code, your MH activity code (for example 62090).
  • Address: address_line_1, state and municipality_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

FieldRequiredNotes
supplier_company_idYesBrinta ID of the issuing company. You can send supplier_external_company_id instead.
invoice_typeYesSee Supported documents.
document_typeYesSee Supported documents.
invoice_dateYes"2026-10-27"
currencyYesUSD.
payment_modelYes on 01, 03 and 06See Payment. Not sent on a Nota de Remisión.
payment_methodsNoSee Payment.
invoice_external_idNoYour own ID for the document.
additional_infoNoPrinted 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":

typeUse
NITCompanies and taxpayers. Required on a CCF, credit note and debit note.
NRCTaxpayer registration number, sent next to the NIT. Required on a CCF, credit note and debit note.
DUISalvadoran individuals, on a Factura. 9 digits; a dash, if sent, is removed.
passportForeign individuals.
resident cardForeign residents.
otherFinal 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

FieldNotes
address_line_1Street address.
stateISO 3166-2 department code, for example SV-SS (San Salvador).
municipality_code4 digits: the MH municipio (first 2) and the distrito (last 2). For example 2005 is municipio 20, distrito 05.
countrySV.

Send address_line_1 and municipality_code together: the buyer's address is printed on the document only when both are present.

stateDepartmentstateDepartment
SV-AHAhuachapánSV-SASanta Ana
SV-CACabañasSV-SMSan Miguel
SV-CHChalatenangoSV-SOSonsonate
SV-CUCuscatlánSV-SSSan Salvador
SV-LILa LibertadSV-SVSan Vicente
SV-MOMorazánSV-UNLa Unión
SV-PALa PazSV-USUsulutá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 }
]
typecode
cash01
debit card02
credit card03
bank transfer05

Items

FieldNotes
nameItem description.
quantityWhole numbers only.
unit_amountUnit price without VAT, on every document type.
amountquantity × unit_amount, without VAT.
discountLine discount, without VAT.
final_amountLine total with VAT. The document total is the sum of these.
item_external_idYour item code, up to 25 characters.
categories[] list typegoods or services.
categories[] list unitMH 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[].codeTreatment
(none)Taxed (venta gravada), VAT 13%.
exemptExempt (venta exenta).
not subjectNot subject (venta no sujeta).
not taxedCharge 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:

FieldWhat it is
statuscreated when MH certified it, failed when MH rejected it.
idBrinta's ID. In upper case it is the DTE's código de generación.
invoice_keyMH control number, for example DTE-01-M001P001-000000500000065.
pdf_urlThe printable representation.
file_alt_urlThe signed DTE (JSON) that MH received. In El Salvador this JSON is the legal document; there is no XML.
external_file_urlMH's public lookup page for the document.
errorsOn 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.


Did this page help you?