Every time a new SIM card, either prepaid or postpaid, is issued, the PIN and PUK codes are printed on its packaging. For an E-SIM, these codes are also provided, usually sent via email or mailed ...
A PUK code is required if a GSM SIM card was locked after entering the wrong PIN code three times in a row. Entering a wrong PUK code ten times in a row disables the SIM card permanently.