Skip to main content

voucherUpdate Mutation

Updates a voucher.

Requires the MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • VOUCHER_UPDATED (async): A voucher was updated.
  • VOUCHER_CODES_CREATED (async): A voucher code was created.
voucherUpdate(
id: ID!
input: VoucherInput!
): VoucherUpdate
Show return type

Arguments

id ● ID!

ID of a voucher to update.

input ● VoucherInput!

Fields required to update a voucher.

Type

VoucherUpdate

Updates a voucher.

Requires the MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • VOUCHER_UPDATED (async): A voucher was updated.
  • VOUCHER_CODES_CREATED (async): A voucher code was created.