Rápido Pagos

Receive e-CF

Register the receptor URL, receive the e-CF of your suppliers and approve or reject them.

An emisor electrónico is also a receptor. Your suppliers send their e-CF to your receptor, your buyers send it their commercial approvals, and the DGII tests it during the certification. The API runs the receptor of your issuer, so you only register its URL in the DGII.

Register the receptor URL

GET /ecf-issuer returns receptorUrl, the URL of the receptor in the issuer's current environment.

https://api.rapidopagos.com/ecf-receptor/5e1b7c3a-9d2f-4a6e-b8c0-3f7d1a9e2b46/testecf

Register this one URL in the DGII as the URL Recepción, the URL Aprobación Comercial and the URL Autenticación. The DGII and other taxpayers add the standard paths of the DGII's receptor services to it.

ServicePath
Seed for authenticationGET /fe/autenticacion/api/semilla
Signed seed for a tokenPOST /fe/autenticacion/api/validacioncertificado
Reception of an e-CFPOST /fe/recepcion/api/ecf
Reception of an approvalPOST /fe/aprobacioncomercial/api/ecf

The URL ends in the issuer's environment (testecf, certecf or ecf), and the receptor answers only in the issuer's current environment. The URL of another environment answers 404. receptorUrls holds the URL of each environment, because the DGII asks for the production URLs while your issuer is still in certification.

EnvironmentURLWhere it goes
testreceptorUrls.testEach request to the DGII's emisor-receptor simulator of TesteCF, which sends you test documents
certificationreceptorUrls.certificationThe certification portal, in the application form and in step 7
productionreceptorUrls.productionThe certification portal in step 12, then the Mantenimiento Directorio FE of the Oficina Virtual

The receptor signs each acuse de recibo with the issuer's certificate, so the reception of an e-CF answers 503 while the issuer has no valid certificate. Commercial approvals still arrive. It needs no API key, since the DGII and other taxpayers call it. It accepts a document only when its signature verifies, and in production only when the certificate comes from a trust provider that INDOTEL accredits. It answers 429 to a client that sends more than 120 requests a minute.

The e-CF that you receive

When a supplier sends an e-CF to your receptor, the API checks it and answers the acuse de recibo (ARECF), signed with your certificate. An e-CF whose RNCComprador is your RNC, and whose signature verifies, is stored and sends received-ecf.created. The event ID is {receivedEcfId}:created, and its data is the received e-CF.

{
  "id": "7c3e9a1f-2b4d-4e6a-8f0c-1d2e3f4a5b6c",
  "environment": "production",
  "sender": {
    "rnc": "130456789",
    "name": "Distribuidora del Cibao, S.R.L."
  },
  "type": "31",
  "encf": "E310000000123",
  "issuedOn": "2026-10-19",
  "total": {
    "amount": 1239000,
    "currency": "DOP"
  },
  "signerSubject": "C=DO, CN=ANA PEREZ, serialNumber=IDCDO-00112345678",
  "dgiiVerification": "pending",
  "commercialApproval": {
    "decision": null,
    "reason": null,
    "status": null,
    "messages": []
  },
  "commercialApprovalDueOn": "2026-11-15",
  "receivedAt": "2026-10-19T16:45:18.000Z"
}

GET /received-ecf lists the received e-CF newest first, 25 per page, with the cursor pagination of GET /ecf. GET /received-ecf/{id} returns one, and GET /received-ecf/{id}/xml returns its signed XML byte for byte, as the sender posted it.

Wait for the DGII to confirm it

A certificate names the person who signed, not the company, so a valid signature does not prove which taxpayer issued the e-CF. After the reception, the API asks the DGII whether it holds this e-CF with the same sender, buyer, date, total and security code. dgiiVerification holds the answer.

dgiiVerificationMeaning
pendingThe API is asking the DGII
verifiedThe DGII holds this e-CF
rejectedThe DGII rejected the e-CF, or holds another e-CF under this e-NCF
not-foundThe DGII did not hold the e-CF within 72 hours
not-availableThe API could not ask, as in certification, which lacks the service, or with no valid certificate

Record a received e-CF in your books only once it is verified. rejected and not-found send received-ecf.not-verified, with the event ID {receivedEcfId}:not-verified. One sender and e-NCF can arrive more than once with other bytes, and each arrival is its own received e-CF. Only the arrival that is verified counts as the e-CF that the DGII holds. Once one is verified, the receptor refuses an arrival with other bytes.

Approve or reject a received e-CF

POST /received-ecf/{id}/commercial-approval records your Aprobación Comercial of a received e-CF. An approval takes no reason, and a rejection requires one of up to 250 characters. The call answers 409 with kind received-ecf-not-verified until dgiiVerification is verified, so you answer only an e-CF that the DGII holds. In certification, which has no service to confirm an e-CF, a not-available e-CF takes a decision. In test and production, a not-available e-CF does not.

const response = await fetch(`https://api.rapidopagos.com/received-ecf/${receivedEcfId}/commercial-approval`, {
  method: 'POST',
  headers: {
    'content-type': 'application/json',
    authorization: `Bearer ${process.env.PAYMENTS_API_KEY}`
  },
  body: JSON.stringify({
    decision: 'rejected',
    reason: 'La mercancía llegó incompleta'
  })
});
const receivedEcf = await response.json();

The call answers 202 with commercialApproval.status pending. A workflow signs the approval as an ACECF with your certificate and sends it to the DGII. In test and production, it also sends it to the sender's receptor.

commercialApproval.statusMeaning
pendingThe approval is on its way
sentThe DGII received it, and in test and production the sender too
failedIt could not be sent, and commercialApproval.messages holds the answers
not-requiredThe DGII takes no commercial approval for this type of e-CF

sent sends received-ecf.commercial-approval-sent and failed sends received-ecf.commercial-approval-failed, both with the event ID {receivedEcfId}:commercial-approval. not-required sends no event. An answer is final, so a second call answers 409 with kind commercial-approval-exists. commercialApprovalDueOn is the 15th of the month after issuedOn, the date that Norma General 07-18 and Decreto 587-24 (Art. 17, Párrafo V) point to as the limit for an approval. The API shows it and enforces nothing.

On this page