Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hey,
as of Storefront API version 2024-04 the Checkout API’s will be marked as deprecated. The deprecated checkoutDiscountCodeApplyV2 has the return field checkoutUserErrors which also states error codes for why a discount code may not applied. The new alternative cartDiscountCodesUpdate does not have this field and therefore there is no way of indicating why a code was not applied.
Is there a way of finding out, why a discount code was not applied if it was not applied.
Thanks.
use userErrors {field message }