python-stdnum
python-stdnum copied to clipboard
Add support for Czech/Slovak IČ - company registration number
Just 8 digits.
Example: https://or.justice.cz/ias/ui/rejstrik-firma.vysledky?subjektId=47718&typ=PLATNY&sp=H4sIAAAAAAAAAKtWykvMTU0JSCwCUiWpRcVKVtHVStmplUpWQJmq1DIlHaWyxJzSVCD%252F6MLs%252FJRE%250D%250AhcTSknyl2thaAOBvbwI7AAAA%250D%250A
Example: 00177041, could be formatted as 001 77 041
@PavelPancocha is there any official API in the Czech Republic where the company registration number could be validated? See example for Germany: https://github.com/arthurdejong/python-stdnum/blob/6cbb9bc09c25fbda7a032521bc57b44e0ce18ec4/stdnum/de/handelsregisternummer.py#L328
Is there a relation to the DIČ number (which is included in python-stdnum already)?
Btw, see https://github.com/arthurdejong/python-stdnum/blob/master/CONTRIBUTING.md#adding-number-formats for what information would be useful when adding a new number format.
In most cases the IČ(O) (its the same thing) is just the DIČ without CZ prefix, but can be different - mainly for physical persons. Also if you are now VAT payer, you don't provide the VAT on invoices, it is only used internally with tax-office.
You can use this official API to get info about specific number: https://ares.gov.cz/swagger-ui/#/ekonomicke-subjekty-szr/vratEkonomickySubjektSzr