Skip to main content

VoucherMutationsClassMethods

No description

type VoucherMutationsClassMethods {
createVoucherCodes(
amount: Int = 0
name: String
description: String
groupId: ID = 0
productGroupId: ID = 0
startDate: String
endDate: String
totalUsageCount: Int = 1
availableUsageCount: Int = 1
consumed: Boolean
newAccountOnly: Boolean
): [Voucher]
reduceVoucherUse(productId: ID = 0, voucherId: ID = 0): Voucher
}

Fields#

createVoucherCodes ([Voucher])#

Creating voucher codes and it's details

reduceVoucherUse (Voucher)#

Getting a specific voucher details by voucher code.

  • productId (ID)#
  • voucherId (ID)#