---
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: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-customer-gets-input'
  md: 'https://developer.shopline.com/zh-hans-cn/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:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Input

## Type Signature

`DiscountCustomerGetsInput`

## Input Fields

* `value`

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

  折扣商品的数量和折扣金额

* `items`

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

  附加折扣的商品的输入字段。您可以通过产品 ID 或集合 ID 指定折扣商品

## Schema Definition

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

## Input field from

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

  有关符合条件的商品及其折扣的信息。

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

  订单中符合条件的商品、每件商品的数量以及折扣总价值

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

  有关合格商品及其折扣的信息

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

  有关符合条件的商品及其折扣的信息。

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

  将享受折扣的合格商品、每件商品的数量以及折扣的总价值

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

  订单中符合条件的商品、每件商品的数量以及折扣总价值。

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

  有关合格商品及其折扣的信息

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes)。

