you need following thing for motorola unlock code.
imei number of your motorola mobile
sim card company with which your mobile is locked. Also provide all details
about your gsm cdma carrier.
and country where it is locked.
you can also get bootloader unlock file from motorola for that you need
device id of your motorola mobile phone.
Once you get device id go to motorola site register with your device id and
provide your email id. They will send unlockfile for free to your email id. For
this you need to root your motorola mobile and you need adb shell and fastboot.
By this bootloader unlock method you can unlock your motorola mobile easily
and free of cost.