---
title: "DiscountCodesInput"
description: "折扣码列表"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/inputs/discount-codes-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/inputs/discount-codes-input.md'
---
# DiscountCodesInput

折扣码列表

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

## Type Signature

`DiscountCodesInput`

## Input Fields

* `code`

  [String!](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  code

## Schema Definition

```graphql
input DiscountCodesInput { 
	code: String! 
}
```

## Input field from

* [CartDiscountCodesUpdateInput](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/cart/inputs/cart-discount-codes-update-input.md).discountCodes

  折扣码列表

## Error Handling

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

