How to add an Apple Store order to your Apple ID after purchasing as guest.

Link. “From your account page, ¬†choose Your Orders. Since your order doesn’t show, choose “Find it Now”. This displays the¬†Order Lookup Screen. Enter the order information and you will be given the option to add it to your Apple ID account.”