Licence for Windows 8.1?
You can reinstall Windows on the new SSD using a recovery tool or a bootable USB, which lets you restore the OS without purchasing a new license.
Contact Microsoft and request a key reset.