Can I apply to student discount just with a school ID
If your just looking for the ~5% student discount, yes your student ID card will be enough. 

For the Apple On Campus 12% discout, they will check from your student card if your school is registered to this program.