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

# CheckoutDiscountRuleConditionInput

> Pass exactly one of cartTotal, customerOrderCount, products, or collections.

**cartTotal** `[CheckoutDiscountRuleCartTotalConditionInput](/docs/api-reference/v3/reference/checkout/checkout-discount-rule-cart-total-condition-input)`

A cart total condition.

**fields**

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

The amount, in the shop's currency.

**fields**

**amount** `[Decimal!](/docs/api-reference/v3/reference/common/decimal)` *required*

The amount as an exact decimal string (e.g. "19.99").

**currency** `String!` *required*

ISO 4217 currency code (e.g. USD).

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

How the cart total is compared with `amount`.

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

A collections condition.

**fields**

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

How many cart products must be in at least one listed collection.

**shopifyCollectionIds** `[String!]!` *required*

Shopify collection GIDs or numeric ids, at least one. Numeric ids are saved as GIDs.

**customerOrderCount** `[CheckoutDiscountRuleCustomerOrderCountConditionInput](/docs/api-reference/v3/reference/checkout/checkout-discount-rule-customer-order-count-condition-input)`

A customer order count condition.

**fields**

**count** `Int!` *required*

The number of orders, zero or more.

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

How the order count is compared with `count`.

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

A products condition.

**fields**

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

How many cart products must be one of the listed products.

**shopifyProductIds** `[String!]!` *required*

Shopify product GIDs or numeric ids, at least one. Numeric ids are saved as GIDs.


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