voucherCataloguesAdd Mutation
Adds products, categories, collections to a voucher.
Triggers the following webhook events:
- VOUCHER_UPDATED (async): A voucher was updated.
Applied directives
@webhookEventsInfo(asyncEvents: [VOUCHER_UPDATED], syncEvents: [])
voucherCataloguesAdd(id: ID!, input: CatalogueInput!): VoucherAddCatalogues
Returns
Show return type
type VoucherAddCatalogues {
voucher: Voucher
discountErrors: [DiscountError!]! @deprecated(reason: "Use `errors` field instead.")
errors: [DiscountError!]!
}Arguments
id
id · ID!
ID of a voucher.
input
input · CatalogueInput!
Fields required to modify catalogue IDs of voucher.
Schema: Saleor 3.23.43. Download SDL.