Shopify draft order API tutorial (2026): create orders from your own Shopify app with the GraphQL Admin API - a phone order as a draft order (a product, a custom item, a discount and shipping), Shopify's own totals with draftOrderCalculate, turning it into a real order, marking it as paid, and cancelling it with a refund and restock. Plus why your app only sees 60 days of orders. Shopify app development series, episode 15 - everything shown is real, nothing skipped.
What you'll learn
Scopes write_draft_orders + write_orders (and read_all_orders)
draftOrderCalculate + draftOrderCreate
draftOrderComplete (payment pending)
orderMarkAsPaid + orderUpdate
orderCancel: refund + restock
5 real traps
💻 Free source code for this episode: https://github.com/fayyaz315/shopify-app-development-2026/tree/ep15
3 quick fixes from this episode
Shopify Create Order API: Draft Order to Real Order in One Call
Shopify create order API (2026-10): build a draft order (product, custom item, discount, shipping), let…