I am trying to find a way to validate the discount that is apply to a cart in a checkout validation function, but… I can’t find any way to get the discount codes that have actually been apply. I would expect I have receive those in the Input to the function, but I can’t see any fields in the GraphQL API to support this.
Does anyone know how I can get the discount codes that have been applied to a cart in a shopify function?
Thanks