---
title: "CheckoutDiscountCodeApplyPayload"
description: "CheckoutDiscountCodeApplyPayload"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/checkouts/objects/checkout-discount-code-apply-payload'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/checkouts/objects/checkout-discount-code-apply-payload.md'
---
# CheckoutDiscountCodeApplyPayload

CheckoutDiscountCodeApplyPayload

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

## Type Signature

`CheckoutDiscountCodeApplyPayload`

## Fields

* `checkout`

  [Checkout](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/checkouts/objects/checkout.md)

  更新的结账对象

* `checkoutUserErrors`

  [[CheckoutUserError!]!](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/checkouts/objects/checkout-user-error.md)

  错误的信息

## Schema Definition

```graphql
type CheckoutDiscountCodeApplyPayload { 
	checkout: Checkout
	checkoutUserErrors: [CheckoutUserError!]! 
}
```

## Field from

* [Mutation](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/checkouts/mutations/checkout-discount-code-apply.md).checkoutDiscountCodeApply

  使用折扣码对现有结账应用折扣

## Error Handling

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

