SifenConsultarRUC
Description
Section titled “Description”Queries a RUC (Unique Taxpayer Registry number) in DNIT’s registry (siConsRUC). It returns the associated legal name, the taxpayer’s status, and whether it is enrolled as an electronic invoicer. It is useful to validate an Electronic Document’s receiver before issuing, avoiding rejections caused by incorrect data.
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
| credentials_id | credentials | Yes | SIFEN credential |
| ruc | text | No | RUC to query, without the check digit. If left empty, taken from the input data |
Credentials
Section titled “Credentials”This module requires a sifen credential (.p12 certificate, RUC and environment). See the full field list in SifenEmitirDE.
Output
Section titled “Output”{ "success": true, "ruc": "80012345", "codigo": "0502", "mensaje": "RUC encontrado", "encontrado": true, "detalle": { "razonSocial": "Empresa Cliente S.A.", "estado": "ACTIVO", "facturadorElectronico": true }}Usage Example
Section titled “Usage Example”{ "credentials_id": "cred-sifen-prod", "ruc": "80012345"}- The RUC is queried without its check digit; the node strips any non-numeric character before sending the query
- It does not consume numbering or require a digital signature, only the credential to authenticate the connection
- If the receiver is not enrolled as an electronic invoicer, it can still receive a DE (treated as a final consumer or non-enrolled receiver, depending on the voucher type)
Related Nodes
Section titled “Related Nodes”- SifenEmitirDE - Issue the DE once the receiver is validated
- SifenConsultarDE - Query a DE’s status by its CDC