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

# DiscountOfferInput

> What an offer says. An update sends all of it again, and it becomes the offer's next version.

**audience** `[DiscountOfferAudienceInput!](/docs/api-reference/v3/reference/commerce-agent/discount-offer-audience-input)` *required*

Who the offer is for.

**fields**

**conditions** `[JSON](/docs/api-reference/v3/reference/common/json)`

Inline segment rules matching segmentConditionCatalog.conditionsJsonSchema. Automation-start timeframes are not allowed.

**everyone** `Boolean`

Pass true for every shopper.

**segmentIds** `[ID!]`

Members of any of these segments, by `id` or `legacyId`, at least one.

**cartConditions** `[DiscountOfferCartConditionsInput](/docs/api-reference/v3/reference/commerce-agent/discount-offer-cart-conditions-input)`

Which carts the offer is for. Leave out for any cart.

**fields**

**blocks** `[\[DiscountOfferCartConditionBlockInput!\]!](/docs/api-reference/v3/reference/commerce-agent/discount-offer-cart-condition-block-input)` *required*

Groups of conditions, at least one.

**fields**

**conditions** `[\[DiscountOfferCartConditionInput!\]!](/docs/api-reference/v3/reference/commerce-agent/discount-offer-cart-condition-input)` *required*

The conditions, at least one.

**conjunction** `[Conjunction!](/docs/api-reference/v3/reference/common/conjunction)` *required*

How the conditions combine.

**conjunction** `[Conjunction!](/docs/api-reference/v3/reference/common/conjunction)` *required*

How the blocks combine.

**discounts** `[\[DiscountOfferDiscountInput!\]!](/docs/api-reference/v3/reference/commerce-agent/discount-offer-discount-input)` *required*

The discounts, at least one and each different. Shoppers are split across them by weight.

**fields**

**discountCodeId** `ID!` *required*

The discount code's `id` or `legacyId`.

**weight** `Int`

This discount's share relative to the others. Defaults to 100.

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

When the offer ends (exclusive). Leave out for no end.

**name** `String!` *required*

The merchant's name for the offer.

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

When the offer starts. Leave out to start now.


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