Withholding tax is deducted every month by the employer from the salary of foreign nationals without a C permit (B and L permits) and of non-residents. The schedule includes average flat-rate allowances based on family situation, but ignores your individual deductions.
Subsequent ordinary taxation (TOU) corrects this gap: you file a complete tax return, the authority computes the actual tax (federal, cantonal, municipal) on all income, wealth and deductions, then credits the withholding tax already deducted. The balance is refunded or claimed (see withholding tax and TOU).
Legal basis since the reform of : art. 89, 89a and 99a of the Federal Direct Tax Act (DBG/LIFD), art. 33a, 33b and 35a of the Tax Harmonisation Act, Withholding Tax Ordinance. Since 2021, a correction of the schedule no longer grants deductions: only the TOU does.