I asked this question 4 years ago and never got an answer.
Is it possible to download all available discount codes for a Team Raiser?
DiscountType and Amount come in the TeamRaiserRegistration record.
DiscountID can be pulled from Payment.Discount record.
getParticipationTypes allows you to see if there are any discount codes linked the participation type, validateDiscount allows you to check if a specific code is valid, but you need to know the code.
I cannot find an endpoint that would return a list of discount codes, with their ID and name, so I can store them in the data warehouse and link the discount code to discount ID for reporting dashboards.
Any tips appreciated!