VoucherCreate Object
Creates a new voucher.
Triggers the following webhook events:
- VOUCHER_CREATED (async): A voucher was created.
- VOUCHER_CODES_CREATED (async): A voucher codes were created.
Applied directives
@webhookEventsInfo(asyncEvents: [VOUCHER_CREATED, VOUCHER_CODES_CREATED], syncEvents: [])
type VoucherCreate {
discountErrors: [DiscountError!]! @deprecated(reason: "Use `errors` field instead.")
errors: [DiscountError!]!
voucher: Voucher
}
Fields
discountErrors
discountErrors · [DiscountError!]!
errors
errors · [DiscountError!]!
voucher
voucher · Voucher
Used by
Schema: Saleor 3.23.43. Download SDL.