Skip to main content

El Salvador - Response Codes

Response Codes (SendDocumentToAuthority)
CodeSubCodeErrorDescriptionCommentsActions
001N/ARECEIVEDWhen the document was processed successfully (Success:true)
XXX represents the DGI's response codeN/ADescription specific to the DGI's response codesWhen the document is issued and the response code and message are obtained exactly as returned by the DGI. Example: json "Code": "020", "Description": "[resumen.montoTotalOperacion] CALCULO INCORRECTO" Interpret the response provided in Messages before resending the document. If you cannot find the error or the problem persists after several resend attempts, the case can be escalated to Gosocket.
500Q003ERROR Transforming FileWhen an error occurs during the process of transforming the DTE into the tax UBL.Interpret and correct the error provided in Messages before resending the document. If you cannot find the error or the problem persists after several resend attempts, the case can be escalated to Gosocket.
500Q004ERROR Parsing FileWhen an error occurs during the document parsing process.Interpret and correct the error provided in Messages before resending the document. If you cannot find the error or the problem persists after several resend attempts, the case can be escalated to Gosocket.
500Q005Company not active to issue documentsWhen the company does not have document issuance enabled.Contact Gosocket to check for a possible block due to financial reasons.
500Q006Pending process for document [Object], TrackId:[Object].When concurrent requests are received for sending the same document, because the system may not have finished processing it yet, this 1-minute lock is applied to guarantee document integrity and avoid rejections due to duplication.Wait 1 minute or confirm the document's status before sending it again. If the problem persists after 1 minute, the case can be escalated to Gosocket.
500Q021Error on the remote serverWhen the process carried out between the API and the Tax Authority (a process called compliance) does not return an error code, but rather a handled exception.Interpret the exception and make the necessary corrections, or if there is nothing to correct, wait a few minutes and resend the document. If the problem persists after several resend attempts, the case can be escalated to Gosocket.
99N091Duplicate document.When the document being sent is a duplicate and already exists, previously accepted, in Gosocket's records.Verify that the approved document exists in Inbox. Correct the series, the folio, or the document type if necessary, and resend.
401N/AYou are sending with the ApiUser {apiKey}, which is not authorized for your company ({senderCode}) in {country}.When the method is called using credentials that are not associated with the issuing company.Verify that you are using the correct ApiKey, which must correspond to the one authorized for the company issuing the document. If you cannot find the error or the problem persists after several resend attempts, the case can be escalated to Gosocket.
G001N/AThe document cannot be processed because it has a future date [Object]When the document is being issued with a future date.Verify the document's date and correct it before resending the document. If the problem persists after several resend attempts, the case can be escalated to Gosocket.
SV001N/AClient ContingencyWhen documents are being issued in contingency due to the client.
77N/ARule: Validating document schema FileWhen the document does not pass the schema validation process.Interpret and correct the error provided in the message before resending the document. If you cannot find the error or the problem persists after several resend attempts, the case can be escalated to Gosocket.
DNTN/ANon-tax documentWhen the document being sent corresponds to a Non-Tax Document.
DNT-02N/AThe non-tax document could not be stored because it has the same date and the same consecutive number, since it already exists on the platform and is referenced to an invoice in Accepted status.When a Non-Tax Document does not pass the validation of same date, consecutive number, and being referenced to an approved invoice.Verify the data mentioned in the response and make the necessary corrections before resending the document. If the problem persists after several resend attempts, the case can be escalated to Gosocket.
DNT-03N/AThe non-tax document could not be stored because it is already referenced to an invoice in Rejected status.When a Non-Tax Document does not pass the validation of being referenced to a rejected invoice.Verify the data mentioned in the response and make the necessary corrections before resending the document. If the problem persists after several resend attempts, the case can be escalated to Gosocket.
DNT-06N/AThe non-tax document could not be stored because it has the same consecutive number, the year of the date is the same, since it already exists on the platform and is referenced to an invoice in Accepted status.When a Non-Tax Document does not pass the validation of same year, consecutive number, and being referenced to an approved invoice.Verify the data mentioned in the response and make the necessary corrections before resending the document. If the problem persists after several resend attempts, the case can be escalated to Gosocket.
DNT-07N/AThe non-tax document could not be stored because it has the same consecutive number, the year of the date is the same, since it already exists on the platform and is referenced to an invoice in Rejected status.When a Non-Tax Document does not pass the validation of same year, consecutive number, and being referenced to a rejected invoice.Verify the data mentioned in the response and make the necessary corrections before resending the document. If the problem persists after several resend attempts, the case can be escalated to Gosocket.
DNT-08N/AThe non-tax document could not be stored because it has the same consecutive number, the year of the date is the same, since it already exists on the platform and it is associated with an electronic invoice that is in an active Smart Supply validation process.When a Non-Tax Document does not pass the validation of same year, consecutive number, and being referenced to an invoice with an active process in Smart Supply validations.Verify the data mentioned in the response and make the necessary corrections before resending the document. If the problem persists after several resend attempts, the case can be escalated to Gosocket.

Some response examples

Code: 001 Description: RECEIVED How to replicate it? A/. By issuing a document that is processed successfully

{
"Success": true,
"GlobalDocumentId": "afd3a7fe-c511-2448-b8fa-c48dadcf1f3d",
"CountryDocumentId": "3D5E61AF-FB58-472E-BF63-16058D9B9646",
"OtherData": {
"Country": "sv",
"Certifier": "DGI",
"AuthorityTimeStamp": "21/07/2025 16:07:07"
},
"Messages": [],
"ResponseValue": "ew0KICAiZ2VuZXJhd...kVDSUJJRE8iDQp9",
"Code": "001",
"Description": "RECIBIDO",
"ErrorException": null
}

Code: XXX Description: Description specific to the DGI's response codes How to replicate it? A/. By issuing a document that is processed with errors

{
"Success": false,
"GlobalDocumentId": "41c3d075-f362-dc58-9812-d98187aa89ac",
"CountryDocumentId": "C117C039-12E1-498C-840C-D017C9E0A14C",
"OtherData": {
"Country": "sv",
"Certifier": "DGI",
"AuthorityTimeStamp": "22/07/2025 16:42:55"
},
"Messages": [],
"ResponseValue": "ew0KICAiZ2VuZXJ...DT1JSRUNUTyINCn0=",
"Code": "020",
"Description": "[resumen.montoTotalOperacion] CALCULO INCORRECTO",
"ErrorException": null
}

Code: 500 SubCodeError: Q003 Description: ERROR Transforming File How to replicate it? A/. By specifying a mapping in the request that does not exist, for example "11111111-1111-1111-1111-11111111111a"

{
"Success": false,
"GlobalDocumentId": "00000000-0000-0000-0000-000000000000",
"CountryDocumentId": null,
"OtherData": {
"Country": "sv",
"Certifier": "DGI",
"AuthorityTimeStamp": "21/07/2025 16:10:54",
"SubCodeError": "Q003"
},
"Messages": [
"Regla: ERROR, Reintento: Error Transformando Archivo. Verifique el mapeo y reintente nuevamente.",
"Error Transformando Archivo, MSTransform.500 - Inicia proceso de transformación.No se encontro Xslt configurado.. Id error: 1d6677fc-56a6-47bf-9868-269ac14a7006 Fecha: 2025-07-21"
],
"ResponseValue": null,
"Code": "500",
"Description": "ERROR Transformando Archivo",
"ErrorException": null
}

Code: 500 SubCodeError: Q004 Description: ERROR Parsing File How to replicate it? A/. By sending the document's issue date in an invalid format, for example 2025/05/27

{
"Success": false,
"GlobalDocumentId": "00000000-0000-0000-0000-000000000000",
"CountryDocumentId": null,
"OtherData": {
"Country": "sv",
"Certifier": "DGI",
"AuthorityTimeStamp": "21/07/2025 16:09:59",
"SubCodeError": "Q004"
},
"Messages": [
"Regla: ERROR, Reintento: Error en el ParserXML, verifique el XML y reintente nuevamente.",
"Input string was not in a correct format."
],
"ResponseValue": null,
"Code": "500",
"Description": "ERROR Parseando Archivo",
"ErrorException": null
}

Code: 500 SubCodeError: Q005 Description: Company not active to issue documents How to replicate it? A/. There is no technique that can be shared to replicate this error, since it depends on internal configurations that the user cannot modify.

{
"Success": false,
"GlobalDocumentId": "00000000-0000-0000-0000-000000000000",
"CountryDocumentId": null,
"OtherData": {
"SubCodeError": "Q005"
},
"Messages": [],
"ResponseValue": "Empresa no activa",
"Code": "500",
"Description": "Empresa no activa para emitir",
"ErrorException": null
}

Code: 500 SubCodeError: Q006 Description: Pending process for document {code}, TrackId: {trackId}. How to replicate it? A/. Sending concurrent requests for the same document.

{
"Success": false,
"GlobalDocumentId": "00000000-0000-0000-0000-000000000000",
"CountryDocumentId": null,
"OtherData": {
"Country": "sv",
"Certifier": "DGI",
"AuthorityTimeStamp": "21/07/2025 16:24:02",
"SubCodeError": "Q006"
},
"Messages": [
"Regla: Ya Existe un proceso pendiente para este documento: DTE-1-001-236. (TipoDocumento-Serie-Folio)"
],
"ResponseValue": null,
"Code": "500",
"Description": "Proceso pendiente para el documento DTE-1-001-236, TrackId:01adc102-fa8c-46cc-acab-1153195c81ad.",
"ErrorException": null
}

Code: 99 SubCodeError: N091 Description: Duplicate document. How to replicate it? A/. Sending the same document (series-folio) issued on previous days with the current date

{
"Success": false,
"GlobalDocumentId": "afd3a7fe-c511-2448-b8fa-c48dadcf1f3d",
"CountryDocumentId": null,
"OtherData": {
"Country": "sv",
"Certifier": "DGI",
"AuthorityTimeStamp": "21/07/2025 16:15:55",
"SubCodeError": "N091"
},
"Messages": [
"Notificación: Documento enviado anteriormente con fecha 21-07-2025 a 06140109171067"
],
"ResponseValue": "PD94bWwgdmVyc2lvbj...9QZXJzb25hbGl6YWRvcz4KPC9EVEU+",
"Code": "99",
"Description": "Documento duplicado",
"ErrorException": null
}

Code: 401 Description: You are sending with the ApiUser {apiKey}, which is not authorized for your company ({senderCode}) in {country}. How to replicate it? A/. Calling the method with authentication credentials that are not associated with the issuing company.

{
"Success": false,
"GlobalDocumentId": "00000000-0000-0000-0000-000000000000",
"CountryDocumentId": null,
"OtherData": {
"Country": "sv",
"Certifier": "DGI",
"AuthorityTimeStamp": "21/07/2025 16:29:39"
},
"Messages": [
"ApiUser no Autorizado para emisor [06142709211090] en sbx"
],
"ResponseValue": null,
"Code": "401",
"Description": "Esta enviando con el ApiUser 6fd63884-0f2a-4027-b9fb-7547e5bd88c0 el cual no esta autorizado para su empresa (06142709211090) en sv.",
"ErrorException": null
}

Code: G001 Description: The document cannot be processed because it has a future date How to replicate it? A/. Setting an issue date more than 2 years in the future

{
"Success": false,
"GlobalDocumentId": "00000000-0000-0000-0000-000000000000",
"CountryDocumentId": null,
"OtherData": {
"Country": "sv",
"Certifier": "DGI",
"AuthorityTimeStamp": "21/07/2025 16:26:29"
},
"Messages": [],
"ResponseValue": null,
"Code": "G001",
"Description": "El documento no puede ser procesado debido a que tiene una fecha futura 21-07-2027",
"ErrorException": null
}

Code: SV001 Description: Client Contingency How to replicate it? A/. By sending a document in contingency due to the client

{
"Success": true,
"GlobalDocumentId": "706980ab-5322-f17b-2aa4-c2c4028909a1",
"CountryDocumentId": "1291ABA2-542C-1B0E-80E4-C13EF34851D9",
"OtherData": {
"Country": "sv",
"Certifier": "DGI",
"AuthorityTimeStamp": "21/07/2025 04:42:37"
},
"Messages": [
"Notificación: Contingencia por el Cliente."
],
"ResponseValue": null,
"Code": "SV001",
"Description": "Contingencia por el Cliente",
"ErrorException": null
}