How can a foreigner to get a Turkish tax number?

Step 1

How to get «Potansiyel Vergi Kimlik Numarası» / «Non-citizen's potential tax number»?

Step 2

On the step 1 you get a potential tax number.
It is enough to apply for a residence permit or to open a bank acccount.
But does not allow:

A potential tax number also leads to errors:

The solution is to upgrade «Potansiyel Vergi Kimlik Numarası» / «Non-citizen's potential tax number» to a real one.