Mexico - Response Codes
| Response Codes (SendDocumentToAuthority) | ||||
|---|---|---|---|---|
| Code | SubCodeError | Description | Comments | Actions |
| 0 | N/A | null | When the document was processed successfully (Success:true) | |
| XXX represents the PAC's response code | N/A | Description specific to the PAC's response codes | When the document is issued and the response code and message are obtained exactly as returned by the PAC. Example: ```sql "Code": "301", "Description": "301 | XML mal formado o con estructura inválida: cvc-enumeration-valid: Value '' is not facet-valid with respect to enumeration '[I, E, T, N, P]'. It must be a value from the enumeration. - Elemento: Comprobante", ``` |
| 500 | Q003 | ERROR Transforming File | When 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. |
| 500 | Q004 | ERROR Parsing File | When 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. |
| 500 | Q005 | Company not active to issue documents | When the company does not have document issuance enabled. | Contact Gosocket to check for a possible block due to financial reasons. |
| 500 | Q013 | Exception generated at that moment | ex.Message | When an error occurs during the document Signing process. |
| 504 | N/A | Timeout sending to PAC Mexico | When a document is issued and, at the time of sending it to the PAC, no response is received and a Timeout error is generated. | Wait a few minutes and resend the document. If the problem persists after several resend attempts, the case can be escalated to Gosocket. |
| 393 | N/A | Duplicate 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. |
| 401 | N/A | You 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. |
| G001 | N/A | The 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. |
| 7 | N/A | Error processing the request. Error Id: [Object] Date: [Object]. Error message: [Object] | When an unhandled exception occurs during the 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. |
| DNT | N/A | Non-tax document | When the document being sent corresponds to a Non-Tax Document. |
Some response examples
Code: 0 Description: null How to replicate it? A/. By issuing a document that is processed successfully
{
"Success": true,
"GlobalDocumentId": "7bb28640-8704-4209-0cf7-0ce406a05108",
"CountryDocumentId": "6B664439-784F-4640-ABE4-F1B32A8A7F0B",
"OtherData": {
"Country": "mx",
"Certifier": "GRUPO YACORD",
"AuthorityTimeStamp": "22/07/2025 16:02:44",
"BarCodeText": "https://verificacfdi.facturaelectronica.sat.gob.mx/default.aspx?id=6B664439-784F-4640-ABE4-F1B32A8A7F0B&re=EKU9003173C9&rr=CAVR781231UU4&tt=1206.40&fe=jVR2Ig=="
},
"Messages": [],
"ResponseValue": "PD94bWwgdmVyc2l...DQo8L2NmZGk6Q29tcHJvYmFudGU+",
"Code": "0",
"Description": null,
"ErrorException": null
}Code: XXX Description: Description specific to the PAC's response codes How to replicate it? A/. By issuing a document that is processed with errors
{
"Success": false,
"GlobalDocumentId": "19d0f772-9b2c-644d-94ea-7d6678dba5c0",
"CountryDocumentId": "",
"OtherData": {
"Country": "mx",
"Certifier": "GRUPO YACORD",
"AuthorityTimeStamp": "30/07/2025 10:08:00",
"BarCodeText": "https://verificacfdi.facturaelectronica.sat.gob.mx/default.aspx?id=&re=EKU9003173C9&rr=CAVR781231UU&tt=1206.40&fe=SbC6EQ=="
},
"Messages": [
"301,301|El valor del atributo RegimenFiscalReceptor [60] no corresponde a un registro del catálogo c_RegimenFiscal"
],
"ResponseValue": "PD94bWwgdmVyc2lvbj...ZkaTpDb21wcm9iYW50ZT4=",
"Code": "301",
"Description": "301|El valor del atributo RegimenFiscalReceptor [60] no corresponde a un registro del catálogo c_RegimenFiscal",
"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": "mx",
"Certifier": "GRUPO YACORD",
"AuthorityTimeStamp": "22/07/2025 16:00:36",
"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: 2a32c977-bc50-4f79-8752-0ca4ba0934ca Fecha: 2025-07-22"
],
"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": "mx",
"Certifier": "GRUPO YACORD",
"AuthorityTimeStamp": "22/07/2025 16:01:14",
"SubCodeError": "Q004"
},
"Messages": [
"Regla: ERROR, Reintento: Error parseando Archivo, verifique los campos de xml y reintente nuevamente.",
"System.FormatException: Input string was not in a correct format.\r\n at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)\r\n at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)\r\n at System.Convert.ToInt32(String value)\r\n at Gosocket.Document.ApplicationServices.ParserServices.ParserMX(XmlDocument xmlDocument) in D:\a\1\s\L3 Application\Gosocket.Document.ApplicationServices\ParserServices.cs:line 5953\r\n at Gosocket.Document.ApplicationServices.ParserServices.ParserXml(XmlDocument document, String country) in D:\a\1\s\L3 Application\Gosocket.Document.ApplicationServices\ParserServices.cs:line 48\r\n at Gosocket.Document.ApplicationServices.CountryServices.MexicoApplicationServices.MakeDocumentAndSend(String country, String mappingId, String data, String apiKey, Boolean sign, Boolean systemDefaultCertificate, Boolean async, Guid trackId, List`1 accountCodes, Boolean internalSystemUpload, String& senderCode, ProcessPerformanceLogData& procLogData, Dictionary`2 additionalData) in D:\a\1\s\L3 Application\Gosocket.Document.ApplicationServices\CountryServices\MexicoApplicationServices.cs:line 202"
],
"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: Q013 Description: Exception generated at that moment | ex.Message How to replicate it? A/. By specifying an issuer company with no certificate uploaded or that does not exist on the platform.
{
"Success": false,
"GlobalDocumentId": "00000000-0000-0000-0000-000000000000",
"CountryDocumentId": null,
"OtherData": {
"SubCodeError": "Q013"
},
"Messages": [
"Regla: ERROR, Reintento: al firmar el documento"
],
"ResponseValue": null,
"Code": "500",
"Description": "MSSign.10000 - El certificado no existe.",
"ErrorException": null
}Code: 393 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": "7bb28640-8704-4209-0cf7-0ce406a05108",
"CountryDocumentId": "6B664439-784F-4640-ABE4-F1B32A8A7F0B",
"OtherData": {
"Country": "mx",
"Certifier": "GRUPO YACORD",
"AuthorityTimeStamp": "22/07/2025 16:22:11"
},
"Messages": [
"Notificación: Documento enviado anteriormente con fecha 22-07-2025 a CAVR781231UU4",
" Codigo : 393, Descripcion : Documento duplicado"
],
"ResponseValue": "PD94bWwgdmVyc2lvbj0iMS4w...8L2NmZGk6Q29tcHJvYmFudGU+",
"Code": "393",
"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": "",
"OtherData": {
"Country": "mx",
"Certifier": "GRUPO YACORD",
"AuthorityTimeStamp": "30/07/2025 09:52:52"
},
"Messages": [
"ApiUser no Autorizado para emisor [EKU9003173C9] en sbx"
],
"ResponseValue": null,
"Code": "401",
"Description": "Esta enviando con el ApiUser a2f8137d-e74f-41ee-97b4-fb9f8205ace6 el cual no esta autorizado para su empresa (EKU9003173C9) en mx.",
"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": "mx",
"Certifier": "GRUPO YACORD",
"AuthorityTimeStamp": "22/07/2025 16:31:17"
},
"Messages": [],
"ResponseValue": null,
"Code": "G001",
"Description": "El documento no puede ser procesado debido a que tiene una fecha futura 22-07-2027",
"ErrorException": null
}Code: 7 Description: Error processing the request. Error Id: {trackId}. Date: {logDate}. Error message: {e.Message}.
How to replicate it? A/. Sending a document with an error in the XML format, for example leaving a node open without the >
{
"Success": false,
"GlobalDocumentId": "00000000-0000-0000-0000-000000000000",
"CountryDocumentId": null,
"OtherData": null,
"Messages": [],
"ResponseValue": "",
"Code": "7",
"Description": "Error al procesar la solicitud. Id de error: e52c5c9e-ec24-40d0-b4af-812ab07c2d9f Fecha: 2025-07-30. Mensaje de error: '<' is an unexpected token. The expected token is '>'. Line 11, position 5.",
"ErrorException": null
}