[SV] Factura and Crédito Fiscal Payload Examples
This page covers the two sale documents. Common fields (buyer, address, payment, items and taxes) are described in [SV] Issuing Electronic Documents (DTE).
| Document | MH code | invoice_type | document_type | Buyer |
|---|---|---|---|---|
| Factura | 01 | debit | ticket | Final consumer or business. Printed prices include VAT. |
| Comprobante de Crédito Fiscal (CCF) | 03 | debit | invoice | Taxpayer only, with NIT, NRC and economic activity. Printed prices exclude VAT. |
📮 Postman: New Ticket (Factura) and New Invoice (Credito Fiscal) in Invoicing - El Salvador.
Factura (01)
Send every amount without VAT, as on any other document. The Factura prints the prices with VAT included, and its total is the sum of the lines' final_amount.
Cash sale to a business
{
"supplier_company_id": "{{company_id}}",
"invoice_type": "debit",
"document_type": "ticket",
"invoice_date": "2026-10-27T09:00:00-06:00",
"currency": "USD",
"payment_model": {
"type": "CASH"
},
"payment_methods": [
{
"type": "cash",
"amount": 100
}
],
"buyer": {
"company": {
"name": "Cliente de Ejemplo",
"legal_name": "Cliente de Ejemplo, S.A. de C.V.",
"type": "business",
"email": "[email protected]",
"phone": "16754321",
"category_code": "62010",
"external_id": "cliente-ejemplo",
"address": {
"address_line_1": "Calle Principal 123, San Salvador",
"municipality_code": "2005",
"state": "SV-SS",
"country": "SV"
},
"tax_registrations": [
{
"type": "NIT",
"number": "06141811710015",
"level": "country",
"location": "SV"
},
{
"type": "NRC",
"number": "3328",
"level": "country",
"location": "SV"
}
]
}
},
"items": [
{
"name": "SERVICIO DE CONSULTORIA",
"quantity": 1,
"unit_amount": 88.5,
"amount": 88.5,
"discount": 0,
"final_amount": 100,
"item_external_id": "1",
"categories": [
{
"code": "services",
"list": "type"
},
{
"code": "99",
"list": "unit"
}
],
"taxes": [
{
"name": "IVA",
"type": "VAT",
"rate": 0.13,
"rate_type": "percentage",
"amount": 11.5,
"taxable_amount": 88.5,
"level": "country",
"location": "SV",
"adds_to_final_amount": true
}
]
}
]
}Final consumer (consumidor final)
Only a Factura accepts a buyer without a real ID. Send a tax registration of type other with number 00000000; legal_name is optional. address is still required: without the buyer's address, send only country.
"buyer": {
"company": {
"type": "person",
"email": "[email protected]",
"address": {
"country": "SV"
},
"tax_registrations": [
{
"type": "other",
"number": "00000000",
"level": "country",
"location": "SV"
}
]
}
}From USD 200, MH requires the buyer's name: send legal_name.
Individual with DUI
"tax_registrations": [
{
"type": "DUI",
"number": "012345678",
"level": "country",
"location": "SV"
}
]Other cases on a Factura
- Discount: send
discounton the line, without VAT, likeunit_amount. - Exempt, not subject or not taxed lines: see Tax treatment in the general page. A Factura can mix taxed, exempt, not subject and not taxed lines.
- Credit sale and split payment: see Payment in the general page.
Comprobante de Crédito Fiscal (03)
A CCF is the document a taxpayer needs to deduct VAT. The buyer must have NIT, NRC and category_code. Line prices exclude VAT, and the VAT is shown in the totals.
Cash sale
{
"supplier_company_id": "{{company_id}}",
"invoice_type": "debit",
"document_type": "invoice",
"invoice_date": "2026-10-27T09:00:00-06:00",
"currency": "USD",
"payment_model": {
"type": "CASH"
},
"payment_methods": [
{
"type": "cash",
"amount": 113.0
}
],
"buyer": {
"company": {
"name": "Cliente de Ejemplo",
"legal_name": "Cliente de Ejemplo, S.A. de C.V.",
"type": "business",
"email": "[email protected]",
"phone": "16754321",
"category_code": "62010",
"external_id": "cliente-ejemplo",
"address": {
"address_line_1": "Calle Principal 123, San Salvador",
"municipality_code": "2005",
"state": "SV-SS",
"country": "SV"
},
"tax_registrations": [
{
"type": "NIT",
"number": "06141811710015",
"level": "country",
"location": "SV"
},
{
"type": "NRC",
"number": "3328",
"level": "country",
"location": "SV"
}
]
}
},
"items": [
{
"name": "SERVICIO DE CONSULTORIA",
"quantity": 1,
"unit_amount": 100,
"amount": 100.0,
"discount": 0,
"final_amount": 113.0,
"item_external_id": "1",
"categories": [
{
"code": "services",
"list": "type"
},
{
"code": "99",
"list": "unit"
}
],
"taxes": [
{
"name": "IVA",
"type": "VAT",
"rate": 0.13,
"rate_type": "percentage",
"amount": 13.0,
"taxable_amount": 100.0,
"level": "country",
"location": "SV",
"adds_to_final_amount": true
}
]
}
]
}Exempt or not subject sale
"taxes": [
{
"name": "IVA",
"type": "VAT",
"rate": 0,
"rate_type": "percentage",
"amount": 0,
"taxable_amount": 100.00,
"code": "exempt"
}
]Use "code": "not subject" for a not subject sale.
VAT withholding (1%)
When the buyer is a large taxpayer (gran contribuyente) that withholds 1% of VAT, add a second VAT entry with withholding_type withholding, and send final_amount and the payment net of it:
"final_amount": 112.00,
"taxes": [
{
"name": "IVA",
"type": "VAT",
"rate": 0.13,
"rate_type": "percentage",
"amount": 13.00,
"taxable_amount": 100.00
},
{
"name": "IVA Retenido",
"type": "VAT",
"rate": 0.01,
"rate_type": "percentage",
"amount": 1.00,
"taxable_amount": 100.00,
"adds_to_final_amount": false,
"withholding_type": "withholding"
}
]Common rejections
| Reason | Fix |
|---|---|
Missing payment_model | Send payment_model.type. |
| Credit sale without a term | Send payment_model.terms, for example net 30. |
Several payment methods without code | Send code and amount on every payment_methods[] entry. |
| CCF to a final consumer, or without NRC | Use a Factura, or send the buyer's NIT, NRC and category_code. |
| Factura of USD 200 or more without a buyer name | Send legal_name. |
| Totals that do not add up | final_amount on each line must be amount − discount + VAT. |
| Distrito does not belong to the municipio | Check the 4-digit municipality_code. |
Updated about 1 month ago
