Coupon
Response DTO representing a coupon with full details, tracking, and timestamps
Fields
codeString!RequiredcolorString!RequiredcreatedAtDateTime!RequiredcreatorIdIntdeletedAtDateTimedescriptionStringdiscountDecimal!RequiredexpiredBoolean!RequiredexpiresOnDateTimeforDeliveryBoolean!RequiredformattedExpiresOnString!RequiredidInt!RequiredisActiveBoolean!RequiredmaxCouponAmountDecimalminOrderAmountDecimalpercentageBoolean!RequiredphotoStringproducts[CouponProductInfo!]!RequiredtimesIntupdatedAtDateTime!RequiredusageTypeStringuseLeftIntvendorTypeIdIntvendors[CouponVendorInfo!]!Required
Unique coupon code that users enter to redeem the discount
Hex color code for UI display purposes (e.g., "#FF5733")
Timestamp when the coupon was created
ID of the admin user who created this coupon
Timestamp when the coupon was soft-deleted, if applicable
Optional descriptive text explaining the coupon's purpose or terms
Fixed discount amount in the specified currency
Whether the coupon has expired
Expiration date and time for the coupon (UTC)
Whether this coupon applies to delivery fees
Formatted expiration date for display
Unique identifier for the coupon
Whether this coupon is currently active
Maximum discount amount that can be applied (caps percentage discounts)
Minimum order amount required to use this coupon
Whether the discount is a percentage (true) or fixed amount (false)
Photo URL for the coupon
List of products the coupon applies to
Maximum number of times this coupon can be used across all users
Timestamp when the coupon was last updated
Usage restriction type (e.g., "once_per_user", "unlimited")
Number of uses left for the coupon
Optional vendor type restriction - limits coupon to specific vendor categories
List of vendors the coupon applies to
Built with