Apple is offering a discount code for students to get free or discounted textbooks for a limited time.

The code, which appears on Apple.ca and is also available on the Apple app store, will expire in August.

The discount code is available to students at participating universities and colleges with a minimum of $30,000 of student debt.

It also includes free textbook downloads and online access to the App Store.

Apple is offering the discount code to students who have $50,000 or more of student loan debt, the company said in a statement.

Students can sign up for the discount by visiting apple.ca/education , visiting their college or university, and logging into the MyCareer portal.

The deal comes after Apple unveiled plans last month to offer a $100 discount for students who pay their student loans in full.

Apple has previously offered a $200 discount for people who have a credit card with a balance of $1,000.

Apple has been offering discounts to students with federal student loans.

Students with federal loans, including the Stafford, PLUS and HAMP loans, can receive up to $100 off the cost of their education.

Apple said it has also been offering students the chance to get an Apple Pay discount on Apple Watch purchases, as well as discounted iPads, iPhones and Apple Watches.