Discount codes created through our app are not applying to draft orders in Shopify Admin, while automatic discounts work correctly in the same context.
What’s Happening
-
Discount codes generated using Functions API cannot be applied to draft orders
-
When attempting to apply the code, Shopify provides no error message
-
The discount code simply fails to apply with no feedback
-
Automatic discounts work perfectly in the same draft orders
What We’ve Tested
-
Multiple discount codes: Created various discount codes with different parameters
-
Multiple draft orders: Tested across different draft orders with consistent failure
-
Third-party verification: Created discount codes using SupaEasy to rule out our implementation
-
Log analysis: Reviewed all extension logs and error reports - no relevant errors found