> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/orders/llms.txt)
> Source: https://docs.saleor.io/api-reference/orders/inputs/draft-order-create-input

# DraftOrderCreateInput Input Type

No description

```graphql
input DraftOrderCreateInput {
  billingAddress: AddressInput
  saveBillingAddress: Boolean
  user: ID
  userEmail: String
  discount: PositiveDecimal @deprecated
  shippingAddress: AddressInput
  saveShippingAddress: Boolean
  shippingMethod: ID
  voucher: ID @deprecated
  voucherCode: String
  customerNote: String
  channelId: ID
  redirectUrl: String
  externalReference: String
  metadata: [MetadataInput!]
  privateMetadata: [MetadataInput!]
  languageCode: LanguageCodeEnum
  lines: [OrderLineCreateInput!]
}
```

<a id="fields"></a>

### Fields

<a id="billing-address"></a>

#### [`billingAddress`](#billing-address) ● [`AddressInput`](/api-reference/miscellaneous/inputs/address-input.md)

Billing address of the customer.

<a id="save-billing-address"></a>

#### [`saveBillingAddress`](#save-billing-address) ● [`Boolean`](/api-reference/miscellaneous/scalars/boolean.md)

Indicates whether the billing address should be saved to the user’s address book upon draft order completion. Can only be set when a billing address is provided. If not specified along with the address, the default behavior is to not save the address.

Added in Saleor 3.21

<a id="user"></a>

#### [`user`](#user) ● [`ID`](/api-reference/miscellaneous/scalars/id.md)

Customer associated with the draft order.

<a id="user-email"></a>

#### [`userEmail`](#user-email) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Email address of the customer.

<a id="shipping-address"></a>

#### [`shippingAddress`](#shipping-address) ● [`AddressInput`](/api-reference/miscellaneous/inputs/address-input.md)

Shipping address of the customer.

<a id="save-shipping-address"></a>

#### [`saveShippingAddress`](#save-shipping-address) ● [`Boolean`](/api-reference/miscellaneous/scalars/boolean.md)

Indicates whether the shipping address should be saved to the user’s address book upon draft order completion.Can only be set when a shipping address is provided. If not specified along with the address, the default behavior is to not save the address.

Added in Saleor 3.21

<a id="shipping-method"></a>

#### [`shippingMethod`](#shipping-method) ● [`ID`](/api-reference/miscellaneous/scalars/id.md)

ID of a selected shipping method.

<a id="voucher-code"></a>

#### [`voucherCode`](#voucher-code) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

A code of the voucher associated with the order.

Added in Saleor 3.18

<a id="customer-note"></a>

#### [`customerNote`](#customer-note) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

A note from a customer. Visible by customers in the order summary.

<a id="channel-id"></a>

#### [`channelId`](#channel-id) ● [`ID`](/api-reference/miscellaneous/scalars/id.md)

ID of the channel associated with the order.

<a id="redirect-url"></a>

#### [`redirectUrl`](#redirect-url) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

URL of a view where users should be redirected to see the order details. URL in RFC 1808 format.

<a id="external-reference"></a>

#### [`externalReference`](#external-reference) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

External ID of this order.

<a id="metadata"></a>

#### [`metadata`](#metadata) ● [`[MetadataInput!]`](/api-reference/miscellaneous/inputs/metadata-input.md)

Order public metadata.

Added in Saleor 3.21. Can be read by any API client authorized to read the object it's attached to.

Warning: never store sensitive information, including financial data such as credit card details.

<a id="private-metadata"></a>

#### [`privateMetadata`](#private-metadata) ● [`[MetadataInput!]`](/api-reference/miscellaneous/inputs/metadata-input.md)

Order private metadata.

Added in Saleor 3.21. Requires permissions to modify and to read the metadata of the object it's attached to.

Warning: never store sensitive information, including financial data such as credit card details.

<a id="language-code"></a>

#### [`languageCode`](#language-code) ● [`LanguageCodeEnum`](/api-reference/miscellaneous/enums/language-code-enum.md)

Order language code.

Added in Saleor 3.21

<a id="lines"></a>

#### [`lines`](#lines) ● [`[OrderLineCreateInput!]`](/api-reference/orders/inputs/order-line-create-input.md)

Variant line input consisting of variant ID and quantity of products.

Show deprecatedHide deprecated

<a id="discount"></a>

#### [`discount`](#discount) ● [`PositiveDecimal`](/api-reference/miscellaneous/scalars/positive-decimal.md)

DEPRECATED

Providing a value for the field has no effect. Use `orderDiscountAdd` mutation instead.

Discount amount for the order.

<a id="voucher"></a>

#### [`voucher`](#voucher) ● [`ID`](/api-reference/miscellaneous/scalars/id.md)

DEPRECATED

Use `voucherCode` instead.

ID of the voucher associated with the order.

<a id="member-of"></a>

### Member Of

[`draftOrderCreate`](/api-reference/orders/mutations/draft-order-create.md) mutation
