---
title: "CartDiscountCodesUpdateInput"
description: "Application discount code interface input parameters"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/cart/inputs/cart-discount-codes-update-input'
  md: 'https://developer.shopline.com/docs/storefront-api/cart/inputs/cart-discount-codes-update-input.md'
---
# CartDiscountCodesUpdateInput

Application discount code interface input parameters

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

## Type Signature

`CartDiscountCodesUpdateInput`

## Input Fields

* `userToken`

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

  customer access token

* `countryCode`

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

  The code of the country.

* `language`

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

  The language of the front client.

* `discountCodes`

  [[DiscountCodesInput!]!](https://developer.shopline.com/docs/storefront-api/common-objects/inputs/discount-codes-input.md)

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

* `cartId`

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

  The ID of the cart.

* `isNeedReturnCartDetail`

  [Boolean](https://developer.shopline.com/docs/storefront-api/common/scalars/boolean.md)

  Whether to return the latest cart detail.

## Schema Definition

```graphql
input CartDiscountCodesUpdateInput { 
	userToken: String
	countryCode: String
	language: String
	discountCodes: [DiscountCodesInput!]!
	cartId: ID!
	isNeedReturnCartDetail: Boolean 
}
```

## Argument from

* [Mutation](https://developer.shopline.com/docs/storefront-api/cart/mutations/cart-discount-codes-update.md).cartDiscountCodesUpdate

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

