---
title: "DiscountCustomerGetsInput"
description: >
  Specifies the items that will be discounted, the quantity of items that will be discounted, and the value of discount.
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20260901
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-customer-gets-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-customer-gets-input.md'
---
# DiscountCustomerGetsInput

Specifies the items that will be discounted, the quantity of items that will be discounted, and the value of discount.

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

## Type Signature

`DiscountCustomerGetsInput`

## Input Fields

* `value`

  [DiscountCustomerGetsValueInput](https://developer.shopline.com/docs/admin-graph-ql-api/customers/inputs/discount-customer-gets-value-input.md)

  The quantity of items discounted and the discount value.

* `items`

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

  The input fields for the items attached to a discount. You can specify the discount items by product ID or collection ID.

## Schema Definition

```graphql
input DiscountCustomerGetsInput { 
	value: DiscountCustomerGetsValueInput
	items: DiscountItemsInput 
}
```

## Input field from

* [DiscountCodeBxgyInput](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-code-bxgy-input.md).customerGets

  Eligible items for the discount, the quantity of each item, and the total value of the discount

* [DiscountAutomaticDoniInput](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-automatic-doni-input.md).customerGets

  The qualifying items in an order, the quantity of each one, and the total value of the discount.

* [DiscountAutomaticBxgyInput](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-automatic-bxgy-input.md).customerGets

  Eligible items in the order, the quantity of each item, and the total discount value

* [DiscountCodeBasicInput](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-code-basic-input.md).customerGets

  Eligible items in the order, the quantity of each item, and the total discount value

* [DiscountAutomaticPfntInput](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-automatic-pfnt-input.md).customerGets

  Information about the qualifying items and their discount.

* [DiscountAutomaticDoliInput](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-automatic-doli-input.md).customerGets

  The qualifying items in an order, the quantity of each one, and the total value of the discount.

* [DiscountAutomaticBasicInput](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-automatic-basic-input.md).customerGets

  Information about the qualifying items and their discount.

## 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).

