Skip to content

DgiReporteDiario

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.

FieldTypeRequiredDescription
credentials_idcredentialsYesdgi credential
limitenumberNoMax CFE per report (default 500)
rut_dgitextNoDGI RUC for the envelope header (optional, depending on the service)
soap12booleanNoUse SOAP 1.2 instead of 1.1

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) or prod (production)
{
"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"
}
{
"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, truncado is returned as true and 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.