Rápido Pagos

Print an e-CF

Download the printed representation of a signed e-CF, its stamp and its signed XML.

A buyer who is not an electronic receptor gets your e-CF on paper or as a PDF, the printed representation that the DGII defines. Every call on this page needs an API key of your organization, and works once the e-CF is signed.

Download the PDF

GET /ecf/{id}/pdf returns the printed representation of the e-CF, in Spanish, with the content and the layout of section 18 of the Informe Técnico e-CF. The file stays under the 10 MB that the certification portal takes in step 5 of the Proceso de Certificación.

import { writeFile } from 'node:fs/promises';

const response = await fetch(`https://api.rapidopagos.com/ecf/${ecfId}/pdf`, {
  headers: {
    authorization: `Bearer ${process.env.PAYMENTS_API_KEY}`
  }
});
await writeFile(`${ecfId}.pdf`, Buffer.from(await response.arrayBuffer()));

The PDF shows your issuer's details, the type in words, the e-NCF and the issue date, the buyer, each item with its ITBIS, the totals and the retentions. A type 33 or 34 also shows the e-NCF that it modifies. At the bottom left, it carries the QR code of stampUrl, the security code and the signing time.

  • A pending e-CF answers 409 with kind ecf-not-signed.
  • A rejected or errored e-CF answers 409 with kind ecf-not-valid, since it has no fiscal value.
  • While the e-CF is signed and not yet with the DGII, the PDF says that the e-CF was issued in contingency and can be checked 72 hours later.

The stamp

The fields of a signed e-CF let a buyer check it with the DGII.

  • securityCode is CodigoSeguridad, the first 6 characters of the signature.
  • signedAt is FechaHoraFirma, the signing time.
  • stampUrl is the text of the QR code. It opens the DGII's page that confirms the e-CF, consultatimbre for an e-CF that the DGII receives in full and consultatimbrefc for a type 32 under RD$250,000.

When you print in your own format, print the QR code of stampUrl with the security code and the signing time, as section 18 of the Informe Técnico e-CF asks.

A type 32 under RD$250,000 reaches the DGII only as its summary. Its PDF carries a link where the buyer opens the full e-CF with its security code, without an API key.

Download the signed XML

GET /ecf/{id}/xml returns the signed XML byte for byte, named {RNCEmisor}{eNCF}.xml. It is the document that the DGII and the buyer receive. For a type 32 under RD$250,000, it is the full e-CF, which the DGII never receives. Before the signature, the call answers 409 with kind ecf-not-signed.

On this page