Where can I find the legislation/regulation/standard that defines the CPF?

Asked

Viewed 59 times

2

I see a lot around the way to validate the CPF checker digit.

I also see that the numbers 111.111.111-11, 222.222.222-22, ... are invalid and should be disregarded

I also know that the ninth digit (anti-penultimate) defines the fiscal region of a given CPF.

However, I know these things by looking at the internet and in sources like Wikipedia, without any reference.

What law or standard regulates exactly how Cpfs should work? Where do I find the exact reference to how the checker digit/tax region digit?

The closest I found is the Cosar Declaratory Act/ Cotec nº 45, 30 December 1996. However he does not have some of the information I have cited to be known (for example the ninth digit).

Note: I believe this question makes sense here in Stackoverflow because it is related to CPF validation in computer systems

  • So in the somatematica there is the guide to how it works, but there is no reference to why it works like this. The memoria receita can contain the information, I’ll take a better look

  • At first there is none of that in this recipe link too

  • 1

    As far as I know "the ninth digit (anti-penultimate) defines which fiscal region of a given CPF" is no longer a true statement for many years. I believe that the declaratory act does not quote because it was no longer a true statement at the time. Note that for Receita Federal only a CPF that complies with the validation rules E is valid on the Receita website (http://receita.economia.gov.br/interface/lista-servicos/cadastros/cpf/autenticidade-inscrica-situao-cadastral-cpf).

  • I voted to close because probably the answer will be "It is the XYZ law" and I don’t think it’s directly linked to programming. I understand that validation is part of many systems, but this can open precedent to any question of the kind "What is the law that regulates X? After all, there are systems that use X" and the answer will be more legal than technological (see more on this at https://pt.meta.stackoverflow.com/a/6057/112052)

  • I understand the vote, @hkotsubo. In which forum would such a discussion be valid? My goal is to create a CPF validation lib, but I want to make sure it complies with legislation/regulations

  • 1

    It actually needs 5 votes (or a moderator vote) to close, so if no one else thinks the question is outside the scope, it remains open (I just thought it would be valid to justify my vote to see if anyone else agrees). Anyway, maybe in the chat you have better luck, since there is more "free" for this type of discussion

  • See http://www.receita.fazenda.gov.br/publico/Legislacao/atos/AtosConjunctions/AnexoIADEConjunctionCoratCotec0012002.doc

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.