What is Draft Order API in Shopify?

Modified on Mon, 23 Feb at 2:59 AM

Draft Order API in Shopify allows to create an order first (with custom pricing) and let the customer pay for it afterward.


Instead of Shopify calculating the price normally at checkout, this creates a custom order in the background with the correct final price.


How Hulk Product Options uses it:

When a customer selects extra options (like add-ons, upgrades, custom text, etc.), the price changes dynamically.


When an order includes add-ons or extra charges, it is first created as a draft order in Shopify. Once the customer completes the payment, the draft order is automatically converted into a regular order.

Example:

Suppose we sell a T-shirt for ₹1,000.

Customer selects:

  • Custom Print (+₹200)
  • Gift Wrap (+₹50)


Final price = ₹1,250


Shopify’s normal checkout cannot automatically update the product price based on these extra options.


So, Hulk Product Options:

  1. Creates a draft order for ₹1,250 with all selected options.
  2. Sends the customer to pay.
  3. Once paid, it converts into a regular order in Shopify.


Why This DRAFT API Logic Is Important

  • Draft Orders let Hulk Product Options handle all custom options and add-ons smoothly.
  • It ensure accurate pricing, proper inventory tracking, and seamless order creation, even with complex product configurations.

Conclusion: Draft Orders make sure every customer gets the exact order they customized, without any pricing issues.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article