Discount Codes Not Working in Draft Orders

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

  1. Multiple discount codes: Created various discount codes with different parameters

  2. Multiple draft orders: Tested across different draft orders with consistent failure

  3. Third-party verification: Created discount codes using SupaEasy to rule out our implementation

  4. Log analysis: Reviewed all extension logs and error reports - no relevant errors found