Voucher

Response structure for an enterprise voucher.

Fields

    code
    String!
    Required
    Voucher code.
    createdAt
    String!
    Required
    Timestamp when the voucher was created.
    currencyCode
    String!
    Required
    Currency code for the voucher.
    description
    String
    Description of the voucher.
    discountType
    String!
    Required
    Type of discount (percentage or fixed_amount).
    discountValue
    Decimal!
    Required
    Discount value (percentage or amount).
    endDate
    String
    Voucher validity end date.
    enterpriseId
    Int!
    Required
    ID of the enterprise that owns this voucher.
    id
    Int!
    Required
    Unique identifier for the voucher.
    isActive
    Boolean!
    Required
    Whether the voucher is active.
    maxDiscountAmount
    Decimal
    Maximum discount amount that can be applied.
    minOrderAmount
    Decimal
    Minimum order amount required.
    name
    String!
    Required
    Display name of the voucher.
    startDate
    String
    Voucher validity start date.
    templateId
    Int
    Optional ID of the template used to create this voucher.
    updatedAt
    String!
    Required
    Timestamp when the voucher was last updated.
    usageCount
    Int!
    Required
    Current number of times the voucher has been used.
    usageLimit
    Int
    Total usage limit.
    userUsageLimit
    Int
    Per-user usage limit.
Built with