---
title: "DiscountAutomaticFreeShippingInput"
description: "用于创建和更新免运费自动折扣的输入字段。"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-automatic-free-shipping-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-automatic-free-shipping-input.md'
---
# DiscountAutomaticFreeShippingInput

用于创建和更新免运费自动折扣的输入字段。

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Input

## Input Fields

* `destination`

  [DiscountShippingDestinationSelectionInput](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-shipping-destination-selection-input.md)

  适用该折扣的目的地列表。在更新操作中，若为 `null` 或不传，则保持原值不变。

* `startsAt`

  [Date](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/date.md)

  折扣开始的日期和时间。

* `title`

  [String](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/string.md)

  折扣的标题。

* `minimumRequirement`

  [DiscountMinimumRequirementInput](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-minimum-requirement-input.md)

  折扣所需的最少商品数量或最小订单小计。若为 `null` 或不传，则表示无门槛。

* `endsAt`

  [Date](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/date.md)

  折扣结束的日期和时间。若为 `null` 或不传，则表示该折扣无到期时间。

* `maximumShippingPrice`

  [Decimal](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/decimal.md)

  可应用该折扣的最高运费金额。若为 `null` 或不传，则不限制运费金额。

* `combinesWith`

  [DiscountCombinesWithInput](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-combines-with-input.md)

  该折扣可叠加使用的折扣类型。若为 `null`、空对象（`{}`）或不传，则该折扣不与其他折扣叠加。

* `customerSelection`

  [DiscountCustomerSelectionInput](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-customer-selection-input.md)

  指定可参与此折扣的客户范围。在更新操作中，若为 `null` 或不传，则保持原值不变。

* `usageLimit`

  [Int](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/int.md)

  折扣可使用的最大次数。若为 `null` 或不传，则表示不限制总共使用次数。           
  取值范围：1-99,999,999

* `appliesTimesPerCustomer`

  [Int](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/int.md)

  每个客户可使用该折扣的最大次数。若为 `null` 或不传，则表示不限制使用次数。    
  取值范围：1-99,999,999

## Argument from

* [Mutation](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/mutations/discount-automatic-free-shipping-create.md).discountAutomaticFreeShippingCreate

* [Mutation](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/mutations/discount-automatic-free-shipping-update.md).discountAutomaticFreeShippingUpdate

