voucherChannelListingUpdate Mutation
Manage voucher’s availability in channels.
Triggers the following webhook events:
- VOUCHER_UPDATED (async): A voucher was updated.
Applied directives
@webhookEventsInfo(asyncEvents: [VOUCHER_UPDATED], syncEvents: [])
voucherChannelListingUpdate(id: ID!, input: VoucherChannelListingInput!): VoucherChannelListingUpdate
Returns
Show return type
type VoucherChannelListingUpdate {
voucher: Voucher
discountErrors: [DiscountError!]! @deprecated(reason: "Use `errors` field instead.")
errors: [DiscountError!]!
}Arguments
id
id · ID!
ID of a voucher to update.
input
input · VoucherChannelListingInput!
Fields required to update voucher channel listings.
Schema: Saleor 3.23.43. Download SDL.