> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CheckoutDiscountRuleUpdateInput

> Changes to a rule. Each field you send replaces that whole field; fields you leave out are kept.

**conditions** `[CheckoutDiscountRuleConditionsInput](/docs/api-reference/v3/reference/checkout/checkout-discount-rule-conditions-input)`

When the rule applies.

**fields**

**blocks** `[\[CheckoutDiscountRuleConditionBlockInput!\]!](/docs/api-reference/v3/reference/checkout/checkout-discount-rule-condition-block-input)` *required*

Groups of conditions, at most 6 that are not empty.

**fields**

**conditions** `[\[CheckoutDiscountRuleConditionInput!\]!](/docs/api-reference/v3/reference/checkout/checkout-discount-rule-condition-input)` *required*

The conditions. A block with none is dropped.

**conjunction** `[CheckoutDiscountRuleConjunction!](/docs/api-reference/v3/reference/checkout/checkout-discount-rule-conjunction)` *required*

How the conditions in this block combine.

**conjunction** `[CheckoutDiscountRuleConjunction!](/docs/api-reference/v3/reference/checkout/checkout-discount-rule-conjunction)` *required*

How the blocks combine.

**discount** `[CheckoutDiscountRuleDiscountInput](/docs/api-reference/v3/reference/checkout/checkout-discount-rule-discount-input)`

What the rule takes off.

**fields**

**fixedAmount** `[CheckoutDiscountRuleFixedAmountDiscountInput](/docs/api-reference/v3/reference/checkout/checkout-discount-rule-fixed-amount-discount-input)`

A fixed amount off.

**fields**

**amount** `[MoneyInput!](/docs/api-reference/v3/reference/common/money-input)` *required*

Amount off, in the shop's currency.

**percentage** `[CheckoutDiscountRulePercentageDiscountInput](/docs/api-reference/v3/reference/checkout/checkout-discount-rule-percentage-discount-input)`

A percentage off.

**fields**

**percentage** `Int!` *required*

Percent off, a whole number from 1 to 100.

**id** `ID!` *required*

The rule's id.

**message** `String`

Shopper-facing text, 1 to 250 characters.

**target** `[CheckoutDiscountRuleTargetInput](/docs/api-reference/v3/reference/checkout/checkout-discount-rule-target-input)`

What the rule discounts.

**fields**

**shipping** `[CheckoutDiscountRuleShippingTargetInput](/docs/api-reference/v3/reference/checkout/checkout-discount-rule-shipping-target-input)`

Discount shipping.

**fields**

**deliveryOptions** `[CheckoutDiscountRuleDeliveryOptions!](/docs/api-reference/v3/reference/checkout/checkout-discount-rule-delivery-options)` *required*

Every delivery option, or only those a filter matches.

**filters** `[\[CheckoutDiscountRuleDeliveryOptionFilterInput!\]](/docs/api-reference/v3/reference/checkout/checkout-discount-rule-delivery-option-filter-input)`

Required for SPECIFIC, at most 25; an option that matches any filter is discounted. Ignored for ALL.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.