Storing of purchased consumables

I am creating an app, in which you can buy consumables via StoreKit2. Those consumables represent an available request for a feature in my app. Right now, I am storing this value (an Integer) in UserDefaults. My problem now is, that I am not sure, if this is within the rules of Apple/ or even legal. If a user deletes the app, his/her purchased available request would be gone and not restorable. If I store the value of available requests inside my backend database, it would be possible to change values by hand, which might be a problem for Apple too.

Is there any specific guideline I am missing, that covers the handling of this problem, or does anybody know how it should be done? Thanks in advance!

See if non-consumable in app purchase type is more suitable in your case.

Non-consumable

Provide non-consumable, premium features that are purchased once and don’t expire. Examples include additional filters in a photo app, extra brushes in an illustration app, or cosmetic items in a game. Non-consumable in-app purchases can offer Family Sharing.

https://developer.apple.com/in-app-purchase/

Storing of purchased consumables
 
 
Q