CreateEnterpriseVoucherInput

Request structure for creating a new enterprise voucher.

Fields

    code
    String!
    Required
    Unique voucher code.
    currencyCode
    String!
    Required
    Currency code for the voucher.
    description
    String
    Optional description of the voucher.
    discountType
    String!
    Required
    Type of discount (percentage or fixed_amount).
    discountValue
    Decimal!
    Required
    Discount value (percentage or amount).
    endDate
    NaiveDate
    Voucher validity end date.
    maxDiscountAmount
    Decimal
    Maximum discount amount that can be applied.
    minOrderAmount
    Decimal
    Minimum order amount required to use the voucher.
    name
    String!
    Required
    Display name of the voucher.
    startDate
    NaiveDate
    Voucher validity start date.
    templateId
    Int
    Optional ID of the template this voucher was generated from.
    usageLimit
    Int
    Total number of times the voucher can be used.
    userUsageLimit
    Int
    Maximum number of times each user can use the voucher.
Built with