How to get enabled with the DIAN for electronic invoicing
Before you issue your first electronic invoice you must get enabled with the DIAN. You do this yourself, with your own credentials: the DIAN emails the access token to the address registered on your RUT.
There are six steps across three different portals. Mixing them up is the most common mistake, so each step names the one you are in.
| Portal | What for |
|---|---|
Habilitación — catalogo-vpfe-hab.dian.gov.co | Registration, provider, go-live date |
MUISCA — muisca.dian.gov.co | Requesting the resolution and the technical key |
Facturando Electrónicamente — catalogo-vpfe.dian.gov.co | Associating prefixes (production) |
You sign in to all three the same way: pick the user type — Empresa with the legal representative’s ID and the NIT, or Persona with your own document — and the DIAN emails a token to the RUT address.
Step 1 — Register as an electronic invoicer
Habilitación portal.
- Sign in with the token emailed to you.
- Open Registro y habilitación → Documentos electrónicos.
- Enter the address where you want to receive invoices.
- Press Registrar and confirm with Aceptar.
Step 2 — Declare DeusRex as your software
Habilitación portal again.
- Open Registro y habilitación → Documentos electrónicos and press Factura electrónica. The Asociar modo de operación screen appears.
- Under Selecciona el modo de operación, choose Software de un proveedor tecnológico.
- Under Nombre de la empresa proveedora, choose Soluciones Alegra S.A.S. Under Nombre del software, the matching Alegra entry.
- Press Asociar.
The associated provider appears below, with an option to view the test set detail. Open it and copy the test set code — the TestSetID.
Step 3 — Paste the TestSetID into DeusRex
- Open Settings → Electronic Invoicing (DIAN).
- Under DIAN enablement, paste the TestSetID.
- Press Send test set.
We send the test documents to the DIAN. It takes a few minutes. When the DIAN accepts them you get a confirmation email and the card reads Enabled.
If the DIAN rejects the set, the card shows the status. Correct what it reports and send again — resending costs nothing and has no consequences.
Step 4 — Request your numbering resolution
MUISCA portal. This is an electronic resolution, different from the one you used for computer or paper invoicing.
- Enter through Usuarios Registrados.
- Left menu: Numeración de facturación → Numeración de facturación.
- Solicitar numeración de facturación → Aceptar → Ingresar.
- Autorizar Rangos: choose Facturación electrónica de venta, type the prefix — FE is recommended — and the range. Press Agregar.
- Generate the Borrador, review it, and press Definitivo.
- Signing needs a dynamic key: press Solicítela aquí, then Ver mi bandeja de comunicaciones, copy it, paste it, type your password and press Firmar → Aceptar.
The document you download must start with 1876. If it does not, the request was never formalized.
If you already have an electronic resolution you can keep using it. You only have to remove its association with your previous provider before associating it with Soluciones Alegra.
Step 5 — Associate your prefixes with the provider
Facturando Electrónicamente portal. Do this once you get the email saying the test set succeeded.
Wait at least 1 hour after requesting the resolution — that is how long the DIAN takes to publish it in this portal. In practice it can be 2 or 3.
- Sign in with the token from your email.
- Press Configuración and choose Rangos de numeración.
- Under Proveedor - Software, choose Soluciones Alegra S.A.S.
- Under Prefijo, choose the resolution you requested. Press Agregar and confirm with Aceptar.
This step is required even though your resolution already has the prefix. They are different things: one is your authorization, the other is who may transmit it.
Step 6 — Set your go-live date
Habilitación portal.
- Sign in and enter which day you start invoicing electronically.
- Press Aceptar. The DIAN updates your RUT with responsibility 52 - Facturador Electrónico.
Until that date you keep invoicing as before. The switch does not cut you off overnight.
If something is not where it should be
The Habilitación portal has a Sincronizar contribuyente button that fixes the three most frequent snags:
- You are enabled but cannot get into Facturando electrónicamente.
- When associating ranges, the electronic numbering you just created is missing.
- When associating prefixes, the provider you already associated is missing.
Try it before writing to support: it resolves most cases.
How to get the technical key
It is not on form 1876. It has its own screen in MUISCA, and to get in you must already have the numbering authorized and your electronic signature.
- Open Generación de Clave Técnica.
- Press Generar.
- In the Firmar documento window, enter the security code — the aquí link emails it to you — and your electronic signature password.
- Press Firmar. Clave actual vigente appears: that is the 40-character code you copy into DeusRex.
Copy it with no leading or trailing spaces. The DIAN warns about this explicitly, and one invisible space rejects every invoice you issue.
Do not press Generar again once DeusRex is configured. Only one key is valid at a time, so generating another invalidates the previous one. If you do, update it here the same day.
How to find your resolution later
The DIAN does not email it to you. In MUISCA, open Numeración de Facturación → Consultas → Consulta por NIT y Rango de Fechas de Expedición, enter your NIT and a wide date range, and press Consultar. Pressing the number in the row downloads form 1876.