> ## 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.

# CheckoutDiscountRule

> A store-level checkout discount rule: when its conditions match the cart, its discount applies to the targeted delivery options. The first matching active rule wins.

**Required scopes:** [`checkout_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-checkout_read), [`checkout_write`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-checkout_write)

**active** `Boolean!` *required*

Whether the rule is evaluated at checkout while discount rules are on.

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

When the rule applies.

**fields**

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

Groups of conditions, at most 6.

**fields**

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

The conditions in this block.

**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.

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the rule was created.

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

What the rule takes off.

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

The rule's id.

**message** `String!` *required*

Shopper-facing text shown with the discounted price.

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

What the rule discounts.

**updatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the rule was last changed.


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