Automatic discounts for draft orders

Topic summary

Automatic discounts configured in the shop were reported as not applying to orders created through the Draft Orders API. Even after the draft order was completed into a regular order, the discount still was not added.

Key points:

  • The main question was whether automatic discounts can be applied to draft orders, either at draft creation or when the draft is completed.
  • One reply pointed to an external article about handling discount codes with draft orders.
  • The follow-up clarified that the requirement is full automation, not a manual workaround.

Current outcome:

  • The practical workaround identified was to use the Storefront API instead of the Admin API.
  • Specifically, creating a checkout and applying a discount code through the Storefront API appears to support the needed automated flow.
  • No direct confirmation was provided that automatic discounts themselves work on draft orders, so that part remains effectively unresolved or unsupported in the discussion.
Summarized with AI on March 5. AI used: gpt-5.4.

I created an automatic discount (20% off for all products) and it is active.

Then I used draft_orders API to create a draft order. However, the automatic discount did not apply to the draft order.

Then I completed the draft order, the generated order also was not applied the automatic discount.

So just wanted to know if it is possible to apply automatic discounts to draft orders or apply it when complete a draft order?

Hey,

Refer this URL, you will have an idea about your solution.

https://bigbusinessinside.com/18907/shopify-draft-orders-discount-codes-solved/

hope this will work for you!

Thanks for your reply.

Yet, my App needs automation for all steps.

I found that the only solution is to use Storefront API instead of Admin API to create a checkout and apply discount code.

https://shopify.dev/api/storefront/reference/checkouts/checkoutdiscountcodeapplyv2