I recently bought a Macbook Pro 13" Early-2015 from a guy who used it only once and then reinstalled it for selling (already upgraded to the latest El-Capitan). After I set up my Apple ID I couldn't download the iLife & iWork apps for free, they all cost money.. I have them all free on my iPhone though.
What are the necessary steps to be able to download them for free? I know it should be on every Mac after 2013. The one I bought is 2015.
The Macbook was purchased in an official Apple Store in the United States, I have the receipt.