Log in to the Mog Station with your Square Enix account.
When you have logged in, press "Add new service account".
Put the code in and choose "Next" button.
A confirmation page will appear detailing your actions Once you press confirm and accept the Terms and conditions on the next page, your key will be registered on your account.
You will be required to setup a recurring monthly subscription to utilise any free trials that may have come with the game.
In case of registering the code for Shadowbringers expansion: Select the service account you want to register the code on. Select ´Enter Expansion Registration Code"´ and follow the instructions on-screen. (Note that you must have A Realm Reborn registered for the platform you are trying to redeem Shadowbringers on.) Start the FINAL FANTASY XIV: Online launcher and log in with your Square Enix account. Shadowbringers will be downloaded automatically.
Steam users can find their 20-digit Shadowbringers registration code by navigating to their Steam game library and selecting “FINAL FANTASY XIV Online.” Once on the FFXIV game page, find the “Links” section on the right-hand side and select “CD key.” Your Shadowbringers code will be listed there. Note that this code can only be redeemed on FFXIV (Steam) service accounts.