Which iPhone is it ?
If the iPhone 5s or 5c and your on a refresh tariff then O2 are asking for the phone plan to be paid off first.
Also note it's free to contract customers and £15 to payg.
You will need another Networks SIM card to complete the unlock sequence.