Cancel an errored e-CF's e-NCF
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.
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 e-CF
uuid"5f2c8e1a-9b4d-4a7e-8c3f-2d6b0e9a1c47"The cancellation that the e-CF already has
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/5f2c8e1a-9b4d-4a7e-8c3f-2d6b0e9a1c47/cancellation'{ "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"}Cancel the unused tail of an e-NCF range POST
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.
Run the e-CF data set of the DGII certification POST
Turns each row of the data set into an e-CF with the row's ENCF and its values as they are, totals included, then signs each one and sends it to CerteCF. A type 32 under RD$250,000 goes as its RFCE. The debit and credit notes go once every other e-CF of the run is final. GET /ecf-certification/run/{id} follows the run.