Rápido Pagos

Set up the issuer

Create the taxpayer that signs your e-CF, and upload its certificate.

The issuer is the taxpayer that issues and receives e-CF for your organization. An organization has one issuer, with its RNC, its profile, its certificate and the DGII environment that it works in. Every call on this page needs an API key of your organization (see Authenticate your requests).

Get a certificate

Every e-CF carries a digital signature, made with a certificate for Procedimiento Tributario. The certificate names a person, not your company.

  • The person must appear in your RNC with a relation that the DGII accepts, such as Representante, Administrador or Firmante de e-CF.
  • Your Usuario Administrador de e-CF registers in the Oficina Virtual the people who may sign for your RNC. Name the Usuario Administrador before you apply to be an emisor electrónico (Solicitud Usuario Administrador de e-CF).
  • The certificate comes from a trust provider that INDOTEL accredits. In May 2026 the DGII names Viafirma, Digifirma and Novofirma as the providers of this certificate.

Create the issuer

PUT /ecf-issuer creates the issuer, or replaces its profile. Each field fills the field of the Emisor section of every e-CF, with the lengths of the Formato e-CF.

const response = await fetch('https://api.rapidopagos.com/ecf-issuer', {
  method: 'PUT',
  headers: {
    'content-type': 'application/json',
    authorization: `Bearer ${process.env.PAYMENTS_API_KEY}`
  },
  body: JSON.stringify({
    rnc: '131234567',
    legalName: 'Colmado Pérez SRL',
    tradeName: 'Colmado Pérez',
    address: 'Av. Winston Churchill 1099, Piantini',
    municipality: '010101',
    province: '010000',
    email: 'facturas@colmadoperez.do',
    website: 'colmadoperez.do',
    phone: '809-220-1111',
    environment: 'test'
  })
});
const issuer = await response.json();
FieldDGII fieldNotes
rncRNCEmisorAn RNC of 9 digits or a cédula of 11
legalNameRazonSocialEmisorThe legal name registered in the DGII, up to 150 characters
tradeNameNombreComercialOptional
addressDireccionEmisorUp to 100 characters
municipalityMunicipioOptional, a six-digit code of Table III of the Formato e-CF
provinceProvinciaOptional, such as 010000 for the Distrito Nacional
emailCorreoEmisorOptional
websiteWebSiteOptional
phoneTelefonoEmisorOptional, as xxx-xxx-xxxx
environmenttest, certification or production

The first call answers 201 with the issuer, and a later call answers 200. Each call replaces the whole profile, so a field that you leave out is cleared. Send every field again when you change one of them, such as environment. The certificate stays as it is.

The RNC cannot change once the issuer has a range, an issued e-CF or a received e-CF, and the call answers 409 with kind ecf-issuer-rnc-locked. One issuer holds an RNC in an environment, so an RNC that another organization's issuer holds in that environment answers 409 with kind ecf-issuer-rnc-taken.

Upload the certificate

PUT /ecf-issuer/certificate takes the PKCS#12 file of the certificate (.p12 or .pfx) in base64, and its password. The file must hold the private key and the certificate whose public key matches it.

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

const certificate = await readFile('firma.p12');
const response = await fetch('https://api.rapidopagos.com/ecf-issuer/certificate', {
  method: 'PUT',
  headers: {
    'content-type': 'application/json',
    authorization: `Bearer ${process.env.PAYMENTS_API_KEY}`
  },
  body: JSON.stringify({
    certificate: certificate.toString('base64'),
    password: process.env.CERTIFICATE_PASSWORD
  })
});
const issuer = await response.json();

The API keeps only the private key, encrypted, and the certificate. It keeps neither the file nor its password, and never returns the key. The answer is the issuer, whose certificate shows the subject, the serial number and the validity of the certificate.

{
  "certificate": {
    "subject": "C=DO, CN=ANA PEREZ, serialNumber=IDCDO-00112345678",
    "serialNumber": "5c3f1a9e2b7d4e60",
    "notBefore": "2026-04-20T00:00:00.000Z",
    "notAfter": "2028-04-19T23:59:59.000Z"
  }
}

The API checks that the file opens with the password, that it holds a private key and a certificate that matches it, and that the certificate is valid today. It does not check which trust provider issued it. The DGII checks the certificate of each e-CF that it receives. A file that cannot sign answers 422 with kind invalid-certificate and a reason.

reasonMeaning
unreadableThe file is not a PKCS#12 file
wrong-passwordThe password does not open the file
no-private-keyThe file holds no private key
no-matching-certificateNo certificate in the file matches the private key
expiredThe certificate has expired
not-yet-validThe certificate is not valid yet

Upload the new certificate before notAfter. Your webhook endpoint receives ecf-issuer.certificate-expiring 30, 7 and 1 days before it. Once the certificate expires, the issuer stops working until you upload a new one.

  • POST /ecf answers 403 with kind ecf-certificate-expired.
  • An e-CF that was never sent ends errored with the reason certificate-expired. An e-CF that was already sent waits for a new certificate to ask the DGII for its result, and ends errored 30 days after its creation without one.
  • The reception of an e-CF answers 503, so your suppliers cannot send you e-CF.
  • Deliveries to buyers end failed, and a commercial approval that you decide ends failed and cannot be decided again.

A new upload replaces the certificate, and the e-CF that the old one signed keep their signature.

Without an issuer, the call answers 404 with kind ecf-issuer-not-found. Create the issuer first.

Read the issuer

GET /ecf-issuer returns the profile, the certificate details and the receptor URLs. receptorUrl is the URL to register in the DGII for the issuer's current environment, and receptorUrls holds the URL of each environment (see Receive e-CF).

{
  "id": "5e1b7c3a-9d2f-4a6e-b8c0-3f7d1a9e2b46",
  "rnc": "131234567",
  "legalName": "Colmado Pérez SRL",
  "environment": "test",
  "receptorUrl": "https://api.rapidopagos.com/ecf-receptor/5e1b7c3a-9d2f-4a6e-b8c0-3f7d1a9e2b46/testecf",
  "receptorUrls": {
    "test": "https://api.rapidopagos.com/ecf-receptor/5e1b7c3a-9d2f-4a6e-b8c0-3f7d1a9e2b46/testecf",
    "certification": "https://api.rapidopagos.com/ecf-receptor/5e1b7c3a-9d2f-4a6e-b8c0-3f7d1a9e2b46/certecf",
    "production": "https://api.rapidopagos.com/ecf-receptor/5e1b7c3a-9d2f-4a6e-b8c0-3f7d1a9e2b46/ecf"
  }
}

The example leaves out the other fields of the profile.

Who keeps the certificate

Rápido Pagos keeps your certificate and its private key, encrypted, and signs each of your e-CF with them. The DGII calls this model a provider that offers its software as a service and keeps the certificates of its clients (Guía Básica Proveedor de Servicios de Facturación Electrónica).

Decreto 587-24 (Art. 22, Párrafo I) asks a provider that keeps its clients' certificates to sign in the infrastructure of a certification entity that INDOTEL accredits, or to hold an INDOTEL authorization to manage signature data on behalf of the signer. Until Rápido Pagos holds its provider authorization and meets one of these conditions, production is open only to the taxpayers that Rápido Pagos has enabled. For any other RNC, PUT /ecf-issuer with environment production answers 403 with kind ecf-production-not-enabled and changes nothing.

On this page