---
title: "DiscountCustomerGetsValueInput"
description: "The input fields for the quantity of items discounted and the discount value."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/customers/inputs/discount-customer-gets-value-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/customers/inputs/discount-customer-gets-value-input.md'
---
# DiscountCustomerGetsValueInput

The input fields for the quantity of items discounted and the discount value.

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

## Type Signature

`DiscountCustomerGetsValueInput`

## Input Fields

* `discountOnQuantity`

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

  The quantity of the items that are discounted and the discount value.

* `percentage`

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

  The percentage value of the discount. Value must be between 0.00 - 1.00.

* `discountAmount`

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

  The value of the discount. Not applicable to Discount on the lowest-priced item(DOLI) discount.

## Schema Definition

```graphql
input DiscountCustomerGetsValueInput { 
	discountOnQuantity: DiscountOnQuantityInput
	percentage: Float
	discountAmount: DiscountAmountInput 
}
```

## Input field from

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

  The quantity of items discounted and the discount value.

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

