---
title: "DiscountAutomaticBasicInput"
description: "The input fields for creating and updating an 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-basic-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-automatic-basic-input.md'
---
# DiscountAutomaticBasicInput

The input fields for creating and updating an automatic discount.

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

## Input Fields

* `combinesWith`

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

  The discount types that can be combined with the discount. If the field is `null`, an empty object (`{}`), or omitted, the discount cannot be combined with any other discounts.

* `customerGets`

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

  Information about eligible products and their discounts.

* `endsAt`

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

  The date and time when the discount ends. Format: [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). If this field is `null` or omitted, the discount has no expiration date.

* `minimumRequirement`

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

  The threshold condition of the discount. It can be a minimum product quantity or a minimum order subtotal.

* `startsAt`

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

  The date and time when the discount starts. Format: [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html).

* `title`

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

  The title of the discount.

* `customerSelection`

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

  The scope of customers eligible for the discount. If this field is `null` or omitted during discount creation, the discount will apply to all customers. If this field is `null` or omitted during discount update, the original value remains unchanged.

* `usageLimit`

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

  The maximum number of times the discount can be used. If this field is `null` or omitted, there is no total usage limit.    
  Value range: 1–99,999,999

* `appliesTimesPerCustomer`

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

  The maximum number of times a single customer can use the discount. If this field is `null` or omitted, there is no limit on usage per customer.    
  Value range: 1–99,999,999
  

## Argument from

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

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

