---
title: "DiscountAutomaticPfntInput"
description: "创建或更新M件N元自动折扣的输入字段"
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-pfnt-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-automatic-pfnt-input.md'
---
# DiscountAutomaticPfntInput

创建或更新M件N元自动折扣的输入字段

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

## Type Signature

`DiscountAutomaticPfntInput`

## Input Fields

* `endsAt`

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

  折扣结束的日期和时间。对于无限期折扣，请使用 null

* `minimumRequirement`

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

  折扣所需的最小数量或小计的输入字段

* `combinesWith`

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

  确定折扣可以与哪些折扣级别叠加

* `customerGets`

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

  有关合格商品及其折扣的信息

* `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)

  折扣的标题

## Schema Definition

```graphql
input DiscountAutomaticPfntInput { 
	endsAt: Date
	minimumRequirement: DiscountMinimumRequirementInput
	combinesWith: DiscountCombinesWithInput
	customerGets: DiscountCustomerGetsInput
	startsAt: Date
	title: String 
}
```

## Argument from

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

  创建一个M件N元的自动折扣

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

  更新一个M件N元的自动折扣

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes)。

