---
title: "CartDiscountCodesUpdateInput"
description: "应用折扣码接口入参"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/cart/inputs/cart-discount-codes-update-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/cart/inputs/cart-discount-codes-update-input.md'
---
# CartDiscountCodesUpdateInput

应用折扣码接口入参

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

## Type Signature

`CartDiscountCodesUpdateInput`

## Input Fields

* `discountCodes`

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

  折扣码列表

* `cartId`

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

  购物车ID

* `isNeedReturnCartDetail`

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

  是否返回最新购物车详情

* `userToken`

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

  会员访问token

* `countryCode`

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

  国家编码

* `language`

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

  前台语言

## Schema Definition

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

## Argument from

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

## Error Handling

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

