DraftOrder

Version 2019-10

You can use the DraftOrder resource to allow merchants to create orders on behalf of customers. This is useful for Shopify merchants who receive orders through outside channels and enables a wide range of use cases including the following:

  • Create new orders for sales made by phone, in person, via chat, or by other means. Credit card payments for these orders can subsequently be entered in the Shopify admin.
  • Send invoices to customers to pay with a secure checkout link.
  • Use custom items to represent additional costs or products that aren't displayed in a shop's inventory.
  • Re-create mistaken orders.
  • Sell products at discount or wholesale rates.
  • Take pre-orders.

Note

The Draft Order resource does not expose reserve inventory information.

What you can do with DraftOrder

The Shopify API lets you do the following with the DraftOrder resource. More detailed versions of these general actions may be available:

DraftOrder properties

id
"id": 450789469

The ID of the draft order.

order_id
"id": 456789101

The ID of the order that 's created and associated with the draft order after the draft order is completed.

name
"name": "#1001"

Name of the draft order.

customer
"customer": {
  "id": 207119551,
  "email": "bob.norman@hostmail.com",
  "accepts_marketing": false,
  "created_at": "2012-03-13T16:09:55-04:00",
  "updated_at": "2012-03-13T16:09:55-04:00",
  "first_name"