Cancel the unused tail of an e-NCF range
Cancels the numbers of the range from fromNumber to its last number that no cancellation took yet. No e-CF takes them from then on, and the range keeps its bounds, so a new range that holds one of them is refused. A workflow signs the ANECF and sends it to the DGII, and an ecf-cancellation.accepted, ecf-cancellation.partially-accepted or ecf-cancellation.rejected event reports the answer. A cancellation that the DGII rejected, or that ended errored before any send, leaves its numbers open, and a request from its first number cancels them again. The DGII has no ANECF service in certification.
apiKeyAuthorizationBearer <token>An API key of the organization the request acts for, created in the dashboard and sent as "Authorization: Bearer ".
id*stringThe ID of the range
uuid"8a3d5f1c-2e7b-4c9a-b6d0-4f1e8a2c7b53"Where the cancelled tail starts
application/json- body
fromNumber?integerThe first number to cancel, without the E and the type. It defaults to nextNumber and cannot be below it.
1 <= value <= 9999999999501The cancellation, created pending
application/json- response
One ANECF, the cancellation of e-NCF numbers that no e-CF sent to the DGII
id*stringuuid"6d1f4b8e-3a2c-4e7d-9b5f-1c8a0e2d4f63"type*stringTipoeCF of the cancelled numbers
"31""31""32""33""34""41""43""44""45""46""47"environment*stringThe DGII environment of the cancelled numbers
"test""test""certification""production"firstNumber*integerThe first cancelled number, without the E and the type
501lastNumber*integerThe last cancelled number
1000ecfId*|The e-CF whose e-NCF the cancellation cancels, or null for the tail of a range
uuidnullstatus*stringpending until the DGII answers the ANECF, then accepted, partially-accepted when the DGII cancels only part of the numbers, rejected, or errored when the ANECF could not be signed or sent
"pending""accepted""partially-accepted""rejected""errored"dgii*The DGII's answer to the ANECF. For a partially-accepted cancellation its messages list the numbers the DGII did not cancel.
createdAt*stringdate-time"2026-10-20T14:05:12.000Z"updatedAt*stringdate-time"2026-10-20T14:05:15.000Z"curl -X POST 'https://api.rapidopagos.com/ecf-sequence/8a3d5f1c-2e7b-4c9a-b6d0-4f1e8a2c7b53/cancellation' \ -H 'Content-Type: application/json' \ -d '{ "fromNumber": 501}'{ "id": "6d1f4b8e-3a2c-4e7d-9b5f-1c8a0e2d4f63", "type": "31", "environment": "test", "firstNumber": 501, "lastNumber": 1000, "ecfId": null, "status": "pending", "dgii": { "messages": [ { "code": "string", "message": "string" } ] }, "createdAt": "2026-10-20T14:05:12.000Z", "updatedAt": "2026-10-20T14:05:15.000Z"}Download the printed representation of an e-CF GET
Renders the printed representation (Representación Impresa) of a signed e-CF as a PDF named {RNCEmisor}{eNCF}.pdf, in Spanish, as Informe Técnico e-CF §18 lays it out: the issuer, the type in words, the e-NCF, the buyer, the lines, the totals, and the QR of stampUrl with the security code and the signing time. A type 32 under RD$250,000 also prints the URL where the buyer consults it, and an e-CF that is still signed prints the contingency legend.
Cancel an errored e-CF's e-NCF POST
Cancels the e-NCF of an e-CF that ended errored before any send to the DGII, so the number ends in a cancellation. A workflow signs the ANECF and sends it to the DGII, and an ecf-cancellation.accepted or ecf-cancellation.rejected event reports the answer. A second request returns the same cancellation, unless the DGII rejected it or it ended errored before any send, and then it starts a new one. An e-CF that the DGII may hold is corrected with a credit note instead. The DGII has no ANECF service in certification.