You need Online Turkish Tax number as a foreigner for multiple reasons. You might want to open a bank account in Turkey, buy property in Turkey...