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

Add support for Czech/Slovak IČ - company registration number

Open PavelPancocha opened this issue 1 year ago • 3 comments

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 avatar Aug 02 '24 15:08 PavelPancocha

@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

dbartenstein avatar Aug 02 '24 16:08 dbartenstein

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.

arthurdejong avatar Sep 14 '24 16:09 arthurdejong

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

PavelPancocha avatar Sep 15 '24 08:09 PavelPancocha