DgiReporteDiario
Description
Section titled “Description”Sends the daily report of Comprobantes Fiscales Electronicos (CFE) to the DGI, an obligation under Uruguay’s electronic invoicing regime. The node gathers the issued CFE that have not yet been reported, wraps them in a signed report envelope and sends it over SOAP with mutual TLS. Upon confirmation, it marks those CFE as reported.
Designed to run on a schedule once a day (for example, with a cron trigger late in the day), though it can also be triggered manually. The maximum number of documents per batch is configurable.
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
| credentials_id | credentials | Yes | dgi credential |
| limite | number | No | Max CFE per report (default 500) |
| rut_dgi | text | No | DGI RUC for the envelope header (optional, depending on the service) |
| soap12 | boolean | No | Use SOAP 1.2 instead of 1.1 |
Credentials
Section titled “Credentials”This module requires a dgi credential type with the following fields:
- Certificate (.p12): advanced signature certificate in base64
- Certificate password: password for the .p12 file
- RUT: issuer’s tax ID
- Environment:
test(homologation) orprod(production)
Output
Section titled “Output”{ "reportados": 47, "estado": "Aceptado", "codigo": "00", "glosa": "Reporte procesado correctamente", "truncado": false}When there are no pending documents to report, the output is:
{ "reportados": 0, "mensaje": "No hay CFE pendientes de reportar"}Usage Example
Section titled “Usage Example”{ "credentials_id": "cred-dgi-prod", "limite": 500}- The node is idempotent with respect to already-reported CFE: it only takes those pending since the last successful run.
- If the DGI rejects the report (SOAP Fault or an unsuccessful response), no CFE in the batch is marked as reported and the run must be retried.
- The maximum accepted batch size is 500 documents; if more are pending,
truncadois returned astrueand the node must run again to process the rest. - If the credential’s .p12 certificate is expired, the node rejects the submission before building the envelope.
Related Nodes
Section titled “Related Nodes”- DgiEmitirCFE - Issue the CFE that get reported afterward
- DgiConsultarCFE - Check a CFE’s status after the report