Storing Customer's Health App Data "Steps" for future rewarding

we are planning to develop a new module on our rewarding system to reward our customers on their physical activities "number of steps" received from the Apple Health and Fitness API.

the customers will have to consent the access to their health app to allow the integration ofcourse.

the idea is to allow the customer to participate in a weekly competition, where we'll be counting the number of steps of each participants and accordingly rewards the top 3 participants.

my question here, will apple allow us to store/count the customers' number of steps after getting the proper consent.

if yes, than what might be the further limitations/restrictions on processing such data?