Skip to main content

voucherCreate

Creates a new voucher.

Requires MANAGE_DISCOUNTSpermission.

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.

Requires MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • VOUCHER_CREATED (async): A voucher was created.
  • VOUCHER_CODES_CREATED (async): A voucher codes were created.