{
  "access_scopes": [
    "draft_orders"
  ],
  "available_on": [
    "graphql",
    "rest",
    "toml"
  ],
  "deprecated": false,
  "description": "Occurs whenever a draft order is created.",
  "name": "draft_orders/create",
  "pii": [
    "customer"
  ],
  "related_resource": "DraftOrder",
  "response": {
    "id": 890612572568261600,
    "note": null,
    "email": "jon@doe.ca",
    "taxes_included": false,
    "currency": "USD",
    "invoice_sent_at": null,
    "created_at": "2021-12-31T19:00:00-05:00",
    "updated_at": "2021-12-31T19:00:00-05:00",
    "tax_exempt": false,
    "completed_at": null,
    "name": "#D194",
    "allow_discount_codes_in_checkout?": false,
    "b2b?": false,
    "status": "open",
    "line_items": [
      {
        "id": 2672370,
        "variant_id": 49148385,
        "product_id": 632910392,
        "title": "IPod Nano - 8GB",
        "variant_title": "Red",
        "sku": "IPOD2008RED",
        "vendor": "Apple",
        "quantity": 7,
        "requires_shipping": true,
        "taxable": true,
        "gift_card": false,
        "fulfillment_service": "manual",
        "grams": 567,
        "tax_lines": [],
        "applied_discount": null,
        "name": "IPod Nano - 8GB - Red",
        "properties": [],
        "custom": false,
        "price": "199.00",
        "admin_graphql_api_id": "gid://shopify/DraftOrderLineItem/2672370"
      },
      {
        "id": 2274650,
        "variant_id": 457924702,
        "product_id": 632910392,
        "title": "IPod Nano - 8GB",
        "variant_title": "Black",
        "sku": "IPOD2008BLACK",
        "vendor": "Apple",
        "quantity": 7,
        "requires_shipping": true,
        "taxable": true,
        "gift_card": false,
        "fulfillment_service": "manual",
        "grams": 567,
        "tax_lines": [],
        "applied_discount": null,
        "name": "IPod Nano - 8GB - Black",
        "properties": [],
        "custom": false,
        "price": "199.00",
        "admin_graphql_api_id": "gid://shopify/DraftOrderLineItem/2274650"
      },
      {
        "id": 512848,
        "variant_id": 808950810,
        "product_id": 632910392,
        "title": "IPod Nano - 8GB",
        "variant_title": "Pink",
        "sku": "IPOD2008PINK",
        "vendor": "Apple",
        "quantity": 1,
        "requires_shipping": true,
        "taxable": true,
        "gift_card": false,
        "fulfillment_service": "manual",
        "grams": 567,
        "tax_lines": [],
        "applied_discount": null,
        "name": "IPod Nano - 8GB - Pink",
        "properties": [],
        "custom": false,
        "price": "199.00",
        "admin_graphql_api_id": "gid://shopify/DraftOrderLineItem/512848"
      }
    ],
    "api_client_id": null,
    "shipping_address": {
      "first_name": "Steve",
      "address1": "123 Shipping Street",
      "phone": "555-555-SHIP",
      "city": "Shippington",
      "zip": "40150",
      "province": "Kentucky",
      "country": "United States",
      "last_name": "Shipper",
      "address2": null,
      "company": "Shipping Company",
      "latitude": null,
      "longitude": null,
      "name": "Steve Shipper",
      "country_code": "US",
      "province_code": "KY"
    },
    "billing_address": {
      "first_name": "Bob",
      "address1": "123 Billing Street",
      "phone": "555-555-BILL",
      "city": "Billtown",
      "zip": "K2P0B0",
      "province": "Kentucky",
      "country": "United States",
      "last_name": "Biller",
      "address2": null,
      "company": "My Company",
      "latitude": null,
      "longitude": null,
      "name": "Bob Biller",
      "country_code": "US",
      "province_code": "KY"
    },
    "invoice_url": "https://jsmith.myshopify.com/548380009/invoices/abcd1234abcd1234abcd1234abcd1234",
    "created_on_api_version_handle": null,
    "applied_discount": {
      "description": "ABC 123",
      "value": "2.0",
      "title": "ABC 123",
      "amount": "6.00",
      "value_type": "percentage"
    },
    "order_id": null,
    "shipping_line": {
      "title": "ABC 123",
      "custom": true,
      "handle": null,
      "price": "4.00"
    },
    "tax_lines": [
      {
        "rate": 0.037501727067219416,
        "title": "State tax",
        "price": "4.00"
      },
      {
        "rate": 0.037501727067219416,
        "title": "State tax",
        "price": "5.00"
      },
      {
        "rate": 0.037501727067219416,
        "title": "State tax",
        "price": "1.00"
      }
    ],
    "tags": "",
    "note_attributes": [],
    "total_price": "477.00",
    "subtotal_price": "466.00",
    "total_tax": "489.00",
    "payment_terms": {
      "id": 706405506930370000,
      "payment_terms_name": "Net 7",
      "payment_terms_type": "net",
      "due_in_days": 7,
      "created_at": "2021-01-01T00:00:00-05:00",
      "updated_at": "2021-01-01T00:00:01-05:00",
      "payment_schedules": [
        {
          "id": 606405506930370000,
          "created_at": "2021-01-01T00:00:00-05:00",
          "updated_at": "2021-01-01T00:00:01-05:00",
          "payment_terms_id": 706405506930370000,
          "reference_id": 890612572568261600,
          "reference_type": "DraftOrder",
          "issued_at": "2021-01-01T00:00:00-05:00",
          "due_at": "2021-01-02T00:00:00-05:00",
          "completed_at": "2021-01-02T00:00:00-05:00",
          "amount": "477.00",
          "currency": "USD",
          "total_price": "477.00",
          "total_price_currency": "USD",
          "balance_due": "477.00",
          "balance_due_currency": "USD",
          "total_balance": "477.00",
          "total_balance_currency": "USD",
          "outstanding_balance": "477.00",
          "outstanding_balance_currency": "USD"
        }
      ],
      "can_pay_early": true
    },
    "admin_graphql_api_id": "gid://shopify/DraftOrder/890612572568261625",
    "customer": {
      "id": 706405506930370000,
      "email": null,
      "created_at": null,
      "updated_at": null,
      "first_name": "John",
      "last_name": "Smith",
      "state": "disabled",
      "note": null,
      "verified_email": true,
      "multipass_identifier": null,
      "tax_exempt": false,
      "currency": "USD",
      "phone": null,
      "tax_exemptions": [],
      "admin_graphql_api_id": "gid://shopify/Customer/706405506930370084",
      "default_address": {
        "id": null,
        "customer_id": 706405506930370000,
        "first_name": "John",
        "last_name": "Smith",
        "company": null,
        "address1": "123 Elm St.",
        "address2": null,
        "city": "Ottawa",
        "province": "Ontario",
        "country": "Canada",
        "zip": "K2H7A8",
        "phone": "123-123-1234",
        "name": "John Smith",
        "province_code": "ON",
        "country_code": "CA",
        "country_name": "Canada",
        "default": true
      }
    }
  },
  "shop_feature": false
}