The Spanish version is the authoritative reference. View in Spanish
πΈπ» El Salvador
This sheet assumes you know the xPOS-Core communication protocol. El Salvador is the only country with Pattern B: JSON output and validation against JSON Schema.
Summaryβ
| Aspect | Value |
|---|---|
country code | sv |
| Tax authority | DGII |
| Pattern | B β JSON with JSON Schema |
Supported inputType | json, xml, xdoc, txt |
| Extra endpoint | β |
| Output | Signed tax JSON (not XML) |
XSLT mappingβ
| XSLT | Use |
|---|---|
input_to_dte_sv.xslt | json and xml inputs β XML <root> β Gosocket XML. |
other_to_dte_sv.xslt | txt input β Gosocket XML. Does not go through input_to_dte. |
xdoc_to_dte_sv.xslt | xdoc input β Gosocket XML. Does not go through input_to_dte. |
dte_to_fiscal_sv.xslt | Gosocket XML β DGII tax JSON. |
custom_response_sv.xslt | Generates custom_response when applicable. |
Document types (typeDoc)β
WebSocket example uses
typeDoc=3.
El Salvador-specific response fieldsβ
El Salvador returns the core + full tax echo (statusCode/Description/Message, applicationResponse, timeGeneration/Validation).
countryIdentificationCode in El Salvador is the DGII generation code.
WebSocket exampleβ
Illustrative values. The structure is real; the data are examples. In El Salvador
outputandsignedXmlcontain a signed JSON DTE encoded in base64 (not XML, due to Pattern B).
{
"env": "sbx",
"operation": "consolidate",
"typeDoc": 3,
"country": "sv",
"inputType": "json",
"origin": "<issuer taxId>",
"document": { /* DTE El Salvador */ }
}Particular notesβ
- Pattern B: the
outputis JSON, not XML. Validation occurs against JSON Schema instead of XSD. - Publishes in Inbox-Gosocket.