voucherCreate Mutation
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.
voucherCreate(
input: VoucherInput!
): VoucherCreate
Arguments
voucherCreate.input
● VoucherInput!
non-null input discounts
Fields required to create a voucher.
Type
VoucherCreate
object discounts
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.