Hi Team
I need help/ suggestions with the issue below,
After creating a discount code via the admin API before the user checks out, a user is redirected to checkout using a URL with following format https://example.myshopify.com/checkout?discount={GeneratedDiscountCode}.
When the user reaches the checkout page the discount code’s validity status is just randomly deemed invalid, at other times it works perfectly (It’s really intermittent). I rarely manage to replicate the issue after several attempts, when it does happen all I do is click apply and the discount that was deemed invalid is applied normally there after, but a user wouldn’t know to do that.
Is there anything I can do to ensure that the discount code is available and ready for use by the time the user reaches the checkout page, besides of course forcing the user to manually insert the discount code?