Skip to content

DgiEnviarReceptor

Sends an already-issued Comprobante Fiscal Electronico (CFE) to its recipient. The node wraps it in a signed envelope (with a header identifying issuer and recipient), digitally signs it and POSTs it to the recipient’s SOAP endpoint over mutual TLS (the credential’s certificate is also used for the connection). It then processes the returned acknowledgment and updates the CFE status (sent, accepted or rejected).

The CFE to send can be identified by type, series and number (the node retrieves the signed XML stored when it was issued) or the signed XML can be passed directly in the input, for example chained from DgiEmitirCFE.

FieldTypeRequiredDescription
credentials_idcredentialsYesdgi credential
receptor_urltextYesRecipient’s SOAP endpoint (per-recipient, each client has its own)
tipo_cfetextNoType of the CFE to send (to fetch it from the database)
serietextNoSeries of the CFE to send
numerotextNoNumber of the CFE to send
rut_receptortextNoRecipient RUT (for the envelope header)
soap12booleanNoUse SOAP 1.2 instead of 1.1 (depending on what the recipient exposes)

Either tipo_cfe + serie + numero must be provided, or the signed XML must be passed in the node’s input; if the signed CFE cannot be found, the node returns an error.

This module requires a dgi credential type with the following fields:

  • Certificate (.p12): advanced signature certificate in base64 (also used for mutual TLS)
  • Certificate password: password for the .p12 file
  • RUT: issuer’s tax ID
  • Environment: test (homologation) or prod (production)
{
"enviado": true,
"aceptado": true,
"estado": "acked",
"codigo": "00",
"glosa": "Comprobante aceptado",
"tipoCfe": 111,
"serie": "A",
"numero": 159
}
{
"credentials_id": "cred-dgi-prod",
"receptor_url": "https://receptor.example.com/wsefactura",
"tipo_cfe": "111",
"serie": "A",
"numero": "159",
"rut_receptor": "212345670010"
}
  • If the recipient returns a SOAP Fault, the node treats it as an error and does not mark the document as sent.
  • The CFE status is recorded as acked when the recipient confirms receipt, or sent if it was sent but no acknowledgment has arrived yet.
  • The connection to the recipient’s endpoint uses the same .p12 certificate from the credential for mutual TLS, not a separate certificate.
  • Each recipient may have its own SOAP endpoint; it is best to resolve receptor_url dynamically per client within the workflow (e.g. from a CRM or database).