> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/miscellaneous/llms.txt)
> Source: https://docs.saleor.io/api-reference/miscellaneous/objects/order-settings

# OrderSettings Object

Represents the channel-specific order settings.

```graphql
type OrderSettings {
  automaticallyConfirmAllNewOrders: Boolean!
  automaticallyFulfillNonShippableGiftCard: Boolean!
  expireOrdersAfter: Minute
  markAsPaidStrategy: MarkAsPaidStrategyEnum!
  deleteExpiredOrdersAfter: Day!
  allowUnpaidOrders: Boolean!
  includeDraftOrderInVoucherUsage: Boolean!
  draftOrderLinePriceFreezePeriod: Hour
  useLegacyLineDiscountPropagation: Boolean!
}
```

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

### Fields

<a id="automatically-confirm-all-new-orders"></a>

#### [`automaticallyConfirmAllNewOrders`](#automatically-confirm-all-new-orders) ● [`Boolean!`](/api-reference/miscellaneous/scalars/boolean.md)

When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately.

<a id="automatically-fulfill-non-shippable-gift-card"></a>

#### [`automaticallyFulfillNonShippableGiftCard`](#automatically-fulfill-non-shippable-gift-card) ● [`Boolean!`](/api-reference/miscellaneous/scalars/boolean.md)

When enabled, all non-shippable gift card orders will be fulfilled automatically.

<a id="expire-orders-after"></a>

#### [`expireOrdersAfter`](#expire-orders-after) ● [`Minute`](/api-reference/miscellaneous/scalars/minute.md)

Expiration time in minutes. Default null - means do not expire any orders.

<a id="mark-as-paid-strategy"></a>

#### [`markAsPaidStrategy`](#mark-as-paid-strategy) ● [`MarkAsPaidStrategyEnum!`](/api-reference/channels/enums/mark-as-paid-strategy-enum.md)

Determine what strategy will be used to mark the order as paid. Based on the chosen option, the proper object will be created and attached to the order when it's manually marked as paid. `PAYMENT_FLOW` - \[default option\] creates the `Payment` object. `TRANSACTION_FLOW` - creates the `TransactionItem` object.

<a id="delete-expired-orders-after"></a>

#### [`deleteExpiredOrdersAfter`](#delete-expired-orders-after) ● [`Day!`](/api-reference/miscellaneous/scalars/day.md)

The time in days after expired orders will be deleted.

<a id="allow-unpaid-orders"></a>

#### [`allowUnpaidOrders`](#allow-unpaid-orders) ● [`Boolean!`](/api-reference/miscellaneous/scalars/boolean.md)

Determine if it is possible to place unpaid order by calling `checkoutComplete` mutation.

<a id="include-draft-order-in-voucher-usage"></a>

#### [`includeDraftOrderInVoucherUsage`](#include-draft-order-in-voucher-usage) ● [`Boolean!`](/api-reference/miscellaneous/scalars/boolean.md)

Determine if voucher applied on draft order should be count toward voucher usage.

Added in Saleor 3.18

This API is currently in **Feature Preview** and can be subject to changes at later point.

<a id="draft-order-line-price-freeze-period"></a>

#### [`draftOrderLinePriceFreezePeriod`](#draft-order-line-price-freeze-period) ● [`Hour`](/api-reference/miscellaneous/scalars/hour.md)

Time in hours after which the draft order line price will be refreshed.

Added in Saleor 3.21

This API is currently in **Feature Preview** and can be subject to changes at later point.

<a id="use-legacy-line-discount-propagation"></a>

#### [`useLegacyLineDiscountPropagation`](#use-legacy-line-discount-propagation) ● [`Boolean!`](/api-reference/miscellaneous/scalars/boolean.md)

This flag only affects orders created from checkout and applies specifically to vouchers of the types: `SPECIFIC_PRODUCT` and `ENTIRE_ORDER` with `applyOncePerOrder` enabled.

-   When legacy propagation is enabled, discounts from these vouchers are represented as `OrderDiscount` objects, attached to the order and returned in the `Order.discounts` field. Additionally, percentage-based vouchers are converted to fixed-value discounts.
-   When legacy propagation is disabled, discounts are represented as `OrderLineDiscount` objects, attached to individual lines and returned in the `OrderLine.discounts` field. In this case, percentage-based vouchers retain their original type. In future releases, `OrderLineDiscount` will become the default behavior, and this flag will be deprecated and removed.

Added in Saleor 3.21

<a id="returned-by"></a>

### Returned By

[`orderSettings`](/api-reference/deprecated/orders/queries/order-settings.md) query

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

### Member Of

[`Channel`](/api-reference/channels/objects/channel.md) object  ● [`OrderSettingsUpdate`](/api-reference/orders/objects/order-settings-update.md) object
