I previously posted this in the wrong forum. I want to use the API to do what you can do through the admin dashboard which is to go to Discounts and then click on a Discount code, then click View all codes. That shows a list of all the individually generated codes and what Date they were created.
Using the API, I can get a list of all discount codes and I can get a list of codes and ids (of type DiscountRedeemCode) for the codes. What I can't figure out is where to get the "Created On" date that you can get through the dashboard. To try to be more clear, I have a discount code called WELCOME and it has 100 generated codes such as CXV154G2 and each of those has a Code, Created On, and Used value.