Rápido Pagos
Electronic invoicing

Record an e-NCF range

POST
/ecf-sequence

Records a range of e-NCF numbers that the DGII authorized, in the issuer's current environment. Its first e-CF takes firstNumber.

Authorization

apiKey
headerAuthorizationBearer <token>

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

Request Body

The range the DGII authorized

application/json
  1. body
type*string

The e-CF type the DGII authorized the range for: 31 tax credit invoice, 32 consumer invoice, 33 debit note, 34 credit note, 41 purchases, 43 minor expenses, 44 special regimes, 45 government, 46 exports, 47 payments abroad

Example"31"
Value in"31""32""33""34""41""43""44""45""46""47"
firstNumber*integer

The first number of the range, without the E and the type

Range1 <= value <= 9999999999
Example1
lastNumber*integer

The last number of the range

Range1 <= value <= 9999999999
Example1000
expiresOn?|

FechaVencimientoSecuencia, the last day the DGII lets the range issue. Types 32 and 34 take none, and every other type requires it.

Formatdate
Defaultnull
Example"2027-12-31"

Response Body

The recorded range

application/json
  1. response

A range of e-NCF numbers that the DGII authorized for one e-CF type

id*string
Formatuuid
Example"8a3d5f1c-2e7b-4c9a-b6d0-4f1e8a2c7b53"
type*string
Example"31"
Value in"31""32""33""34""41""43""44""45""46""47"
environment*string

The DGII environment of the range, the issuer environment when the range was recorded

Example"test"
Value in"test""certification""production"
firstNumber*integer
Example1
lastNumber*integer

The last number the DGII authorized. A cancellation never changes it.

Example1000
nextNumber*integer

The number the next e-CF of the range takes

Example1
remaining*integer

How many numbers no e-CF has taken below cancelledFromNumber, or through lastNumber

Example1000
expiresOn*|
Formatdate
Example"2027-12-31"
cancelledFromNumber*|

The first number of the cancelled tail, or null

Examplenull
status*string

active while numbers remain and expiresOn has not passed in Santo Domingo, exhausted when every number below a cancelled tail or through lastNumber is taken, expired after expiresOn, cancelled when the range is cancelled from its first number

Value in"active""exhausted""expired""cancelled"
createdAt*string
Formatdate-time
Example"2026-10-19T16:45:18.000Z"
Record an e-NCF range
curl -X POST 'https://api.rapidopagos.com/ecf-sequence' \  -H 'Content-Type: application/json' \  -d '{  "type": "31",  "firstNumber": 1,  "lastNumber": 1000,  "expiresOn": "2027-12-31"}'
Example Response
{  "id": "8a3d5f1c-2e7b-4c9a-b6d0-4f1e8a2c7b53",  "type": "31",  "environment": "test",  "firstNumber": 1,  "lastNumber": 1000,  "nextNumber": 1,  "remaining": 1000,  "expiresOn": "2027-12-31",  "cancelledFromNumber": null,  "status": "active",  "createdAt": "2026-10-19T16:45:18.000Z"}