← Back to Invoice Viewer

SIFEN Electronic Invoice Format

Technical reference for the invoice viewer at invoice-viewer.expat-paraguay.top

1. What is SIFEN?

Sistema Integrado de Facturación Electrónica Nacional — Paraguay's electronic invoicing system, managed by the SET (Subsecretaría de Estado de Tributación). Citizens access it via the Ekuatia portal at ekuatia.set.gov.py.

2. File Format

The document file downloaded from the portal is XML with namespace http://ekuatia.set.gov.py/sifen/xsd. It has no file extension. The viewer parses it client-side using the browser's DOMParser.

3. Root Elements

ElementDescriptionExample
<rDE>Reception response — wraps the DE with a dVerFor fieldfacture1.xml
<DE>Electronic Document — the invoice itselfStandalone
<rEve>Event (cancellation, invalidation, endoso, etc.)Evento_v150.xsd

4. Schema Versions

The version is specified in <dVerFor>150</dVerFor> inside the rDE element.

5. Field Naming Conventions

PrefixMeaningExample
i*Integer codeiTipEmi, iTiDE, iAfecIVA
d*Data / descriptive text valuedRucEm, dNomEmi, dFeEmiDE
c*External code referencecMoneOpe (ISO 4217), cDepEmi (department)
g*Nested group (may repeat)gEmis, gActEco, gCamItem
ti*Integer enum type definitiontiTiDE
td*Text description type definitiontdDesTiDE
tc*Code type definitiontcActEco, tcCiuEmi
tg*Complex group type definitiontgEmis, tgCamItem

6. Document Types (iTiDE)

CodeSpanishEnglish
1Factura electrónicaElectronic Invoice
4Autofactura electrónicaSelf-Invoice
5Nota de crédito electrónicaCredit Note
6Nota de débito electrónicaDebit Note
7Nota de remisión electrónicaDelivery Note
9Boleta de venta electrónicaSales Receipt
10Boleta resimple electrónicaSimplified Receipt

7. Emission Types (iTipEmi)

CodeDescription
1Normal
2Contingencia

8. CDC (Código de Control del Documento Electrónico)

The CDC is a 44-character string in the DE element's Id attribute. It encodes the document's full identity:

01{RUC}{DV}{doc-type}{est}{punto-exp}{doc-number}{timestamp}{security-code}

Example: 0101234567500100100000001020250101100000000019
→ RUC 1234567-5, Factura electrónica (01), Est 001, Punto 001, Doc 0000001, 2025-01-01, security 100000000019

9. Key Data Sections

GroupContent
gOpeDEOperation data — emission type, security code, emitter info, fiscal info
gTimbTax stamp — document type, number, establishment, emission point, dates
gDatGralOpeGeneral data — emission date, commercial operation, issuer, receiver
gEmisIssuer — RUC, name, address, economic activities, responsible person
gDatRecReceiver — nature, name, document ID, country, address
gOpeComCommercial operation — transaction type, currency, tax, exchange rate, obligations
gDtipDEType-specific data — FE/AE/NCDE/NRE fields, items, payment, transport, RDE
gCamItemLine items — up to 999 items with description, quantity, price, IVA
gTotSubSubtotals and totals — subtotals by IVA rate, discounts, grand total
gCamCondPayment conditions — cash (gPaConEIni) or credit (gPagCred)
gTranspTransport — mode, vehicle, carrier, origin/destination (optional)
gCamDEAsocAssociated documents — references to other DEs (optional, up to 99)
gCamEspSector-specific — energy, insurance, supermarket, additional data
gCamFuFDOutside digital signature — QR code, additional info

10. Operation Types (iTiOpe)

CodeLabel
1B2B
2B2C
3B2G
4B2F

11. Transaction Types (iTipTra)

CodeDescription
1Venta de mercadería
2Prestación de servicios
3Mixto (Venta de mercadería y servicios)
4Venta de activo fijo
5Venta de divisas
6Compra de divisas
7Promoción o entrega de muestras
8Donación
9Anticipo
10Compra de productos
11Compra de servicios
12Venta de crédito fiscal
13Muestras médicas (Art. 3 RG 24/2014)

12. Tax Types (iTImp)

CodeTax
1IVA
2ISC
3Renta
4Ninguno
5IVA - Renta

13. IVA (VAT) Categories (iAfecIVA)

CodeDescriptionBaseRate
1Gravado IVATaxable5% or 10%
2Exonerado (Art. 100 - Ley 6380/2019)Exempt0%
3ExentoNot taxed0%
4Gravado parcial (Grav-Exento)Partially taxableMixed

14. ISC (Selective Consumption Tax) Categories (tcCatISC)

CodeSection
1Sección I — Cigarrillos, Tabacos, Esencias y otros derivados del Tabaco
2Sección II — Bebidas con y sin alcohol
3Sección III — Alcoholes y Derivados del alcohol
4Sección IV — Combustibles
5Sección V — Artículos considerados de lujo

15. ISC Tax Rates (tcTasaISC)

CodeRateCodeRate
11%716%
25%818%
39%920%
410%1024%
511%1134%
613%1238%

16. Payment Methods (iTiPago)

CodeMethodCodeMethod
1Efectivo12Valor fiscal
2Cheque13Valor comercial
3Tarjeta de crédito14Compensación
4Tarjeta de débito15Permuta
5Transferencia16Pago bancario
6Giro17Pago Móvil
7Billetera electrónica18Donación
8Tarjeta empresarial19Promoción
9Vale20Consumo Interno
10Retención21Pago Electrónico
11Pago por anticipo99Otro

17. Card Types (iDenTarj)

CodeBrandCodeBrand
1Visa5Panal
2Mastercard6Cabal
3American Express99Otro
4Maestro

18. Credit / Payment Conditions

Operation Condition (iCondOpe): 1 = Contado, 2 = Crédito

Credit Condition (iCondCred): 1 = Plazo, 2 = Cuota

Payment Processing (iForProPa): 1 = POS, 2 = Pago Electrónico, 9 = Otro

19. Exchange Rate Conditions (dCondTiCam / iCondAnt)

CodeCondition
1Global
2Por ítem

20. Receiver Nature (iNatRec) / Seller Nature (iNatVen)

CodeiNatReciNatVen
1ContribuyenteNo contribuyente
2No ContribuyenteExtranjero

21. Contributor / Legal Form Types (iTipCont)

CodeType
1Persona Física
2Persona Jurídica

22. Document Identity Types (iTipIDRec / tiTipDoc)

CodeDocument Type
1Cédula paraguaya
2Pasaporte
3Cédula extranjera
4Carnet de residencia
5Innominado (receiver only)
6Tarjeta Diplomática de exoneración fiscal (receiver only)
9Otro / free text

23. Presence Indicators (iIndPres)

CodeTypeCodeType
1Operación presencial5Operación bancaria
2Operación electrónica6Operación cíclica
3Operación telemarketing9Otro
4Venta a domicilio

24. Billing System (dSisFact)

CodeSystem
1Sistema de facturación del contribuyente
2SIFEN solución gratuita

25. Credit/Debit Note Reasons (iMotEmi)

CodeReason
1Devolución y Ajuste de precios
2Devolución
3Descuento
4Bonificación
5Crédito incobrable
6Recupero de costo
7Recupero de gasto
8Ajuste de precio

26. Delivery Note Reasons (iMotEmiNR / iMotivTras)

CodeReasonCodeReason
1Traslado por ventas8Traslado por transformación
2Traslado por consignación9Traslado para reparación
3Exportación10Traslado por emisor móvil
4Traslado por compra11Exhibición o Demostración
5Importación12Participación en ferias
6Traslado por devolución13Traslado de encomienda
7Traslado entre locales14Decomiso

27. Delivery Note Responsibility (iRespEmiNR)

CodeResponsible
1Emisor de la factura
2Receptor de la factura
3Empresa transportista
4Despachante de Aduanas (v150)
5Agente de transporte o intermediario (v150)

28. Transport

Transport Type (tiTTrans): 1 = Propio, 2 = Tercero

Transport Mode (iModTrans): 1 = Terrestre, 2 = Fluvial, 3 = Aéreo, 4 = Multimodal

Freight Responsibility (iRespFlete): 1 = Emisor, 2 = Receptor, 3 = Tercero, 4 = Agente intermediario (v150), 5 = Transporte propio (v150)

INCOTERMS (cCondNeg):

CodeMeaningCodeMeaning
CFRCosto y fleteEXWEn fábrica
CIFCosto, seguro y fleteFASFranco al costado del buque
CIPTransporte y seguros pagados hastaFCAFranco transportista
CPTTransporte pagado hastaFOBFranco a bordo
DAPEntregada en lugarDATEntregada en terminal
DDPEntregada derechos pagados

29. Relevancia de Mercaderías (cRelMerc)

CodeMeaning
1Tolerancia de quiebra
2Tolerancia de merma

30. Document Association Types (iTipDocAso)

CodeTypeCodeType
1Electrónico3Constancia Electrónica (v150)
2Impreso

31. Currency Codes (ISO 4217)

The SIFEN standard uses ISO 4217 3-letter codes. Most common in Paraguay:

CodeNameCodeName
PYGGuaraníBRLBrazilian Real
USDUS DollarARSArgentine Peso
EUREuro

The viewer supports all 170+ ISO 4217 codes.

32. Unit Measures (DNCP codes)

CodeSymbolNameCodeSymbolName
77UNIUnidad100HsHora
83kgKilogramos109M2Metros cuadrados
86gGramos110M3Metros cúbicos
87mMetros113DOCDocena
89LTLitros124PCEPiezas
97AAAño131BXCaja
98MEMes625KmKilómetros
99TNTonelada885GLGlobal

The viewer supports all 65+ DNCP unit measure codes.

33. Countries (ISO 3166-1 alpha-3)

240+ country codes. Most relevant for Paraguay:

CodeName (ES)CodeName (ES)
PRYParaguayCHNChina
ARGArgentinaDEUAlemania
BRABrasilFRAFrancia
USAEstados UnidosESPEspaña

34. Paraguay Departments

CodeNameCodeName
1CAPITAL11ALTO PARANA
2CONCEPCION12CENTRAL
3SAN PEDRO13NEEMBUCU
4CORDILLERA14AMAMBAY
5GUAIRA15PTE. HAYES
6CAAGUAZU16BOQUERON
7CAAZAPA17ALTO PARAGUAY
8ITAPUA18CANINDEYU
9MISIONES19CHACO
10PARAGUARI20NUEVA ASUNCION

35. How the Viewer Works

  1. Drag & drop the document file onto the page
  2. The browser's DOMParser parses the XML
  3. 500+ label mappings resolve field names to human-readable Spanish labels
  4. 42+ enum mappings resolve integer codes to descriptions (e.g. 1 → Factura electrónica)
  5. Code lists (ISO 4217 currencies, ISO 3166 countries, DNCP units, Paraguay departments) resolve external codes
  6. The viewer renders the invoice as HTML with 11 expandable sections
  7. All processing is 100% client-side — no data leaves the browser

36. XSD Schemas

The viewer's data mappings are derived from the official SIFEN XSD schemas published by the SET at http://ekuatia.set.gov.py/sifen/xsd/. The project includes a copy of 28 XSD files for reference in app/xsd/.

Key schemas: DE_Ekuatiai_v150.xsd, DE_Types_v150.xsd, Evento_v150.xsd, Evento_Types_v150.xsd, Monedas_v150.xsd, Paises_v100.xsd, Departamentos_v141.xsd, Unidades_Medida_v141.xsd, SIFEN_Types_v141.xsd.