You can just call the network these days. Even if it's PAYG or after the contract has finished. www.uswitch.com/mobiles/guides/how-to-unlock-a-phone-a-guide-to-unlocking-mobile-phones/amp/
Its an old iphone se I got off my bro locked to vodafone, have to have used it on vodafone for 30 days to get it unlocked. https://www.vodafone.co.uk/vodafone-uk/forms/unlock-code-request/ thanks for the reply though.