Closed rafaelbn closed 5 months ago
Fuera de eso y lo de la AEAT, no existe un registro donde obtener más información.
Mi idea va más por aquí:
Ping @PabloCastellano @JaimeObregon
Pero librebor.me no es "libre", si no que la API está detrás de un muro de pago. Obviamente se puede hacer, pero una alternativa realmente abierta sería lo indicado.
Me parece que en https://sede.registradores.org/site/mercantil se puede consultar gratuitamente, pero no sé si tienen API.
¡Hola! Hace un tiempo estuve trabajando en este asunto. Os comparto lo que sé:
Tal y como dice @rafaelbn, el censo de la AEAT recibe, para el caso de las personas jurídicas, un NIF y solo devuelve el nombre canónico de la sociedad en el censo tributario y si está activa o no. (Para el caso de las personas físicas devuelve lo mismo, pero en este caso es necesario proporcionar una aproximación al nombre de la persona —aunque sea inexacta— además de su NIF, que en este caso coincide con su DNI). Es lo que parece hacer la implementación de @acysos.
Que yo conozca, ni el censo tributario ni la AEAT proporcionan los datos de domicilio social que aquí se necesitan. Estos datos sí aparecen en el BORME, en su sección primera («Empresarios»), para el caso de las sociedades mercantiles. El Registro Mercantil no ofrece una API para consultar estos datos. Todo lo que publican al respecto son meros PDF desestructurados. La consulta a que parece refererise @yajo no devuelve el domicilio social.
@Pablocastellano ha hecho un trabajo fabuloso extrayendo la información del BORME y creando LibreBOR. Mucho de su trabajo es código abierto y está disponible aquí en GitHub. Pablo ofrece una API comercial, tal como comenta @pedrobaeza, para consultar programáticamente el BORME.
Para las sociedades españolas, el sistema europeo VIES obtiene los datos —en última instancia y hasta donde yo sé— del mencionado censo de la AEAT, por lo que no me consta que aporte nada nuevo.
El BOE no contiene la base de datos de empresas necesaria para resolver el problema que plantea Rafael.
Esto es todo lo que deduje investigando en su día este asunto.
¡ Muchas gracias @JaimeObregon !
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
¡Hola! ¡Hi!
I would like to create a module like @alexis-via one that take from a database all official data from Spanish companies
https://github.com/OCA/l10n-france/tree/16.0/l10n_fr_siret_lookup
Actually we are using from @acysos https://github.com/OCA/l10n-spain/tree/16.0/l10n_es_aeat_partner_check but this module only check and take name, VAT.
Any ideas how can we improve this?
Open to hear you! 😄
ping @OCA/local-spain-maintainers