The Spanish version is the authoritative reference. View in Spanish
Mexico: Document Reception
1. OPERATION

Document reception flow for Mexico
- The provider has the option to issue the document in two ways:
- The provider manually uploads the XML through the Gosocket Upload (In the section Sending Method - Manual XML Upload the conditions to be considered for the submission are explained).
- The provider sends the XML file through the exchange mailbox (In the section Sending Method - Exchange Mailbox the conditions to be considered for the submission are explained).
Note: When the document reception channels are used, both the exchange mailbox and the manual XML upload via the
Upload , both processes execute the schema, signature, and validation checks with the ET (Tax Authority).
-
The Gosocket portal is responsible for downloading and processing this document. When it is a tax document, it enters a validation flow.
-
First, a schema validation is performed on the document to ensure it complies with the format established by the tax authority.
Depending on the validation performed, one of the following results can be obtained:
a. Failed: The document does not comply with the tax format, so it will be registered in Gosocket with rejected status and the red exclamation symbol will be shown in the icons
, additionally, the reason for the rejection is indicated in the document's notes.
b. Successful: The document complies with the tax format; in that case, it continues to the next validation.
- The electronic signature of the document is validated to ensure it has not been altered. In addition to verifying the CFDI's digital seal, the following is verified:
- Digital seal of the Tax Stamp to ensure it has not been altered.
- Correspondence of the digital stamp with the CFDI, to ensure it belongs to the document.
Depending on the validations performed, one of the following results can be obtained:
a. Rejection: This means the document has been altered, so it will be registered in Gosocket with rejected status and the red exclamation symbol will be shown in the icons
, additionally, the reason for the rejection is indicated in the notes of the document's preview.
b. Successful: If this verification is successful, it continues to the next validation.
- Afterwards, a query is made to the Tax Authority:
- Whether the document exists in the Tax Authority.
- The status of the document (Active/Cancelled).
- Whether the issuer of the document is on the EFOS list (Empresas que Facturan Operaciones Simuladas / Companies that Invoice Simulated Operations).
Depending on the validation performed, different results can be obtained:
a. Cancelled Document
i. The document is registered with the SAT.
ii. The issuer does not appear on the EFOS list.
iii. But its status is cancelled.
For this scenario the document will be marked with the icon that indicates the document is Cancelled in the ET.
b. Document not found in the ET
i. Indicates that the received document is not registered with the tax authority.
ii. In Gosocket it will remain with status Not Available in ET.
iii. On the received documents query screen (Inbox) the icon
will be shown.
If the document is not yet registered with the ET, or the query service is unavailable, or an error occurred during the query, automatic retries are performed as follows:
i. The system performs 30 automatic attempts every 10 minutes.
ii. If, after the 30 attempts, the document is still not found, it will remain permanently in Not Available in ET status, showing the following icon
in the Inbox.
iii. If the document is found during these retries, its status is updated and the process continues.
Note: For each query retry with the ET, a record is generated in the Notes section.
c. Rejected Document
If the issuer of the document is on the EFOS list or there is any other reason for rejection by the Tax Authority, the document will be marked with the red exclamation symbol
and on the received documents query screen (Inbox) it will remain with status Rejected and the reason for the rejection will be indicated in the notes.
d. Document has an internal exception by Gosocket ❗
When performing the validation query with the Tax Authority for the document and Gosocket cannot connect to the ET service, or there are communication errors with the service, the document status changes to ERROR and is assigned the icon ❗ .
e. Successful Document. Indicates that the document:
-
Is registered with the SAT
-
Its status at that time is “Active”
-
The issuer is not on the EFOS list.
If the document meets the three points above, the reception flow continues.
- If the result of the previous validations is satisfactory, the document is registered in Gosocket with Accepted status and the symbol
is shown in the icons.
a. Options Button (Manually reprocess document)
Additionally, a button was implemented in Inbox that allows manually reprocessing tax documents that have status “ERROR” ❗ and “Not Available in ET”
.
This button allows reprocessing the different validations of the reception process, and it can be found in the following path as applicable:
- Inbox/Received/Options/Actions/Reprocess document without validating schema.
- Inbox/Received/Options/Actions/Reprocess document without validating signature.
- Inbox/Received/Options/Actions/Reprocess document.

Accompanied by a selector that, as its name indicates, will allow independently selecting an Electronic Document or a set of them.

Within this menu you will find the Reprocess document option, which will allow the user to start reprocessing documents that remained in Not Available in ET
or ERROR
❗ .
Next, a pop-up window will be shown in which the user must confirm that they want to revalidate the previously selected documents.
Once the reprocessing has been generated, a record will be shown for each retry obtained from the tax authority, and its record will remain in the document's preview in the notes section as we can see below:

When the document changes status with the tax authority, the status icon in the received documents grid reflects this change:

2. SENDING METHOD
As already indicated, the solution performs the processing of the documents, where once the document is received, the validation process begins.
There are two ways to carry out the document reception process:
a. Manual XML upload through the Gosocket Upload
b. Exchange mailbox
a. Manual XML upload through the Gosocket Upload
Gosocket has a tool within the Inbox platform, through which the provider can upload the document's XML file.
The access path is as follows: Main Menu > Upload > Manual Upload.
In this option, the user can select the XML file manually from the file explorer or, if preferred, drag it directly into the Manual Upload interface.
As already indicated, the solution performs the processing of the documents, where, once the document is received, the validation process begins.

Once the XML file is received through the manual upload option, the following will be identified:
- How many XML files in total were received, how many were processed successfully, and how many have errors.

- By clicking the “Details” button, a popup will be shown with the “Error Detail” identifying the possible errors that the XML file uploaded manually through this option may contain, and, if the document has no errors, a detail will be shown indicating that it was uploaded successfully to the Gosocket platform:
- Finally, the document will be displayed in the Inbox received tray, with all validations performed.
i. Considerations for manual XML upload
- Up to n XML files can be uploaded in a single upload.
- The same schema, signature, Tax Authority availability, and certificate validations that are performed via the exchange mailbox will be carried out.
- The tax documents stipulated by the Tax Authority must be sent in XML format.
The tax documents that can be received are:
- CFDi de Ingreso
- CFDi de Egreso
- CFDi de Traslado
- CFDi de Nomina
- CFDi de Pagos
b. Exchange mailbox
The mailboxes that must be used are:
- Sandbox: mx_sbx@inbound.gosocket.com
- Production**:** mx@recepcionprd.gosocket.net
i. Considerations for the exchange mailbox
It is important to keep the following points in mind when sending documents, as this will prevent them from being rejected by the application.
- The tax documents stipulated by the Tax Authority must be sent in XML format.
The tax documents that can be received are:
- CFDi de Ingreso
- CFDi de Egreso
- CFDi de Traslado
- CFDi de Nomina
- CFDi de Pagos
- They can be sent individually or several XML files in the same email.
- Several compressed XML files can be sent (.zip, .rar)
- The XML or compressed files must be attached to the main email.
- Attached documents can be sent, such as the PDF of the invoice.
The solution is able to process the graphic representation PDF, in case it is included, and attached documents that arrive at the mailbox, where once received they are stored, associating them with their respective document, allowing download within Inbox.
The process works as follows:
- If an XML document arrives at the mailbox along with an additional PDF file with the same name, for example: Factura12345.xml, Factura12345.pdf, it is understood that the .pdf file is the graphic representation of the DTE, so it is synchronized this way in Gosocket and is available for consultation.
- If an XML document arrives at the mailbox with more than one attached file of any extension, they are associated as attached documents.
Note: If there are PDF files with a name different from the XML, they will be considered attached documents.
- For sending attachments, it is recommended to send each DTE with its attachments separately, since if more than one XML document arrives, only the graphic representation will be stored, provided the PDF file has the same name as the corresponding XML; the rest of the attached files will not be processed since there is no way to know which document to associate them with.
- Attachments can also be associated after the XML is sent; for example, if the XML is sent without attachments, another email with attached documents (PDF, Excel, Word, etc.) can be sent afterward, and these will be associated with the previously sent document, as long as the second email also includes the XML.
3. QUERY OF DOCUMENTS RECEIVED FROM GOSOCKET
Once the documents have been processed by the reception service, they can be queried from the Gosocket portal in the Inbox/Received section. **
This section shows the following screen:

- Filters section to optimize the search result. **
- Display order control, with which you can modify the way the search results are presented. **
- List of options linked to export, document reprocessing, and internal movements of the Electronic Documents. **
- Display section with the search result detail and representative icons of the most relevant status changes. **
* For more information about these points, see the Inbox documentation.**
Once the document search has been performed, the main grid will show the list of received documents that met the established search criteria; in this grid, in addition to relevant document information, the document's status can be observed:

- Tax authority validation.
- Distribution validation.
- Smart Supply status validation.
In the status column (1) the result of the applied validations will be shown, as explained in the section Operation.

| Icon | Status | Validation |
|---|---|---|
| VALIDATED | Document approved by the ET | |
| REJECTED * | Document rejected by the ET | |
| Not Available in ET | Document does not exist in the ET | |
| ❗ | ERROR * | Document Rejected or internal exception by Gosocket |
| VOIDED | The document is cancelled with the SAT |
Note: Clicking on the document will open the document preview where you can review the notes related to the reason for rejection.
Note: for the case in which the document remains in status “ERROR”, the user can reprocess it through the actions, in order to perform the schema, signature, or ET validations again. This process is explained in detail in the section “Options Button (Manually reprocess document)”.
Finally, if additional documents were sent in the email, they will be shown in the “Attachments” section within the document preview.
For more information about the options available in this section, see the Inbox manual.