Discount ID - Human Readable
Kewyn Appadoo
Hello, in the API when lookng at an order it returns Discount ID XXXXX but I'm not able to link it to Discount Code 100OFF for example. I couldn't find on the platform or on the API a way to match Discount ID XXXXX to Discount Code 100OFF.
Are we able to add something either in the discount code on the platform or for the API to also return the human reable discount code 100OFF please?
Rich Steinmetz (ClickFunnels Engineering)
Hey Kewyn Appadoo, would it help if we added a new Discount where you could do another Fetch Discount API call using the ID to get all the information for the discount?
Kewyn Appadoo
Rich Steinmetz (ClickFunnels Engineering) Any solution that would allow for us to get closer to working out that the Discount ID is in human redable format would be great. Right now there's no way of knowing what Discount ID XXXXXX actually is as a Discount Code on clickfunnels.
Ideally, it should return the Discount ID and the Discount Code so we can easily match discount ID to Discount code OR inside clickfunnels Discount itself show the ID somewhere on the page.
Rich Steinmetz (ClickFunnels Engineering)
Kewyn Appadoo thanks for the feedback! If you don't mind the extra API call like
GET api/v2/discounts?filter[id]=1,2,3
using the order.discount_ids, I think adding a Discount API would be cleanest at this point. We need to show those discounts anyway, so it would be a good addition.Kewyn Appadoo
Rich Steinmetz (ClickFunnels Engineering) thank you. Anything that can get me to understand what Discount ID relates to what discount code is a win.