Rápido Pagos
Electronic invoicing

Approve or reject a received e-CF

POST
/received-ecf/{id}/commercial-approval

Records the organization's commercial approval of a received e-CF, which a workflow signs as an ACECF and sends to the DGII and, in test and production, to the sender's receptor. The approval is final. Its commercialApproval.status starts pending, and received-ecf.commercial-approval-sent or -failed reports how it ends.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key of the organization the request acts for, created in the dashboard and sent as "Authorization: Bearer ".

Path Parameters

id*string

The ID of the received e-CF

Formatuuid
Example"7c3e9a1f-2b4d-4e6a-8f0c-1d2e3f4a5b6c"

Request Body

The decision

application/json
  1. body
Example
{  "decision": "approved"}
decision*"approved"

Estado 1, e-CF aceptado

Value in"approved"

Response Body

The received e-CF with the decision pending

application/json
  1. response

An e-CF that another taxpayer sent to the receptor of the organization's issuer

id*string
Formatuuid
Example"7c3e9a1f-2b4d-4e6a-8f0c-1d2e3f4a5b6c"
environment*string

The DGII environment the issuer was in when the e-CF arrived

Example"production"
Value in"test""certification""production"
sender*

RNCEmisor and RazonSocialEmisor of the taxpayer that issued the e-CF

type*string

TipoeCF

Example"31"
Value in"31""32""33""34""41""43""44""45""46""47"
encf*string

eNCF

Example"E310000000123"
issuedOn*string

FechaEmision

Formatdate
Example"2026-10-19"
total*

MontoTotal in DOP cents

signerSubject*string

The subject of the certificate that signed the e-CF, which names a person and not the taxpayer

Example"C=DO, CN=ANA PEREZ, serialNumber=IDCDO-00112345678"
dgiiVerification*string

Whether the DGII's consultaestado confirms these bytes: pending while the receptor asks, verified when the DGII holds the e-CF with this sender, buyer, date, total and security code, rejected when it rejected the e-CF or holds another one under this e-NCF, not-found after 72 hours without the DGII holding it, or not-available in certification, which lacks the service, and when the receptor could not ask. Only a verified arrival counts as the e-CF.

Value in"pending""verified""rejected""not-found""not-available"
commercialApproval*
commercialApprovalDueOn*string

The 15th of the month after issuedOn, the deadline of Norma General 07-18 that Decreto 587-24 Art. 17 Párr. V makes the limit for a commercial approval. Information only.

Formatdate
Example"2026-11-15"
receivedAt*string
Formatdate-time
Example"2026-10-19T16:45:18.000Z"
Approve or reject a received e-CF
curl -X POST 'https://api.rapidopagos.com/received-ecf/7c3e9a1f-2b4d-4e6a-8f0c-1d2e3f4a5b6c/commercial-approval' \  -H 'Content-Type: application/json' \  -d '{  "decision": "approved"}'
Example Response
{  "id": "7c3e9a1f-2b4d-4e6a-8f0c-1d2e3f4a5b6c",  "environment": "production",  "sender": {    "rnc": "string",    "name": "string"  },  "type": "31",  "encf": "E310000000123",  "issuedOn": "2026-10-19",  "total": {    "amount": 0,    "currency": "DOP"  },  "signerSubject": "C=DO, CN=ANA PEREZ, serialNumber=IDCDO-00112345678",  "dgiiVerification": "pending",  "commercialApproval": {    "decision": "approved",    "reason": "string",    "status": "pending",    "messages": [      {        "code": "string",        "message": "string"      }    ]  },  "commercialApprovalDueOn": "2026-11-15",  "receivedAt": "2026-10-19T16:45:18.000Z"}