Hi! I am Justin. Please give me a few minutes to go over your question.
If you iPad need to be unlocked you will need the code. If you do not have the code you will need to restore it back to factory.This is the link to the Apple Support page to restore back to factory.https://support.apple.com/en-us/HT204306Thank you for working with me! If you have any issue please reach back out to me. Please don’t forget to rate my service. :)