---
title: "DiscountCodesInput"
description: "List of discount codes"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/common-objects/inputs/discount-codes-input'
  md: 'https://developer.shopline.com/docs/storefront-api/common-objects/inputs/discount-codes-input.md'
---
# DiscountCodesInput

List of discount codes

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

## Type Signature

`DiscountCodesInput`

## Input Fields

* `code`

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

  code

## Schema Definition

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

## Input field from

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

  
  The case-insensitive discount codes that the customer added at checkout.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes).

