---
title: "DiscountCustomerGets"
description: >
  Eligible items in the order, the quantity of each item, and the total discount amount
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-customer-gets'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-customer-gets.md'
---
# DiscountCustomerGets

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

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

## Type Signature

`DiscountCustomerGets`

## Fields

* `items`

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

  The items to which the discount applies.
  
  

* `value`

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

  Entitled quantity and the discount value.

## Schema Definition

```graphql
type DiscountCustomerGets { 
	items: DiscountItems
	value: DiscountCustomerGetsValue! 
}
```

## Field from

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

  Eligible items in the order, their quantities, and the total discount amount.

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

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

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

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

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

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

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

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

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

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

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

  The qualifying items in an order, the quantity of each one, and the total value of the 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).

