CreateVoucherTemplateInput

Request structure for creating a voucher template.

Fields

    applicableCategories
    [Int!]
    Required
    Categories where this voucher applies.
    applicableVendors
    [Int!]
    Required
    Vendors where this voucher applies.
    autoApproveLimit
    Decimal
    Auto-approve vouchers below this amount.
    discountValue
    Decimal!
    Required
    Discount value.
    excludedCategories
    [Int!]
    Required
    Categories where this voucher is excluded.
    excludedVendors
    [Int!]
    Required
    Vendors where this voucher is excluded.
    isActive
    Boolean!
    Required
    Whether the template is active.
    maxDiscountAmount
    Decimal
    Maximum discount amount that can be applied.
    minOrderValue
    Decimal
    Minimum order value required.
    requiresApproval
    Boolean!
    Required
    Whether voucher generation requires approval.
    templateDescription
    String
    Optional description of the template.
    templateName
    String!
    Required
    Name of the template.
    totalUsageLimit
    Int
    Total usage limit across all vouchers from this template.
    usageLimitPerUser
    Int
    Maximum times each user can use vouchers from this template.
    validFrom
    String
    Valid from date (ISO datetime string).
    validUntil
    String
    Valid until date (ISO datetime string).
    voucherType
    VoucherTemplateType!
    Required
    Type of voucher (percentage, fixed amount, or buy X get Y).
Built with