Shonen Jump confirmed that Japanese copies of Final Fantasy XIII will come with Final Fantasy XIV beta codes. Considering the beta is, to my knowledge, currently PC only, this could mean there might be quite a few unused codes.
You can check out all the beta details that were revealed a few months ago for Final Fantasy XIV here.
Update: Campaign code is not a beta key.
(Source: Final Fantasy XIII.net )