---
title: "DiscountAutomaticBasicInput"
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-basic-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-automatic-basic-input.md'
---
# DiscountAutomaticBasicInput

用于创建或更新基础自动折扣的输入字段。


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

## Input Fields

* `combinesWith`

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

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

* `customerGets`

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

  适用折扣的商品及其折扣的信息。

* `endsAt`

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

  折扣结束的日期和时间。格式：[ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) 。若为 `null` 或不传，则表示该折扣无到期时间。

* `minimumRequirement`

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

  折扣适用的门槛条件，可以是最小商品数量或最低订单小计金额。

* `startsAt`

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

  折扣开始的日期和时间。格式：[ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) 。

* `title`

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

  折扣的标题。

* `customerSelection`

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

  可参与此折扣的客户范围配置信息。在创建操作中，若为 `null` 或不传，则设置为所有客户。在更新操作中，若为 `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-basic-update.md).discountAutomaticBasicUpdate

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

