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

# PostPurchaseSegmentConditionInput

> Pass exactly one of orderValue, productsOrdered, productCollections, productMetafields, productTags, customerTags or previousOrderCount.

**customerTags** `[PostPurchaseCustomerTagsConditionInput](/docs/api-reference/v3/reference/checkout/post-purchase-customer-tags-condition-input)`

A customer tags condition.

**fields**

**operator** `[PostPurchaseSegmentListOperator!](/docs/api-reference/v3/reference/checkout/post-purchase-segment-list-operator)` *required*

How the customer's tags compare with the list.

**tags** `[String!]!` *required*

The tags.

**orderValue** `[PostPurchaseOrderValueConditionInput](/docs/api-reference/v3/reference/checkout/post-purchase-order-value-condition-input)`

An order value condition.

**fields**

**amount** `String!` *required*

A decimal string.

**comparison** `[PostPurchaseSegmentNumberOperator!](/docs/api-reference/v3/reference/checkout/post-purchase-segment-number-operator)` *required*

How the order's value compares with it.

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

ISO 4217 currency code.

**previousOrderCount** `[PostPurchasePreviousOrderCountConditionInput](/docs/api-reference/v3/reference/checkout/post-purchase-previous-order-count-condition-input)`

A previous order count condition.

**fields**

**comparison** `[PostPurchaseSegmentNumberOperator!](/docs/api-reference/v3/reference/checkout/post-purchase-segment-number-operator)` *required*

How the customer's count compares with it.

**orders** `Int!` *required*

The count.

**productCollections** `[PostPurchaseProductCollectionsConditionInput](/docs/api-reference/v3/reference/checkout/post-purchase-product-collections-condition-input)`

A product collections condition.

**fields**

**cartOperator** `[PostPurchaseSegmentListOperator!](/docs/api-reference/v3/reference/checkout/post-purchase-segment-list-operator)` *required*

How many order items must match.

**collectionIds** `[String!]!` *required*

The collections.

**collectionListOperator** `[PostPurchaseSegmentListOperator!](/docs/api-reference/v3/reference/checkout/post-purchase-segment-list-operator)` *required*

How each item's collections compare with the list.

**productMetafields** `[PostPurchaseProductMetafieldsConditionInput](/docs/api-reference/v3/reference/checkout/post-purchase-product-metafields-condition-input)`

A product metafields condition.

**fields**

**cartOperator** `[PostPurchaseSegmentListOperator!](/docs/api-reference/v3/reference/checkout/post-purchase-segment-list-operator)` *required*

How many order items must match.

**metafields** `[\[PostPurchaseMetafieldInput!\]!](/docs/api-reference/v3/reference/checkout/post-purchase-metafield-input)` *required*

The values.

**fields**

**key** `String!` *required*

Its key.

**namespace** `String!` *required*

Its namespace.

**resourceType** `[PostPurchaseMetafieldResource!](/docs/api-reference/v3/reference/checkout/post-purchase-metafield-resource)` *required*

What it's on.

**value** `String!` *required*

The value.

**valueMatchKind** `[PostPurchaseMetafieldMatch](/docs/api-reference/v3/reference/checkout/post-purchase-metafield-match)`

How the value is matched; EXACT by default.

**operator** `[PostPurchaseSegmentListOperator!](/docs/api-reference/v3/reference/checkout/post-purchase-segment-list-operator)` *required*

How each item's metafields compare with the list.

**productTags** `[PostPurchaseProductTagsConditionInput](/docs/api-reference/v3/reference/checkout/post-purchase-product-tags-condition-input)`

A product tags condition.

**fields**

**cartOperator** `[PostPurchaseSegmentListOperator!](/docs/api-reference/v3/reference/checkout/post-purchase-segment-list-operator)` *required*

How many order items must match.

**tagListOperator** `[PostPurchaseSegmentListOperator!](/docs/api-reference/v3/reference/checkout/post-purchase-segment-list-operator)` *required*

How each item's tags compare with the list.

**tags** `[String!]!` *required*

The tags.

**productsOrdered** `[PostPurchaseProductsOrderedConditionInput](/docs/api-reference/v3/reference/checkout/post-purchase-products-ordered-condition-input)`

A products ordered condition.

**fields**

**cartOperator** `[PostPurchaseSegmentListOperator!](/docs/api-reference/v3/reference/checkout/post-purchase-segment-list-operator)` *required*

How many order items must match.

**productIds** `[String!]!` *required*

The products.

**productListOperator** `[PostPurchaseSegmentItemOperator!](/docs/api-reference/v3/reference/checkout/post-purchase-segment-item-operator)` *required*

How each order item compares with the list.

**variantFilters** `[\[PostPurchaseVariantFilterInput!\]](/docs/api-reference/v3/reference/checkout/post-purchase-variant-filter-input)`

Limits to certain variants of those products.

**fields**

**productId** `String!` *required*

The product.

**variantIds** `[String!]!` *required*

Its variants.


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