VoucherTemplate

Response structure for a voucher template.

Fields

    applicableCategories
    [Int!]
    Required
    Applicable categories.
    applicableVendors
    [Int!]
    Required
    Applicable vendors.
    autoApproveLimit
    Decimal
    Auto-approve limit.
    createdAt
    String!
    Required
    Timestamp when created.
    createdBy
    Int!
    Required
    User ID who created the template.
    discountValue
    Decimal!
    Required
    Discount value.
    enterpriseId
    Int!
    Required
    ID of the enterprise that owns this template.
    excludedCategories
    [Int!]
    Required
    Excluded categories.
    excludedVendors
    [Int!]
    Required
    Excluded vendors.
    id
    Int!
    Required
    Unique identifier for the template.
    isActive
    Boolean!
    Required
    Whether the template is active.
    maxDiscountAmount
    Decimal
    Maximum discount amount.
    minOrderValue
    Decimal
    Minimum order value required.
    requiresApproval
    Boolean!
    Required
    Whether approval is required.
    templateDescription
    String
    Description of the template.
    templateName
    String!
    Required
    Name of the template.
    totalUsageLimit
    Int
    Total usage limit.
    updatedAt
    String!
    Required
    Timestamp when last updated.
    usageLimitPerUser
    Int
    Per-user usage limit.
    validFrom
    String
    Valid from date.
    validUntil
    String
    Valid until date.
    voucherCount
    Int
    Count of vouchers created from this template.
    voucherType
    String!
    Required
    Type of voucher.
Built with