---
title: "DiscountUserError"
description: "执行折扣突变期间发生的错误"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20260901
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-user-error'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-user-error.md'
---
# DiscountUserError

执行折扣突变期间发生的错误

- **API Version:** v20260901
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`DiscountUserError`

## Fields

* `code`

  [DiscountErrorCode!](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/enums/discount-error-code.md)

  错误代码

* `extraInfo`

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

  有关此错误的额外信息

* `field`

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

  导致错误的输入字段的路径

* `message`

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

  错误消息

## Schema Definition

```graphql
type DiscountUserError { 
	code: DiscountErrorCode!
	extraInfo: String
	field: [String]
	message: String 
}
```

## Field from

* [DiscountCodeRedeemCodeBulkDeletePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-redeem-code-bulk-delete-payload.md).userErrors

  执行突变时发生的错误列表

* [DiscountAutomaticDoliUpdatePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-doli-update-payload.md).userErrors

  执行变更时发生的错误列表。

* [DiscountCodeBasicUpdatePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-basic-update-payload.md).userErrors

  执行突变时发生的错误列表

* [DiscountAutomaticDoniCreatePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-doni-create-payload.md).userErrors

  执行变更时发生的错误列表。

* [DiscountAutomaticAppCreatePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-app-create-payload.md).userErrors

  执行突变时发生的错误列表

* [DiscountCodeFreeShippingCreatePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-free-shipping-create-payload.md).userErrors

  执行突变时发生的错误列表

* [DiscountAutomaticBulkDeletePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-bulk-delete-payload.md).userErrors

  执行突变时发生的错误列表

* [DiscountAutomaticDeactivatePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-deactivate-payload.md).userErrors

  执行突变时发生的错误列表

* [DiscountAutomaticBxgyCreatePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-bxgy-create-payload.md).userErrors

  执行突变时发生的错误列表。

* [DiscountAutomaticActivatePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-activate-payload.md).userErrors

  执行突变时发生的错误列表

* [DiscountRedeemCodeBulkAddPayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-redeem-code-bulk-add-payload.md).userErrors

  执行突变时发生的错误列表

* [DiscountAutomaticFreeShippingCreatePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-free-shipping-create-payload.md).userErrors

  执行突变时发生的错误列表

* [DiscountCodeFreeShippingUpdatePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-free-shipping-update-payload.md).userErrors

  执行突变时发生的错误列表

* [DiscountCodeBasicCreatePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-basic-create-payload.md).userErrors

  执行突变时发生的错误列表

* [DiscountCodeDeactivatePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-deactivate-payload.md).userErrors

  执行突变时发生的错误列表

* [DiscountCodeDeletePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-delete-payload.md).userErrors

  执行突变时发生的错误列表

* [DiscountAutomaticPfntUpdatePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-pfnt-update-payload.md).userErrors

  执行变更时发生的错误列表。

* [DiscountCodeBxgyCreatePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-bxgy-create-payload.md).userErrors

  执行突变时发生的错误列表。
  

* [DiscountAutomaticPfntCreatePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-pfnt-create-payload.md).userErrors

  执行突变时发生的错误列表。

* [DiscountAutomaticDeletePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-delete-payload.md).userErrors

  执行突变时发生的错误列表

* ... and 12 more

## Error Handling

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

