Can not use enteredDiscountCodes on new discount function

When I add enteredDiscountCodes to the input and try to deploy it returns

Validation
  • targeting.0.input_query: Input.enteredDiscountCodes is not available on  cart.lines.discounts.generate.run

It also doesn’t work on dev. It never returns the updated query result. I checked on unstable, 2025-07 and 2025-04 versions. I also tried it in multiple apps.

Hi Abid!

Thanks for sharing this. Input.enteredDiscountCodes is only available on the cart.lines.discounts.generate.fetch and cart.delivery-options.discounts.generate.fetch targets. We’ll update our documentation to make this limitation clear.