Can I use a swift code instead of routing number? If not, is there any other ways to get a refund deposited?

I am outside of the USA now. In my country, all banks have only swift codes.