Skip to main content

voucherUpdate

Updates a voucher.

Requires 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

Arguments

voucherUpdate.id ● ID! non-null scalar miscellaneous

ID of a voucher to update.

voucherUpdate.input ● VoucherInput! non-null input discounts

Fields required to update a voucher.

Type

VoucherUpdate object discounts

Updates a voucher.

Requires MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

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