---
title: "DiscountAutomaticPfntInput"
description: "The input data used to create the price for multiple items automatic discount."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-automatic-pfnt-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-automatic-pfnt-input.md'
---
# DiscountAutomaticPfntInput

The input data used to create the price for multiple items automatic discount.

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

## Type Signature

`DiscountAutomaticPfntInput`

## Input Fields

* `customerGets`

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

  Information about the qualifying items and their discount.

* `startsAt`

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

  The date and time when the discount starts.

* `title`

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

  The title of the discount.

* `endsAt`

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

  The date and time when the discount ends. For open-ended discounts, use null.

* `minimumRequirement`

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

  The input fields for the minimum quantity or subtotal required for a discount.

* `combinesWith`

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

  Determines which discount classes the discount can combine with.

## Schema Definition

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

## Argument from

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

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

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

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

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

