---
title: "DiscountRedeemCodeInput"
description: "Input field for the redemption code associated with the discount"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-redeem-code-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-redeem-code-input.md'
---
# DiscountRedeemCodeInput

Input field for the redemption code associated with the discount

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

## Type Signature

`DiscountRedeemCodeInput`

## Input Fields

* `code`

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

  Code that customers can use at checkout to receive the associated discount

## Schema Definition

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

## Argument from

* [Mutation](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/mutations/discount-redeem-code-bulk-add.md).discountRedeemCodeBulkAdd

  异步批量添加折扣兑换代码，指定要添加的代码以及代码所属的折扣代码 ID。

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

