Skip to main content
Version: 3.x

DiscountError

No description

type DiscountError {
field: String
message: String
products: [ID!]
code: DiscountErrorCode!
channels: [ID!]
voucherCodes: [String!]
}

Fields

DiscountError.field ● String scalar

Name of a field that caused the error. A value of null indicates that the error isn't associated with a particular field.

DiscountError.message ● String scalar

The error message.

DiscountError.products ● [ID!] list scalar

List of products IDs which causes the error.

DiscountError.code ● DiscountErrorCode! non-null enum

The error code.

DiscountError.channels ● [ID!] list scalar

List of channels IDs which causes the error.

DiscountError.voucherCodes ● [String!] list scalar

List of voucher codes which causes the error.

Added in Saleor 3.18

Member of

PromotionBulkDelete object ● SaleAddCatalogues object ● SaleBulkDelete object ● SaleChannelListingUpdate object ● SaleCreate object ● SaleDelete object ● SaleRemoveCatalogues object ● SaleUpdate object ● VoucherAddCatalogues object ● VoucherBulkDelete object ● VoucherChannelListingUpdate object ● VoucherCreate object ● VoucherDelete object ● VoucherRemoveCatalogues object ● VoucherUpdate object


Was this page helpful?