Our event chair decided it would be a great idea to reward our leadership by offering event credits to all leadership members for all events for the entire year.
I didn't like the idea creating a discount code to be shared among leadership as I feared the uncomfortable situation that could arise if a leadership member used that discount code for a spouse or family member. Some of those lines can get pretty fuzzy (if the spouse isn't an "official" leader but everyone knows they help out a bunch, should they get credit?), and I wanted to avoid that drama ever coming into question.
So that meant I needed to apply credits to specific users' accounts. But, as far as I am aware, there is no way to create bulk credits for users.
Thank goodness MSR has an API and I know how to make HTTP calls!
After way more work than I initially expected, I now have a Python application that takes in a variety of parameters (namely a list of members and events) and creates an MSR credit for every member/event combination. I've done my best to make this flexible and parameterized so that you might be able to use this same application for your own needs without modifying any of the files that are included in the Git repository (you will need to create one file, but it's ignored via .gitignore).
If you have questions, feel free to direct them here or to the issue tracker on GitHub.
Have a great Sunday all. I hope at least one of you lives where it's warm enough to go driving today!
Cheers,
David