Contáctanos

Errores

En esta página encontrarás un inventario de errores que te servirá para tener más información sobre los errores que puedas tener en tu integración

Cuando exista un error, la API devolverá un atributo "errors" que será un arreglo con todos los errores que hayan surgido en el proceso, cada error contiene un código con el cuál se podrá identificar y un mensaje que dará mayor información sobre el problema.

1073

Ejemplo de respuesta con error

A continuación encontrarás un inventario de posibles errores que se pueden llegar a dar en la integración junto con una explicación detallada en español acerca del motivo del error.

Código HTTP

Código

Mensaje

Descripción

400

AEP0001

User already exists

Ya existe un usuario con ese email

400

AEP1001

The certificate is invalid

El certificado no es válido, no se ha podido decodificar.

404

AEP1002

Company not found

La compañía no se encuentra registrada.

400

AEP1003

The certificate is required

El certificado de la compañía es obligatorio.

400

AEP1005

The certificate is expired

El certificado actual de la compañía no se encuentra vigente, es decir que ya se venció.

400

AEP1006

The identification and dv of the company is required for send set test

El número de identificación y el dv (Dígito de Verificación) de la compañía es requerido para enviar el set de pruebas.

400

AEP1007

The company id in the request does not match with the identification in the document

El id de la compañia no concuerda con el id de la compañía en el documento

400

AEP1008

Logo size exceeded the limit of 150KB

El tamaño del logo excede el limite de 150KB

404

AEP2001

Payroll not found

La nómina no se encuentra registrada.

400

AEP2004

The file type is not supported for download

No se puede descargar el tipo de archivo que se está intentando descargar

400

AEP2006

The payroll can't be replaced

La nómina no puede ser reemplazada por que no ha sido enviada a la DIAN

400

AEP2007

The payroll can't be canceled

La nómina no puede ser cancelada por que no ha sido enviada a la DIAN

400

AEP2008

The company is not authorized by government entity for electronic payroll

La compañía no está autorizada por la DIAN para Nómina Electrónica, quiere decir que no ha superado la etapa de habilitación y envío del set de pruebas con éxito.

400

AEP2009

The requested file not found

El archivo solicitado no ha sido encontrado

400

AEP2010

The payroll with this number is already registered and accepted

Una nómina con este número ya se encuentra registrada y aceptada por la DIAN

400

AEP2011

The payroll with this number has already been sent and is in process, please check the status and try again later if status is FAILED or legalStatus is REJECTED

Una nómina con este número ya ha sido enviada y se encuentra en proceso, verifique el estado e intente nuevamente más tarde si el estado es FALLIDO o legalStatus es RECHAZADO

400

AEP2012

The payroll with this number is rejected by rule 90, please check the number and try again later

Ya existe una nómina con este número y se encuentra rechazada por Regla 90.

La regla 90 indica que en la base de datos de la DIAN ya hay un documento con ese número y por lo tanto no puede volver a usar el mismo consecutivo.

400

AEP2013

The payroll doesn't have an associated cancellation

La nómina no tiene una Nota de Ajuste (Cancelación) asociada.

400

AEP2014

Period dates aren't valid. Remember that the end date must be within the same period of the start date

Las fechas de período no son válidas. Recuerde que la fecha de finalización debe estar dentro del mismo período que la fecha de inicio.

404

AEP3001

The key of value for the DIAN doesn't exist

El identificador para obtener valores de la DIAN no existe

400

AEP4000

The company is already authorized for electronic payrolls

La compañía ya ha sido aceptada para nómina electrónica, es decir que ya se encuentra autorizada por la DIAN y por lo tanto no se pueden crear más sets de pruebas.

400

AEP4001

The test set with this governmentId has already been sent and is waiting for a response

Ya existe un set de pruebas con el governmentId enviado y está esperando respuesta de la DIAN

404

AEP4002

Test set not found

El set de pruebas no se encuentra registrado

400

AEP4003

The test set with this governmentId has already been sent and is pending to send, Alegra retry sending automatically maximum 3 times

Ya existe un set de pruebas con el governmentId enviado y se encuentra pendiente de re-envio, alegra lo intentara enviar automaticamente máximo 3 veces

400

AEP4004

The test set with this governmentId has already been sent and is accepted

Ya existe un set de pruebas con el governmentId enviado y está aceptado por la DIAN

400

AEP4005

The governmentId is not available for this environment

El governmentId enviado no está disponible en el ambiente sandbox, este error solo se dará en ambiente sandbox, debido a que solo están habilitados 3 governmentId en especifico que podrás usar para tus pruebas. Puedes consultarlos aquí.

400

D1000

Error singing document, the certificate is expired

El certificado asociado a la compañía está vencido y no se ha podido firmar el documento

400

D1001

Error singing document, the certificate was not found

No se encontró ningún certificado asociado a la compañía y la compañía no utiliza el certificado de Alegra

400

AEP5000

The limit is greater than the limit allowed

El número limite enviado como parámetro de consulta es superior al limite permitido.

404

AEP6001

Invoice not found

La factura de venta no se encuentra registrada

400

AEP6004

The file type is not supported for download

No se puede descargar el tipo de archivo que se está intentando descargar

400

AEP6005

The pdf file was not found. It is possible that the document has not been accepted by the DIAN yet

No se encontró el archivo PDF. Es posible que el documento aun no haya sido aceptado en la DIAN

400

AEP6006

The requested file not found

No se encontró el archivo solicitado

400

AEP6008

The company is not authorized by government entity for electronic invoice

La compañía no está autorizada por la DIAN para Factura Electrónica, quiere decir que no ha superado la etapa de habilitación y envío del set de pruebas con éxito

400

AEP6009

The invoice with this number is already registered and accepted

La factura con esta numeración ya se encuentra registrada y aceptada por la DIAN

400

AEP6010

The invoice with this number has already been sent and is in process, please check the status and try again later if status is FAILED or legalStatus is REJECTED

La factura con esta numeración ya se envió y se encuentra en proceso. por favor verifique el estado e intente nuevamente si el status es FAILED o legalStatus es REJECTED

400

AEP6011

The invoice with this number is rejected by rule 90, please check the number and try again later

La factura con esta numeración se encuentra rechazada por la Regla 90 de la DIAN, por favor verifique el número e intente nuevamente su emisión

400

AEP6012

The 'organizationType' attribute is required. Please update the company information or submit the attribute in the 'company' section

El campo 'organizationType' (Tipo de organización) es obligatorio en el grupo de información de la compañía.

400

AEP6013

The 'identificationType' attribute is required. Please update the company information or submit the attribute in the 'company' section

El campo 'identificationType' (Tipo de identificación jurídica) es obligatorio en el grupo de información de la compañía.

400

AEP6014

The 'name' attribute is required. Please update the company information or submit the attribute in the 'company' section

El campo 'name' (Nombre de la compañía) es obligatorio en el grupo de información de la compañía.

400

AEP6015

The 'regimeCode' attribute is required. Please update the company information or submit the attribute in the 'company' section

El campo 'regimeCode' (Régimen al que pertenece la empresa) es obligatorio en el grupo de información de la compañía.

400

AEP6016

The 'email' attribute is required. Please update the company information or submit the attribute in the 'company' section

El campo 'email' es obligatorio en el grupo de información de la compañía.

400

AEP6017

The 'address' attribute is required. Please update the company information or submit the attribute in the 'company' section

El campo 'address' es obligatorio en el grupo de información de la compañía.

400

AEP6018

The invoice of the Health Sector is not supported at the moment

La emisión de facturas para el sector salud no esta soportada en este momento

400

AEP6019

The 'exchangeRate' attribute is required

El grupo de información 'exchangeRate' (Grupo de información relacionada con la tasa de cambio) es obligatorio si la factura es de tipo "Exportación".

400

AEP6020

The 'additionalDocumentReference' attribute is required

El grupo de información 'additionalDocumentReference' es obligatorio.

400

AEP6021

The 'note' attribute is required. Please update the item information if the documentType is 'AIU'

El campo 'note' contenido en grupo de información del articulo es obligatorio para el caso de items de contratos de servicio tipo AIU para el item Administración.

400

AEP6022

instance.supplier.address.city is not one of enum values on dian/municipalities table

El atributo instance.supplier.address.city no esta dentro de la tabla de municipalidades de la DIAN

400

AEP6023

The 'payments.un .paymentDueDate' attribute is required if 'payments.á u.paymentForm' is '2'

El atributo *'payments. la.paymentDueDate'_es requerido cuando la forma de pago es *'2'_ (crédito)

400

AEP6024

The 'payments.un .paymentDueDate' is invalid. It must be greater than the emissionDate

La fecha en el campo 'payments.evo.paymentDueDate' debe ser mayor a la fecha de emisión (La fecha en la que se emite el documento)

404

AEP7001

Credit Note not found

Nota de crédito no encontrada.

400

AEP7004

The file type is not supported for download

El tipo de archivo no es compatible para la descarga.

400

AEP7009

The credit note with this number is already registered and accepted

La nota de crédito con este número ya está registrada y aceptada.

400

AEP7010

The credit note with this number has already been sent and is in process, please check the status and try again later if status is FAILED or legalStatus is REJECTED

La nota de crédito con este número ya ha sido enviada y está en proceso. Por favor, verifica el estado e intenta nuevamente más tarde si el estado es FALLIDO o el estado legal es RECHAZADO.

400

AEP7011

The credit note with this number is rejected by rule 90, please check the number and try again later

La nota de crédito con este número es rechazada por la regla 90. Por favor, verifica el número e intenta nuevamente más tarde.

400

AEP7012

The 'associatedDocuments' object is required. Please check the document type and the request

El objeto 'associatedDocuments' es requerido. Por favor, verifica el tipo de documento y la solicitud.

400

AEP7013

The 'payments.un .paymentDueDate' attribute is required if 'payments.á u.paymentForm' is '2'

El atributo 'payments., l.paymentDueDate' es requerido si 'payments.rá .paymentForm' es '2'.

400

AEP7014

The 'payments.un .paymentDueDate' is invalid. It must be greater than the emissionDate

El 'payments. un.paymentDueDate' es inválido. Debe ser mayor que la fecha de emisión.

404

AEP8001

Debit Note not found

Nota de débito no encontrada.

400

AEP8004

The file type is not supported for download

El tipo de archivo no es compatible para la descarga.

400

AEP8009

The debit note with this number is already registered and accepted

La nota de débito con este número ya está registrada y aceptada.

400

AEP8010

The debit note with this number has already been sent and is in process, please check the status and try again later if status is FAILED or legalStatus is REJECTED

La nota de débito con este número ya ha sido enviada y está en proceso. Por favor, verifica el estado e intenta nuevamente más tarde si el estado es FALLIDO o el estado legal es RECHAZADO.

400

AEP8011

The debit note with this number is rejected by rule 90, please check the number and try again later

La nota de débito con este número es rechazada por la regla 90. Por favor, verifica el número e intenta nuevamente más tarde.

400

AEP8012

The 'payments.un .paymentDueDate' attribute is required if 'payments.á u.paymentForm' is '2'

El atributo 'payments., l.paymentDueDate' es requerido si 'payments.rá .paymentForm' es '2'.

400

AEP8013

The 'payments.un .paymentDueDate' is invalid. It must be greater than the emissionDate

El 'payments. un.paymentDueDate' es inválido. Debe ser mayor que la fecha de emisión.

404

AEP9001

Numbering Ranges not found

Rangos de numeración no encontrados.

404

AEP9002

Prefixes not found associated with software code

Prefijos no encontrados asociados al código de software.

404

AEP9003

The software code doesn't correspond to the provider identification

El código de software no corresponde a la identificación del proveedor.

404

AEP9004

An error has occurred with the requested service

Ha ocurrido un error con el servicio solicitado.

404

AEP9005

Not authorized or invalid NIT

NIT no autorizado o inválido.

404

AEP9006

Environment not supported. Production environment only

Entorno no soportado. Solo entorno de producción.

404

AEP10004

An error has occurred with the requested service

Ha ocurrido un error con el servicio solicitado.

404

AEP11001

Event not found

Evento no encontrado.

400

AEP11002

The event type specified is incorrect

El tipo de evento especificado es incorrecto.

400

AEP11003

Property missing for the event specified

Falta una propiedad para el evento especificado.

400

AEP11004

The file type is not supported for download

El tipo de archivo no es compatible para la descarga.

400

AEP11005

Event with this number is already registered and accepted

El evento con este número ya está registrado y aceptado.

400

AEP11006

The event with this number has already been sent and is in process, please check the status and try again later if status is FAILED or legalStatus is REJECTED

El evento con este número ya ha sido enviado y está en proceso. Por favor, verifica el estado e intenta nuevamente más tarde si el estado es FALLIDO o el estado legal es RECHAZADO.

400

AEP11007

Event with this number is rejected by rule 90, please check the number and try again later

El evento con este número es rechazado por la regla 90. Por favor, verifica el número e intenta nuevamente más tarde.

400

AEP11008

DV invalid, remember providen a valid DV when identification type is 31

DV inválido. Recuerda proporcionar un DV válido cuando el tipo de identificación es 31.

400

AEP110010

An error ocurred when checking the invoice. It might be a dian web service problem

Ocurrió un error al verificar la factura. Podría ser un problema con el servicio web de DIAN.

400

AEP110011

The XML sent is invalid, it can be due to invalid tags or characters. It may also be a problem with the base64 encoding

El XML enviado es inválido, puede ser debido a etiquetas o caracteres inválidos. También puede ser un problema con la codificación base64.

400

AEP110012

The XML document sent is invalid, it can be a different type of document that the one requested

El documento XML enviado es inválido, puede ser un tipo de documento diferente al solicitado.

404

AEP110013

Attached Document requested haven't been built yet, try to make the request in 2 minutes please

El documento adjunto solicitado no se ha generado aún, por favor intenta realizar la solicitud en 2 minutos.

404

AEP12001

Document not found

Documento no encontrado.

400

AEP12002

Document with legalStatus 'REJECTED' can not be notified

El documento con estado legal 'REJECTED' no puede ser notificado.

400

AEP12003

Document with status 'WAITING_RESPONSE' can not be notified. Please check in a few minutes if DIAN has already process the document

El documento con estado 'WAITING_RESPONSE' no puede ser notificado. Por favor, verifica en unos minutos si DIAN ya procesó el documento.

404

AEP12004

Attached Document for that emission wasn't generated

El documento adjunto para esa emisión no fue generado.

400

AEP12005

You need to provide the email object for events notifications

Necesitas proporcionar el objeto de correo electrónico para notificaciones de eventos.

404

AEP12006

One email address have an incorrect format. If the email property wasn't sent in the request, try to include it.

Una dirección de correo electrónico tiene un formato incorrecto. Si la propiedad de correo electrónico no se envió en la solicitud, intenta incluirla.

404

AEP13001

Support Document not found

Documento de soporte no encontrado.

400

AEP13004

The file type is not supported for download

El tipo de archivo no es compatible para la descarga.

400

AEP13005

The file type is not supported for download. The Attached Document is not supported or generated for this document type

El tipo de archivo no es compatible para la descarga. El documento adjunto no es compatible o no se generó para este tipo de documento.

400

AEP13008

The company is not authorized by government entity for electronic support document

La empresa no está autorizada por la entidad gubernamental para el documento de soporte electrónico.

400

AEP13009

The support document with this number is already registered and accepted

El documento de soporte con este número ya está registrado y aceptado.

400

AEP13010

The support document with this number has already been sent and is in process, please check the status and try again later if status is FAILED or legalStatus is REJECTED

El documento de soporte con este número ya ha sido enviado y está en proceso. Por favor, verifica el estado e intenta nuevamente más tarde si el estado es FALLIDO o el estado legal es RECHAZADO.

400

AEP13011

The support document with this number is rejected by rule 90, please check the number and try again later

El documento de soporte con este número es rechazado por la regla 90. Por favor, verifica el número e intenta nuevamente más tarde.

400

AEP13019

The 'exchangeRate' attribute is required

El atributo 'exchangeRate' es requerido.

404

AEP14001

Adjustment note support document not found

Documento de soporte de nota de ajuste no encontrado.

400

AEP14002

The company is not authorized by government entity for support document

La empresa no está autorizada por la entidad gubernamental para el documento equivalente.

400

AEP14003

The adjustment note support document with this number is already registered and accepted

El documento de soporte de nota de ajuste con este número ya está registrado y aceptado.

400

AEP14004

The adjustment note support document with this number has already been sent and is in process, please check the status and try again later if status is FAILED or legalStatus is REJECTED

El documento de soporte de nota de ajuste con este número ya ha sido enviado y está en proceso. Por favor, verifica el estado e intenta nuevamente más tarde si el estado es FALLIDO o el estado legal es RECHAZADO.

400

AEP14005

The adjustment note support document with this number is rejected by rule 90, please check the number and try again later

El documento de soporte de nota de ajuste con este número es rechazado por la regla 90. Por favor, verifica el número e intenta nuevamente más tarde.

404

AEP14006

You must provide document reference's information when document reference's id is not sent

Debes proporcionar la información de referencia del documento cuando no se envía el id de referencia del documento.

404

AEP15001

Equivalent Document not found

Documento equivalente no encontrado.

400

AEP15008

The company is not authorized by government entity for electronic equivalent document pos

La empresa no está autorizada por la entidad gubernamental para el documento equivalente electrónico POS.

404

AEP16001

Adjustment note for equivalent document not found

Nota de ajuste para el documento equivalente no encontrada.

404

AEP16002

Equivalent Document indicated in documentReference's field was not found

El documento equivalente indicado en el campo documentReference no fue encontrado.

404

AEP16003

You must provide document reference's information when document reference's id is not sent

Debes proporcionar la información de referencia del documento cuando no se envía el id de referencia del documento.

400

AEP17001

The NIT of the company is invalid

El NIT de la empresa es inválido.

503

EPR500

Communication Error. A communication error has occurred with the DIAN service. Please try again.

Error de comunicación. Ocurrió un error de comunicación con el servicio DIAN. Por favor, inténtalo nuevamente.

503

EPR503

Timeout Error. The request to an http service has timed out.

Error de tiempo de espera. La solicitud a un servicio HTTP agotó el tiempo de espera.

400

EPR504

Resend Error. Signature date is different from shipping date.

Error de reenvío. La fecha de firma es diferente a la fecha de envío.