We wish to add a feature to some of our bundles, and I'm not sure how to do it.
Basically, we want to give (for example) bonus items the first time each player buys the bundle.
I didn't find a similar feature in the bundles page, and I believe there's currently no API endpoint to access a player's purchase history (to check whether they have already bought the bundle or not)
My current workaround idea is something like this:
Create a player statistic for each affected bundle.
Create a rule that increments the statistic when the player buys the bundle (or when the bundle item is added to their inventory).
Create another rule that gives the bonus items when the statistic is changed and its new value is 1.
Obviously this is not an ideal way to do it. Is there anything I'm missing to make it better?