You can get your security deposit back when you upgrade to an unsecured credit card or close your secured credit card account — as long as your account is in good standing and your balance is paid in full.