DgiConsultarCAE
Description
Section titled “Description”Queries the available numbering balance of the CAE loaded into Floogos for a Comprobante Fiscal Electronico (CFE) type and, optionally, a given series. If the series is omitted, it sums the balance of all active series for that CFE type.
It is useful to alert before running out of available numbering and trigger the loading of a new CAE ahead of time (for example, from a scheduled workflow that runs every morning).
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
| credentials_id | credentials | Yes | dgi credential |
| tipo_cfe | text | Yes | CFE type (101 e-Ticket, 111 e-Invoice, 181 e-Remito, etc.) |
| serie | text | No | Series to query. If omitted, sums all series of the type |
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
- Company Name: issuer’s legal name
- Environment:
test(homologation) orprod(production)
Output
Section titled “Output”{ "tipo_cfe": 111, "serie": null, "disponibles": 842, "caes": [ { "cae_id": "12345", "serie": "A", "estado": "active", "disponibles": 842, "nro_desde": 158, "nro_hasta": 1000 } ]}Usage Example
Section titled “Usage Example”{ "credentials_id": "cred-dgi-prod", "tipo_cfe": "111", "serie": "A"}- Only CAE with
activestatus are added intodisponibles; expired or exhausted ones are excluded from the total but still listed incaesfor auditing. - Combine this node with a scheduled trigger and a condition (e.g.
disponibles < 100) to automate alerts for reloading numbering. - The
caeslist keeps the per-series detail, useful when the company operates several series at once (branches, registers, etc.).
Related Nodes
Section titled “Related Nodes”- DgiCargarCAE - Load a new CAE
- DgiEmitirCFE - Issue a CFE consuming numbering from the CAE