DgiiEmitirNota
Description
Section titled “Description”Issues a Debit Note (33) or Credit Note (34) to the DGII of the Dominican Republic, referencing the e-NCF of the e-CF being modified. The node builds the note’s XML with reference, buyer and item data, signs it with XMLDSig using the credential’s .p12 certificate, authenticates using the seed mechanism and performs the reception.
Just like invoice issuance, it returns the TrackId, the note’s e-NCF and the security code, and can query the final status in the same step.
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
| credentials_id | credentials | Yes | dgii credential |
| nota | json | No | Note as JSON: tipo (33 debit, 34 credit), informacionReferencia (ncfModificado, fecha, codigoModificacion), comprador, items (precioUnitario without ITBIS). If left empty, the node’s input data is used |
| consultar_estado | boolean | No | Query the note’s status right after reception (default yes) |
Issuer data (RNC, company name) is automatically filled from the credential when not present in nota.
Credentials
Section titled “Credentials”This module requires a dgii credential type with the following fields:
- Digital certificate (.p12): signing certificate in base64 (alternatively, private key + certificate in PEM)
- Certificate password: password for the .p12 file
- Issuer RNC: tax ID of the company issuing the note (9 to 11 digits)
- Environment:
test,cert(certification) orprod(production)
Output
Section titled “Output”{ "encf": "E340000000045", "tipo": "34", "trackId": "TR-2026-000123789", "estado": "accepted", "codigoSeguridad": "Kx9pQ2", "total": 236, "itbis": 36, "ncfModificado": "E310000000123", "mensajes": [], "xmlFirmado": "<ECF>...signed...</ECF>"}Usage Example
Section titled “Usage Example”Credit note for a partial return
Section titled “Credit note for a partial return”{ "credentials_id": "cred-dgii-prod", "nota": { "tipo": "34", "informacionReferencia": { "ncfModificado": "E310000000123", "fecha": "2026-08-01", "codigoModificacion": "1" }, "comprador": { "rnc": "130123456", "razonSocial": "Cliente SRL" }, "items": [ { "descripcion": "Partial service return", "cantidad": 1, "precioUnitario": 200 } ] }}- The
nota.itemsfield is required and must have at least one item; if missing, the node returns an error without signing or sending anything. - Referencing the origin e-NCF in
informacionReferencia.ncfModificadois mandatory; without it the node rejects the note before building the XML. - If the credential’s .p12 certificate is expired, the node rejects issuance.
- The note is linked to the original e-CF in the database, which allows tracing the complete modification history of a document.
Related Nodes
Section titled “Related Nodes”- DgiiEmitirFactura - Issue the original invoice that the note will reference
- DgiiConsultarEstado - Query the final status by TrackId
- DgiiRepresentacion - Generate the printable representation with QR