> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.shopify.draftorders.CreateDraftOrder

- Component: `appmixer.shopify.draftorders.CreateDraftOrder`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.shopify 4.1.0](https://connectors.appmixer.com/connector/appmixer.shopify/4.1.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.shopify/4.1.0/component/appmixer.shopify.draftorders.CreateDraftOrder>

Create a draft order, for example a quote or an order taken by phone, that the customer can pay through its invoice. Returns the draft order. Needs the write_draft_orders access scope on the Shopify app.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Line Items (`lineItems`) | expression | The products of the draft order. Each item is either a product variant of your store, or a custom item with its own title and price. |
| Customer (`customerId`) | text | Pick the customer, or enter the customer ID (global or numeric). |
| Email (`email`) | text | The customer's email address for the draft order. |
| Phone (`phone`) | text | The customer's phone number, in E.164 format (for example +15145556789). |
| Note (`note`) | textarea | A note for the draft order. |
| Tags (`tags`) | text | Comma-separated tags. |
| PO Number (`poNumber`) | text | The purchase order number. |
| Tax Exempt (`taxExempt`) | toggle | Whether the draft order is exempt from taxes. |
| First Name (`shippingFirstName`) | text | - |
| Last Name (`shippingLastName`) | text | - |
| Company (`shippingCompany`) | text | - |
| Address Line 1 (`shippingAddress1`) | text | - |
| Address Line 2 (`shippingAddress2`) | text | - |
| City (`shippingCity`) | text | - |
| Province Code (`shippingProvinceCode`) | text | State or province code, for example `ON` or `CA`. Names are not accepted. |
| Country Code (`shippingCountryCode`) | text | Two-letter ISO country code, for example `CZ` or `US`. Names are not accepted. |
| Postal Code (`shippingZip`) | text | - |
| Phone (`shippingPhone`) | text | - |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Draft Order ID (`id`) | string | - |
| Legacy Resource ID (`legacyResourceId`) | string | - |
| Name (`name`) | string | - |
| Status (`status`) | string | - |
| Email (`email`) | string | - |
| Phone (`phone`) | string | - |
| Note (`note2`) | string | - |
| Tags (`tags`) | array | - |
| PO Number (`poNumber`) | string | - |
| Tax Exempt (`taxExempt`) | boolean | - |
| Taxes Included (`taxesIncluded`) | boolean | - |
| Currency Code (`currencyCode`) | string | - |
| Presentment Currency Code (`presentmentCurrencyCode`) | string | - |
| Invoice URL (`invoiceUrl`) | string | - |
| Invoice Sent At (`invoiceSentAt`) | string | - |
| Reserve Inventory Until (`reserveInventoryUntil`) | string | - |
| Total Quantity (`totalQuantityOfLineItems`) | integer | - |
| Created At (`createdAt`) | string | - |
| Updated At (`updatedAt`) | string | - |
| Completed At (`completedAt`) | string | - |
| Order (`order`) | object | - |
| Customer (`customer`) | object | - |
| Custom Attributes (`customAttributes`) | array | - |
| Applied Discount (`appliedDiscount`) | object | - |
| Shipping Line (`shippingLine`) | object | - |
| Tax Lines (`taxLines`) | array | - |
| Subtotal Price (`subtotalPriceSet`) | object | - |
| Total Discounts (`totalDiscountsSet`) | object | - |
| Total Shipping Price (`totalShippingPriceSet`) | object | - |
| Total Tax (`totalTaxSet`) | object | - |
| Total Price (`totalPriceSet`) | object | - |
| Shipping Address (`shippingAddress`) | object | - |
| Billing Address (`billingAddress`) | object | - |
| Line Items (`lineItems`) | array | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.shopify.draftorders.CreateDraftOrder",
  "description": "Create a draft order, for example a quote or an order taken by phone, that the customer can pay through its invoice. Returns the draft order. Needs the write_draft_orders access scope on the Shopify app.",
  "author": "Appmixer <info@appmixer.com>",
  "private": false,
  "auth": {
    "service": "appmixer:shopify",
    "scope": [
      "read_draft_orders",
      "write_orders"
    ]
  },
  "quota": {
    "manager": "appmixer:shopify",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "lineItems": {
            "type": "object"
          },
          "customerId": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "tags": {
            "type": "string"
          },
          "poNumber": {
            "type": "string"
          },
          "taxExempt": {
            "type": "boolean"
          },
          "shippingFirstName": {
            "type": "string"
          },
          "shippingLastName": {
            "type": "string"
          },
          "shippingCompany": {
            "type": "string"
          },
          "shippingAddress1": {
            "type": "string"
          },
          "shippingAddress2": {
            "type": "string"
          },
          "shippingCity": {
            "type": "string"
          },
          "shippingProvinceCode": {
            "type": "string"
          },
          "shippingCountryCode": {
            "type": "string"
          },
          "shippingZip": {
            "type": "string"
          },
          "shippingPhone": {
            "type": "string"
          }
        },
        "required": [
          "lineItems"
        ]
      },
      "inspector": {
        "inputs": {
          "lineItems": {
            "type": "expression",
            "label": "Line Items",
            "index": 1,
            "levels": [
              "ADD"
            ],
            "tooltip": "The products of the draft order. Each item is either a product variant of your store, or a custom item with its own title and price.",
            "fields": {
              "itemType": {
                "type": "select",
                "label": "Item Type",
                "index": 1,
                "defaultValue": "variant",
                "options": [
                  {
                    "value": "variant",
                    "label": "Product variant"
                  },
                  {
                    "value": "custom",
                    "label": "Custom item"
                  }
                ]
              },
              "variantId": {
                "type": "text",
                "label": "Product Variant",
                "index": 2,
                "tooltip": "Pick a product variant, or enter its ID (global or numeric). Its title and price are taken from the product.",
                "source": {
                  "url": "/component/appmixer/shopify/products/FindProducts?outPort=out",
                  "data": {
                    "messages": {
                      "in/outputType": "array"
                    },
                    "properties": {
                      "isSource": true
                    },
                    "transform": "./FindProducts#variantsToSelectArray"
                  }
                },
                "when": {
                  "eq": {
                    "./itemType": "variant"
                  }
                }
              },
              "title": {
                "type": "text",
                "label": "Title",
                "index": 3,
                "tooltip": "The title of the custom item.",
                "when": {
                  "eq": {
                    "./itemType": "custom"
                  }
                }
              },
              "price": {
                "type": "number",
                "label": "Unit Price",
                "index": 4,
                "tooltip": "The price of one custom item, in the store currency.",
                "when": {
                  "eq": {
                    "./itemType": "custom"
                  }
                }
              },
              "sku": {
                "type": "text",
                "label": "SKU",
                "index": 5,
                "when": {
                  "eq": {
                    "./itemType": "custom"
                  }
                }
              },
              "quantity": {
                "type": "number",
                "label": "Quantity",
                "index": 6,
                "defaultValue": 1,
                "tooltip": "How many units are ordered."
              },
              "taxable": {
                "type": "toggle",
                "label": "Taxable",
                "index": 7,
                "defaultValue": true,
                "when": {
                  "eq": {
                    "./itemType": "custom"
                  }
                }
              },
              "requiresShipping": {
                "type": "toggle",
                "label": "Requires Shipping",
                "index": 8,
                "defaultValue": true,
                "when": {
                  "eq": {
                    "./itemType": "custom"
                  }
                }
              }
            }
          },
          "customerId": {
            "type": "text",
            "label": "Customer",
            "tooltip": "Pick the customer, or enter the customer ID (global or numeric).",
            "source": {
              "url": "/component/appmixer/shopify/customers/FindCustomers?outPort=out",
              "data": {
                "messages": {
                  "in/outputType": "array"
                },
                "properties": {
                  "isSource": true
                },
                "transform": "./FindCustomers#customersToSelectArray"
              }
            },
            "index": 2
          },
          "email": {
            "type": "text",
            "label": "Email",
            "tooltip": "The customer's email address for the draft order.",
            "index": 3
          },
          "phone": {
            "type": "text",
            "label": "Phone",
            "tooltip": "The customer's phone number, in E.164 format (for example +15145556789).",
            "index": 4
          },
          "note": {
            "type": "textarea",
            "label": "Note",
            "tooltip": "A note for the draft order.",
            "index": 5
          },
          "tags": {
            "type": "text",
            "label": "Tags",
            "tooltip": "Comma-separated tags.",
            "index": 6
          },
          "poNumber": {
            "type": "text",
            "label": "PO Number",
            "tooltip": "The purchase order number.",
            "index": 7
          },
          "taxExempt": {
            "type": "toggle",
            "label": "Tax Exempt",
            "tooltip": "Whether the draft order is exempt from taxes.",
            "index": 8
          },
          "shippingFirstName": {
            "type": "text",
            "label": "First Name",
            "index": 20,
            "group": "shippingAddress"
          },
          "shippingLastName": {
            "type": "text",
            "label": "Last Name",
            "index": 21,
            "group": "shippingAddress"
          },
          "shippingCompany": {
            "type": "text",
            "label": "Company",
            "index": 22,
            "group": "shippingAddress"
          },
          "shippingAddress1": {
            "type": "text",
            "label": "Address Line 1",
            "index": 23,
            "group": "shippingAddress"
          },
          "shippingAddress2": {
            "type": "text",
            "label": "Address Line 2",
            "index": 24,
            "group": "shippingAddress"
          },
          "shippingCity": {
            "type": "text",
            "label": "City",
            "index": 25,
            "group": "shippingAddress"
          },
          "shippingProvinceCode": {
            "type": "text",
            "label": "Province Code",
            "index": 26,
            "group": "shippingAddress",
            "tooltip": "State or province code, for example <code>ON</code> or <code>CA</code>. Names are not accepted."
          },
          "shippingCountryCode": {
            "type": "text",
            "label": "Country Code",
            "index": 27,
            "group": "shippingAddress",
            "tooltip": "Two-letter ISO country code, for example <code>CZ</code> or <code>US</code>. Names are not accepted."
          },
          "shippingZip": {
            "type": "text",
            "label": "Postal Code",
            "index": 28,
            "group": "shippingAddress"
          },
          "shippingPhone": {
            "type": "text",
            "label": "Phone",
            "index": 29,
            "group": "shippingAddress"
          }
        },
        "groups": {
          "shippingAddress": {
            "label": "Shipping Address",
            "index": 1
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "required": [
          "id",
          "legacyResourceId",
          "name",
          "status",
          "tags",
          "taxExempt",
          "taxesIncluded",
          "currencyCode",
          "presentmentCurrencyCode",
          "totalQuantityOfLineItems",
          "createdAt",
          "updatedAt",
          "customAttributes",
          "taxLines",
          "subtotalPriceSet",
          "totalDiscountsSet",
          "totalShippingPriceSet",
          "totalTaxSet",
          "totalPriceSet",
          "lineItems"
        ],
        "properties": {
          "id": {
            "type": "string",
            "title": "Draft Order ID",
            "example": "gid://shopify/DraftOrder/1698576236625"
          },
          "legacyResourceId": {
            "type": "string",
            "title": "Legacy Resource ID",
            "example": "1698576236625"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "example": "#D14"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "example": "OPEN"
          },
          "email": {
            "type": "string",
            "title": "Email",
            "example": "jane.doe@example.com"
          },
          "phone": {
            "type": "string",
            "title": "Phone",
            "example": "+16135550135"
          },
          "note2": {
            "type": "string",
            "title": "Note",
            "example": "Call before delivery"
          },
          "tags": {
            "type": "array",
            "title": "Tags",
            "items": {
              "type": "string"
            },
            "example": [
              "wholesale"
            ]
          },
          "poNumber": {
            "type": "string",
            "title": "PO Number",
            "example": "PO-2026-118"
          },
          "taxExempt": {
            "type": "boolean",
            "title": "Tax Exempt",
            "example": false
          },
          "taxesIncluded": {
            "type": "boolean",
            "title": "Taxes Included",
            "example": false
          },
          "currencyCode": {
            "type": "string",
            "title": "Currency Code",
            "example": "USD"
          },
          "presentmentCurrencyCode": {
            "type": "string",
            "title": "Presentment Currency Code",
            "example": "USD"
          },
          "invoiceUrl": {
            "type": "string",
            "title": "Invoice URL",
            "example": "https://example-store.myshopify.com/107961745489/invoices/51ca2234d7197be947328766b6beb411"
          },
          "invoiceSentAt": {
            "type": "string",
            "title": "Invoice Sent At",
            "example": "2026-10-02T15:30:00Z",
            "format": "date-time"
          },
          "reserveInventoryUntil": {
            "type": "string",
            "title": "Reserve Inventory Until",
            "example": "2026-10-09T15:26:06Z",
            "format": "date-time"
          },
          "totalQuantityOfLineItems": {
            "type": "integer",
            "title": "Total Quantity",
            "example": 1
          },
          "createdAt": {
            "type": "string",
            "title": "Created At",
            "example": "2026-10-02T15:26:06Z",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "title": "Updated At",
            "example": "2026-10-02T15:27:07Z",
            "format": "date-time"
          },
          "completedAt": {
            "type": "string",
            "title": "Completed At",
            "example": "2026-10-04T10:00:00Z",
            "format": "date-time"
          },
          "order": {
            "type": "object",
            "title": "Order",
            "required": [
              "id",
              "legacyResourceId",
              "name"
            ],
            "properties": {
              "id": {
                "type": "string",
                "title": "Order.ID",
                "example": "gid://shopify/Order/7801814876320"
              },
              "legacyResourceId": {
                "type": "string",
                "title": "Order.Legacy Resource ID",
                "example": "7801814876320"
              },
              "name": {
                "type": "string",
                "title": "Order.Name",
                "example": "#1018"
              }
            }
          },
          "customer": {
            "type": "object",
            "title": "Customer",
            "required": [
              "id",
              "legacyResourceId",
              "displayName"
            ],
            "properties": {
              "id": {
                "type": "string",
                "title": "Customer.ID",
                "example": "gid://shopify/Customer/27598980087889"
              },
              "legacyResourceId": {
                "type": "string",
                "title": "Customer.Legacy Resource ID",
                "example": "27598980087889"
              },
              "displayName": {
                "type": "string",
                "title": "Customer.Display Name",
                "example": "Jane Doe"
              },
              "defaultEmailAddress": {
                "type": "object",
                "title": "Customer.Default Email Address",
                "required": [
                  "emailAddress"
                ],
                "properties": {
                  "emailAddress": {
                    "type": "string",
                    "title": "Customer.Default Email Address.Email Address",
                    "example": "jane.doe@example.com"
                  }
                }
              },
              "defaultPhoneNumber": {
                "type": "object",
                "title": "Customer.Default Phone Number",
                "required": [
                  "phoneNumber"
                ],
                "properties": {
                  "phoneNumber": {
                    "type": "string",
                    "title": "Customer.Default Phone Number.Phone Number",
                    "example": "+16135550135"
                  }
                }
              }
            }
          },
          "customAttributes": {
            "type": "array",
            "title": "Custom Attributes",
            "items": {
              "type": "object",
              "required": [
                "key"
              ],
              "properties": {
                "key": {
                  "type": "string",
                  "title": "Key",
                  "example": "channel"
                },
                "value": {
                  "type": "string",
                  "title": "Value",
                  "example": "phone"
                }
              }
            },
            "example": [
              {
                "key": "channel",
                "value": "phone"
              }
            ]
          },
          "appliedDiscount": {
            "type": "object",
            "title": "Applied Discount",
            "required": [
              "description",
              "value",
              "valueType",
              "amountSet"
            ],
            "properties": {
              "title": {
                "type": "string",
                "title": "Applied Discount.Title",
                "example": "Loyalty"
              },
              "description": {
                "type": "string",
                "title": "Applied Discount.Description",
                "example": "Returning customer"
              },
              "value": {
                "type": "integer",
                "title": "Applied Discount.Value",
                "example": 10
              },
              "valueType": {
                "type": "string",
                "title": "Applied Discount.Value Type",
                "example": "PERCENTAGE"
              },
              "amountSet": {
                "type": "object",
                "title": "Applied Discount.Amount",
                "required": [
                  "shopMoney"
                ],
                "properties": {
                  "shopMoney": {
                    "type": "object",
                    "title": "Applied Discount.Amount.Shop Money",
                    "required": [
                      "amount",
                      "currencyCode"
                    ],
                    "properties": {
                      "amount": {
                        "type": "string",
                        "title": "Applied Discount.Amount.Shop Money.Amount",
                        "example": "1.0"
                      },
                      "currencyCode": {
                        "type": "string",
                        "title": "Applied Discount.Amount.Shop Money.Currency Code",
                        "example": "USD"
                      }
                    }
                  }
                }
              }
            }
          },
          "shippingLine": {
            "type": "object",
            "title": "Shipping Line",
            "required": [
              "title",
              "custom",
              "originalPriceSet"
            ],
            "properties": {
              "title": {
                "type": "string",
                "title": "Shipping Line.Title",
                "example": "Standard Shipping"
              },
              "code": {
                "type": "string",
                "title": "Shipping Line.Code",
                "example": "standard"
              },
              "custom": {
                "type": "boolean",
                "title": "Shipping Line.Custom",
                "example": true
              },
              "originalPriceSet": {
                "type": "object",
                "title": "Shipping Line.Original Price",
                "required": [
                  "shopMoney"
                ],
                "properties": {
                  "shopMoney": {
                    "type": "object",
                    "title": "Shipping Line.Original Price.Shop Money",
                    "required": [
                      "amount",
                      "currencyCode"
                    ],
                    "properties": {
                      "amount": {
                        "type": "string",
                        "title": "Shipping Line.Original Price.Shop Money.Amount",
                        "example": "5.0"
                      },
                      "currencyCode": {
                        "type": "string",
                        "title": "Shipping Line.Original Price.Shop Money.Currency Code",
                        "example": "USD"
                      }
                    }
                  }
                }
              }
            }
          },
          "taxLines": {
            "type": "array",
            "title": "Tax Lines",
            "items": {
              "type": "object",
              "required": [
                "title",
                "priceSet"
              ],
              "properties": {
                "title": {
                  "type": "string",
                  "title": "Title",
                  "example": "HST"
                },
                "rate": {
                  "type": "number",
                  "title": "Rate",
                  "example": 0.13
                },
                "priceSet": {
                  "type": "object",
                  "title": "Price",
                  "required": [
                    "shopMoney"
                  ],
                  "properties": {
                    "shopMoney": {
                      "type": "object",
                      "title": "Price.Shop Money",
                      "required": [
                        "amount",
                        "currencyCode"
                      ],
                      "properties": {
                        "amount": {
                          "type": "string",
                          "title": "Price.Shop Money.Amount",
                          "example": "1.3"
                        },
                        "currencyCode": {
                          "type": "string",
                          "title": "Price.Shop Money.Currency Code",
                          "example": "USD"
                        }
                      }
                    }
                  }
                }
              }
            },
            "example": [
              {
                "title": "HST",
                "rate": 0.13,
                "priceSet": {
                  "shopMoney": {
                    "amount": "1.3",
                    "currencyCode": "USD"
                  }
                }
              }
            ]
          },
          "subtotalPriceSet": {
            "type": "object",
            "title": "Subtotal Price",
            "required": [
              "shopMoney"
            ],
            "properties": {
              "shopMoney": {
                "type": "object",
                "title": "Subtotal Price.Shop Money",
                "required": [
                  "amount",
                  "currencyCode"
                ],
                "properties": {
                  "amount": {
                    "type": "string",
                    "title": "Subtotal Price.Shop Money.Amount",
                    "example": "9.99"
                  },
                  "currencyCode": {
                    "type": "string",
                    "title": "Subtotal Price.Shop Money.Currency Code",
                    "example": "USD"
                  }
                }
              }
            }
          },
          "totalDiscountsSet": {
            "type": "object",
            "title": "Total Discounts",
            "required": [
              "shopMoney"
            ],
            "properties": {
              "shopMoney": {
                "type": "object",
                "title": "Total Discounts.Shop Money",
                "required": [
                  "amount",
                  "currencyCode"
                ],
                "properties": {
                  "amount": {
                    "type": "string",
                    "title": "Total Discounts.Shop Money.Amount",
                    "example": "0.0"
                  },
                  "currencyCode": {
                    "type": "string",
                    "title": "Total Discounts.Shop Money.Currency Code",
                    "example": "USD"
                  }
                }
              }
            }
          },
          "totalShippingPriceSet": {
            "type": "object",
            "title": "Total Shipping Price",
            "required": [
              "shopMoney"
            ],
            "properties": {
              "shopMoney": {
                "type": "object",
                "title": "Total Shipping Price.Shop Money",
                "required": [
                  "amount",
                  "currencyCode"
                ],
                "properties": {
                  "amount": {
                    "type": "string",
                    "title": "Total Shipping Price.Shop Money.Amount",
                    "example": "5.0"
                  },
                  "currencyCode": {
                    "type": "string",
                    "title": "Total Shipping Price.Shop Money.Currency Code",
                    "example": "USD"
                  }
                }
              }
            }
          },
          "totalTaxSet": {
            "type": "object",
            "title": "Total Tax",
            "required": [
              "shopMoney"
            ],
            "properties": {
              "shopMoney": {
                "type": "object",
                "title": "Total Tax.Shop Money",
                "required": [
                  "amount",
                  "currencyCode"
                ],
                "properties": {
                  "amount": {
                    "type": "string",
                    "title": "Total Tax.Shop Money.Amount",
                    "example": "1.3"
                  },
                  "currencyCode": {
                    "type": "string",
                    "title": "Total Tax.Shop Money.Currency Code",
                    "example": "USD"
                  }
                }
              }
            }
          },
          "totalPriceSet": {
            "type": "object",
            "title": "Total Price",
            "required": [
              "shopMoney"
            ],
            "properties": {
              "shopMoney": {
                "type": "object",
                "title": "Total Price.Shop Money",
                "required": [
                  "amount",
                  "currencyCode"
                ],
                "properties": {
                  "amount": {
                    "type": "string",
                    "title": "Total Price.Shop Money.Amount",
                    "example": "16.29"
                  },
                  "currencyCode": {
                    "type": "string",
                    "title": "Total Price.Shop Money.Currency Code",
                    "example": "USD"
                  }
                }
              }
            }
          },
          "shippingAddress": {
            "type": "object",
            "title": "Shipping Address",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "title": "Shipping Address.ID",
                "example": "gid://shopify/MailingAddress/38344136425553?model_name=CustomerAddress"
              },
              "firstName": {
                "type": "string",
                "title": "Shipping Address.First Name",
                "example": "Jane"
              },
              "lastName": {
                "type": "string",
                "title": "Shipping Address.Last Name",
                "example": "Doe"
              },
              "company": {
                "type": "string",
                "title": "Shipping Address.Company",
                "example": "Acme Inc."
              },
              "address1": {
                "type": "string",
                "title": "Shipping Address.Address Line 1",
                "example": "150 Elgin Street"
              },
              "address2": {
                "type": "string",
                "title": "Shipping Address.Address Line 2",
                "example": "Suite 800"
              },
              "city": {
                "type": "string",
                "title": "Shipping Address.City",
                "example": "Ottawa"
              },
              "province": {
                "type": "string",
                "title": "Shipping Address.Province",
                "example": "Ontario"
              },
              "provinceCode": {
                "type": "string",
                "title": "Shipping Address.Province Code",
                "example": "ON"
              },
              "country": {
                "type": "string",
                "title": "Shipping Address.Country",
                "example": "Canada"
              },
              "countryCodeV2": {
                "type": "string",
                "title": "Shipping Address.Country Code",
                "example": "CA"
              },
              "zip": {
                "type": "string",
                "title": "Shipping Address.ZIP",
                "example": "K2P 1L4"
              },
              "phone": {
                "type": "string",
                "title": "Shipping Address.Phone",
                "example": "+16135550135"
              }
            }
          },
          "billingAddress": {
            "type": "object",
            "title": "Billing Address",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "title": "Billing Address.ID",
                "example": "gid://shopify/MailingAddress/38344136425553?model_name=CustomerAddress"
              },
              "firstName": {
                "type": "string",
                "title": "Billing Address.First Name",
                "example": "Jane"
              },
              "lastName": {
                "type": "string",
                "title": "Billing Address.Last Name",
                "example": "Doe"
              },
              "company": {
                "type": "string",
                "title": "Billing Address.Company",
                "example": "Acme Inc."
              },
              "address1": {
                "type": "string",
                "title": "Billing Address.Address Line 1",
                "example": "150 Elgin Street"
              },
              "address2": {
                "type": "string",
                "title": "Billing Address.Address Line 2",
                "example": "Suite 800"
              },
              "city": {
                "type": "string",
                "title": "Billing Address.City",
                "example": "Ottawa"
              },
              "province": {
                "type": "string",
                "title": "Billing Address.Province",
                "example": "Ontario"
              },
              "provinceCode": {
                "type": "string",
                "title": "Billing Address.Province Code",
                "example": "ON"
              },
              "country": {
                "type": "string",
                "title": "Billing Address.Country",
                "example": "Canada"
              },
              "countryCodeV2": {
                "type": "string",
                "title": "Billing Address.Country Code",
                "example": "CA"
              },
              "zip": {
                "type": "string",
                "title": "Billing Address.ZIP",
                "example": "K2P 1L4"
              },
              "phone": {
                "type": "string",
                "title": "Billing Address.Phone",
                "example": "+16135550135"
              }
            }
          },
          "lineItems": {
            "type": "array",
            "title": "Line Items",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name",
                "title",
                "quantity",
                "custom",
                "requiresShipping",
                "taxable",
                "isGiftCard",
                "originalUnitPriceSet",
                "originalTotalSet",
                "discountedTotalSet"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "title": "ID",
                  "example": "gid://shopify/DraftOrderLineItem/59738255294545"
                },
                "name": {
                  "type": "string",
                  "title": "Name",
                  "example": "Gift Card - $10"
                },
                "title": {
                  "type": "string",
                  "title": "Title",
                  "example": "Gift Card"
                },
                "variantTitle": {
                  "type": "string",
                  "title": "Variant Title",
                  "example": "$10"
                },
                "sku": {
                  "type": "string",
                  "title": "SKU",
                  "example": "GC-10"
                },
                "vendor": {
                  "type": "string",
                  "title": "Vendor",
                  "example": "Snowboard Vendor"
                },
                "quantity": {
                  "type": "integer",
                  "title": "Quantity",
                  "example": 1
                },
                "custom": {
                  "type": "boolean",
                  "title": "Custom",
                  "example": false
                },
                "requiresShipping": {
                  "type": "boolean",
                  "title": "Requires Shipping",
                  "example": false
                },
                "taxable": {
                  "type": "boolean",
                  "title": "Taxable",
                  "example": true
                },
                "isGiftCard": {
                  "type": "boolean",
                  "title": "Gift Card",
                  "example": false
                },
                "originalUnitPriceSet": {
                  "type": "object",
                  "title": "Original Unit Price",
                  "required": [
                    "shopMoney"
                  ],
                  "properties": {
                    "shopMoney": {
                      "type": "object",
                      "title": "Original Unit Price.Shop Money",
                      "required": [
                        "amount",
                        "currencyCode"
                      ],
                      "properties": {
                        "amount": {
                          "type": "string",
                          "title": "Original Unit Price.Shop Money.Amount",
                          "example": "9.99"
                        },
                        "currencyCode": {
                          "type": "string",
                          "title": "Original Unit Price.Shop Money.Currency Code",
                          "example": "USD"
                        }
                      }
                    }
                  }
                },
                "originalTotalSet": {
                  "type": "object",
                  "title": "Original Total",
                  "required": [
                    "shopMoney"
                  ],
                  "properties": {
                    "shopMoney": {
                      "type": "object",
                      "title": "Original Total.Shop Money",
                      "required": [
                        "amount",
                        "currencyCode"
                      ],
                      "properties": {
                        "amount": {
                          "type": "string",
                          "title": "Original Total.Shop Money.Amount",
                          "example": "9.99"
                        },
                        "currencyCode": {
                          "type": "string",
                          "title": "Original Total.Shop Money.Currency Code",
                          "example": "USD"
                        }
                      }
                    }
                  }
                },
                "discountedTotalSet": {
                  "type": "object",
                  "title": "Discounted Total",
                  "required": [
                    "shopMoney"
                  ],
                  "properties": {
                    "shopMoney": {
                      "type": "object",
                      "title": "Discounted Total.Shop Money",
                      "required": [
                        "amount",
                        "currencyCode"
                      ],
                      "properties": {
                        "amount": {
                          "type": "string",
                          "title": "Discounted Total.Shop Money.Amount",
                          "example": "9.99"
                        },
                        "currencyCode": {
                          "type": "string",
                          "title": "Discounted Total.Shop Money.Currency Code",
                          "example": "USD"
                        }
                      }
                    }
                  }
                },
                "appliedDiscount": {
                  "type": "object",
                  "title": "Applied Discount",
                  "required": [
                    "description",
                    "value",
                    "valueType",
                    "amountSet"
                  ],
                  "properties": {
                    "title": {
                      "type": "string",
                      "title": "Applied Discount.Title",
                      "example": "Loyalty"
                    },
                    "description": {
                      "type": "string",
                      "title": "Applied Discount.Description",
                      "example": "Returning customer"
                    },
                    "value": {
                      "type": "integer",
                      "title": "Applied Discount.Value",
                      "example": 10
                    },
                    "valueType": {
                      "type": "string",
                      "title": "Applied Discount.Value Type",
                      "example": "PERCENTAGE"
                    },
                    "amountSet": {
                      "type": "object",
                      "title": "Applied Discount.Amount",
                      "required": [
                        "shopMoney"
                      ],
                      "properties": {
                        "shopMoney": {
                          "type": "object",
                          "title": "Applied Discount.Amount.Shop Money",
                          "required": [
                            "amount",
                            "currencyCode"
                          ],
                          "properties": {
                            "amount": {
                              "type": "string",
                              "title": "Applied Discount.Amount.Shop Money.Amount",
                              "example": "1.0"
                            },
                            "currencyCode": {
                              "type": "string",
                              "title": "Applied Discount.Amount.Shop Money.Currency Code",
                              "example": "USD"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "product": {
                  "type": "object",
                  "title": "Product",
                  "required": [
                    "id",
                    "title"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "title": "Product.ID",
                      "example": "gid://shopify/Product/16344831754321"
                    },
                    "title": {
                      "type": "string",
                      "title": "Product.Title",
                      "example": "Gift Card"
                    }
                  }
                },
                "variant": {
                  "type": "object",
                  "title": "Variant",
                  "required": [
                    "id",
                    "title"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "title": "Variant.ID",
                      "example": "gid://shopify/ProductVariant/62788974084177"
                    },
                    "title": {
                      "type": "string",
                      "title": "Variant.Title",
                      "example": "$10"
                    }
                  }
                }
              }
            },
            "example": [
              {
                "id": "gid://shopify/DraftOrderLineItem/59738255294545",
                "name": "Gift Card - $10",
                "title": "Gift Card",
                "variantTitle": "$10",
                "sku": "GC-10",
                "vendor": "Snowboard Vendor",
                "quantity": 1,
                "custom": false,
                "requiresShipping": false,
                "taxable": true,
                "isGiftCard": false,
                "originalUnitPriceSet": {
                  "shopMoney": {
                    "amount": "9.99",
                    "currencyCode": "USD"
                  }
                },
                "originalTotalSet": {
                  "shopMoney": {
                    "amount": "9.99",
                    "currencyCode": "USD"
                  }
                },
                "discountedTotalSet": {
                  "shopMoney": {
                    "amount": "9.99",
                    "currencyCode": "USD"
                  }
                },
                "appliedDiscount": {
                  "title": "Loyalty",
                  "description": "Returning customer",
                  "value": 10,
                  "valueType": "PERCENTAGE",
                  "amountSet": {
                    "shopMoney": {
                      "amount": "1.0",
                      "currencyCode": "USD"
                    }
                  }
                },
                "product": {
                  "id": "gid://shopify/Product/16344831754321",
                  "title": "Gift Card"
                },
                "variant": {
                  "id": "gid://shopify/ProductVariant/62788974084177",
                  "title": "$10"
                }
              }
            ]
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
