Skip to main content

DiscountError Object

No description

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

Fields​

field ● String​

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

message ● String​

The error message.

products ● [ID!]​

List of products IDs which causes the error.

code ● DiscountErrorCode!​

The error code.

channels ● [ID!]​

List of channels IDs which causes the error.

voucherCodes ● [String!]​

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