Skip to main content

SaleAddCatalogues

Adds products, categories, collections to a sale.

DEPRECATED: this mutation will be removed in Saleor 4.0. Use promotionRuleCreate mutation instead.

Requires MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • SALE_UPDATED (async): A sale was updated.
type SaleAddCatalogues {
sale: Sale
discountErrors: [DiscountError!]! @deprecated
errors: [DiscountError!]!
}

Fields

SaleAddCatalogues.sale ● Sale object discounts

Sale of which catalogue IDs will be modified.

SaleAddCatalogues.discountErrors ● [DiscountError!]! deprecated non-null object discounts

DEPRECATED

This field will be removed in Saleor 4.0. Use errors field instead.

SaleAddCatalogues.errors ● [DiscountError!]! non-null object discounts

Returned By

saleCataloguesAdd mutation