python-stdnum icon indicating copy to clipboard operation
python-stdnum copied to clipboard

Add support for Bolivia TIN

Open unho opened this issue 6 years ago • 3 comments

  • https://en.wikipedia.org/wiki/VAT_identification_number

    Número de Identificación Tributaria (NIT) 7 digits

  • Some data on the structure: https://www.ciat.org/Biblioteca/AsambleasGenerales/2014/Espanol/2014_tema3.2_Arinez_Bolivia.pdf

    Para el caso de personas naturales, propietarias de empresas unipersonales y sucesiones indivisas, la estructura del NIT es el número de Cédula de Identidad más tres códigos de control asignados por la Administración Tributaria.

    Para las personas jurídicas, el NIT está compuesto por varios dígitos seguidos de códigos de control generados como algoritmos por el sistema, considerando entre otros la fecha de la transacción, el tipo de sociedad y la dependencia a que pertenece.

  • According to the following it is a number with a max length of 12:
    • https://www.jc-mouse.net/proyectos/facturacion-electronica-el-codigo-de-control
      • In this case it might be because the field accepts either NIT or CI.
    • http://siatinfo.impuestos.gob.bo/images/documentos/ANEXOS_TECNICOS_SFE_20181121.pdf
  • https://tramitesyrequisitos.com/bolivia/como-saber-mi-nit/
  • https://tramitesyrequisitos.com/bolivia/nit/

    Suggests it is 9 digits long.

  • https://tin-check.com/en/bolivia/

    The Tax Identification Number NIT is assigned by the Tax Administration, to any natural person, legal entity or undivided succession, at the time that it is registered to carry out any economic activity, and that the taxes established in Law 843 are taxable persons.

    The NIT will also have to have it all the people who are not taxpayers of them and are obliged to act as withholding and / perception agents of the taxes established in the aforementioned Law, have the obligation to register in the New National Register of Taxpayers to get the NIT.

    Format: The TIN consists of 9 | 12 digits. (NNNNNNNNN | NNNNNNNNNNNN)

  • https://world.salestaxhandbook.com/bo-bolivia

    The VAT number format is 9999999999 (taxpayer identification number [NIT]).

APIs/Implementations:

  • Possible API? https://test.agetic.gob.bo/documentacion/iop-servicios-fundempresa-v2/
  • Checker in Go language: https://github.com/ltns35/go-vat/blob/main/countries/bolivia.go

    It simply checks it is 7 digits.

Search online:

  • Search company by name: https://www.fundempresa.org.bo/directorio/Inicio/getMostrarEmpresa
  • http://apad2.aduana.gob.bo:7777/ventanilla/sol_cliente_nit.jsp

Examples:

  • List of example NIT numbers: https://siat.impuestos.gob.bo/FacCsis/secure/Facturacion/Certificacion/ListaSistemasCertificados.xhtml
  • https://elpais.bo/wp-content/uploads/2019/04/14-04-2019-Edicio%CC%81n.pdf (page 9)
  • https://www.licitaciones.com.bo/empresas.html (click on each of the companies to see their NIT)
  • http://www.mindef.gob.bo/mindef/sites/default/files/files/LISTADO_DE_EMPRESAS.pdf

    1000867020 150054023 247632025 4307509011 7476755010 6159623019 196654024 1020199024 3741874019 3007180012 4876485011 158516028 994448011 4836134016 247632025 141389029 1020325026 1025905020 1037135011 1023101026 1028409020 1020351029 1020655027 1007017028 1028175023 1006765027 2399436011 4814545015 2459498019 4758594010 3336330016 4414184012 6731091010 2680468016 162924024 198840024 184158023 280916025 1015491026 4278362012 1002875023 2834433014 1001741026 2666522018 1023559027 1028443027 164076020

  • Several hundreds at https://www.ende.bo/proveedores
  • https://www.afp-futuro.com/www/doc/doc/empresassindependientes2019.pdf
  • More than 1400 examples https://www.afp-futuro.com/www/doc/bienvenida/connoregcon.xls (attached here just in case)
  • Several hundred of them http://sms.obairlines.bo/BoAInstitucional/Content/Documentos/Proveedores%20Nacionales.pdf (attached here just in case)
  • 5058051012
  • 5851185012
  • 158270027
  • 4669 85803
  • 800 230 546 – 8
  • 143885023
  • 1023187029
  • 184786023
  • 1006989027
  • 8684358015
  • 1018497028
  • 1020181027
  • 1020441026
  • 1028325025
  • 120919027
  • 123747020
  • 1020269020
  • 1072367018
  • 7538085015
  • 1025259028
  • 5906164019
  • 1020255020
  • 175972027
  • 199628028
  • 1020559026
  • 142277026
  • 4707087012
  • 164582027
  • 1020613020
  • 317310023
  • 260042020
  • 1020229024
  • 1020655027
  • 304344025
  • 137141021
  • 1016259020
  • 1000565021
  • 1000081023
  • 1020235024
  • 338612029
  • 295470024
  • 1028751025
  • 1028037020 from https://www.uagrm.edu.bo/
  • 1019023023 from https://www.aspb.gob.bo/
  • 120919027 from https://www.anh.gob.bo/w2019/
  • 111111020 from https://www.bcp.com.bo/FactExt/(S(levjjc3lgvpqnrasaifahzyj))/ConsultaFacturas.aspx
  • 338612029 from https://www.ylb.gob.bo/
  • 120431020 from https://firmadigital.bo/#reclamos
  • Several hundreds (looks like 3897 of them) at https://www.cadecocruz.org.bo/descargas/RND-1022000000010-TERCER-GRUPO-DE-CONTRIBUYENTES-QUE-DEBEN-IMPLEMENTAR-UNA-MODALIDAD-DE.pdf (attached here just in case)

    On a first look, it looks like all of them are 9 or 10 digits long.

unho avatar Jun 10 '19 15:06 unho

Despite my efforts I have been unable to find out exactly how is the structure for NIT numbers (include its length) or if they have some sort of validation. I am putting this aside in the hope somewhere else can contribute that info.

unho avatar Jun 29 '19 14:06 unho

Sometimes we lose.... Bolivia .....

rafysanchez avatar Nov 16 '20 16:11 rafysanchez

@rafysanchez if you are able to provide any insights that would be much appreciated.

unho avatar Nov 16 '20 18:11 unho