Rápido Pagos

Move to production

Move the issuer from test to certification to production, and what each move changes.

The issuer works in one environment at a time, and PUT /ecf-issuer moves it. Each call replaces the whole profile, so send every field again with the new environment.

const response = await fetch('https://api.rapidopagos.com/ecf-issuer', {
  method: 'PUT',
  headers: {
    'content-type': 'application/json',
    authorization: `Bearer ${process.env.PAYMENTS_API_KEY}`
  },
  body: JSON.stringify({
    rnc: '131234567',
    legalName: 'Colmado Pérez SRL',
    tradeName: 'Colmado Pérez',
    address: 'Av. Winston Churchill 1099, Piantini',
    municipality: '010101',
    province: '010000',
    email: 'facturas@colmadoperez.do',
    website: 'colmadoperez.do',
    phone: '809-220-1111',
    environment: 'production'
  })
});
const issuer = await response.json();

What a move changes

  • New ranges, new e-CF and the receptor use the new environment. GET /ecf-sequence lists the ranges of the new environment, and the ranges of the old one come back when the issuer returns to it.
  • An e-CF keeps the environment where it was created, and the API follows it with the DGII of that environment until it is final. GET /ecf lists the e-CF of every environment with their environment.
  • receptorUrl changes to the URL of the new environment, and the URL of the old one answers 404.
  • The certificate stays, and the RNC cannot change.
  • One issuer holds an RNC in an environment, so a move into an environment where another organization's issuer holds your RNC answers 409 with kind ecf-issuer-rnc-taken.
  • externalId is unique across every environment. Use new IDs in the new environment, since an ID that you used before returns the e-CF that already has it.

From test to certification

Move when you apply in the certification portal (see Certify with the DGII). Record the ranges that the simulation needs, and enter receptorUrls.certification in the portal.

From certification to production

Move once the DGII authorizes you as an emisor electrónico. production is open only to the taxpayers that Rápido Pagos has enabled, and the move answers 403 with kind ecf-production-not-enabled for any other RNC (see Who keeps the certificate).

  1. Request your e-NCF ranges in the Oficina Virtual (see Get your ranges from the DGII).
  2. Check that the certificate is valid, with GET /ecf-issuer.
  3. Move the issuer with PUT /ecf-issuer and environment production.
  4. Record each range that the DGII authorized with POST /ecf-sequence.
  5. In the Mantenimiento Directorio FE of the Oficina Virtual, check that the URLs of your receptor are receptorUrls.production.

From that moment, POST /ecf issues e-CF with fiscal value, and the receptor accepts only documents whose certificate comes from a trust provider that INDOTEL accredits.

On this page