Skip to content

DgiiEmitirNota

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.

FieldTypeRequiredDescription
credentials_idcredentialsYesdgii credential
notajsonNoNote 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_estadobooleanNoQuery 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.

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) or prod (production)
{
"encf": "E340000000045",
"tipo": "34",
"trackId": "TR-2026-000123789",
"estado": "accepted",
"codigoSeguridad": "Kx9pQ2",
"total": 236,
"itbis": 36,
"ncfModificado": "E310000000123",
"mensajes": [],
"xmlFirmado": "<ECF>...signed...</ECF>"
}
{
"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.items field 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.ncfModificado is 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.