---
title: "DiscountUserError"
description: "Errors that happen during discount mutation execution."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-user-error'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-user-error.md'
---
# DiscountUserError

Errors that happen during discount mutation execution.

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

## Type Signature

`DiscountUserError`

## Fields

* `code`

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

  The error code.

* `extraInfo`

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

  Anchor to DiscountUserError.extraInfo
  extraInfo

* `field`

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

  The path of the input field that triggers the error.

* `message`

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

  The error message.

## Schema Definition

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

## Field from

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

  A list of mistakes that happen during mutation execution.

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

  The list of errors

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

  The list of errors that occurred from executing the mutation.

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

  A list of errors that occur during mutation execution.

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

  The list of errors.

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

  The list of errors that occurred from executing the mutation.

* [DiscountCodeBulkActivatePayload](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-bulk-activate-payload.md).userErrors

  The list of errors that occurred from executing the mutation.
  

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

  The list of errors that occurred from executing the mutation.

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

  The list of errors that occurred from executing the mutation.

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

  The list of errors that occurred from executing the mutation.

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

  The list of errors that occurred from executing the mutation.

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

  The list of errors that occurred from executing the mutation.

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

  A list of mistakes that happen during mutation execution.

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

  A list of mistakes that happen during mutation execution.

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

  The list of errors.

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

  A list of mistakes that happen during mutation execution.

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

  The list of errors that occurred from executing the mutation.

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

  The list of errors that occurred from executing the mutation.

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

  A list of mistakes that happen during mutation execution.

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

  The list of errors.

* ... and 12 more

## Error Handling

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

