A student earning not more than 520 EUR per month does not have to pay tax (As of 2022). If a student is earning more than that after getting special permission, they have to get a tax number.