Sorry but this is common sense, MSFT are not going to give you a digital code for the game with the physical Xbox version otherwise everyone would just sell the physical game after they've redeemed the code for the digital version.
Made your first hot drop into HaloWaypoint.com
Halo 5: Guardians MP Beta
Halo 5: Guardians MP Beta participant.
View your Service Record on the web.
Become a member of an active Spartan Company.
Halo Legendary Crate Subscriber
Awarded to subscribers of the Halo Legendary Crate