GraphQL Admin API - Get Discount Code list/creation date

Shopify Partner
1 0 0

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 but I can't figure out how to get the individual codes under that code and the dates they were created.  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 Created On date.

Replies 0 (0)