CouponResponse
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| id | Long | Unique identifier for the coupon | [default to null] |
| code | String | Unique coupon code that users enter to redeem the discount | [default to null] |
| color | String | Hex color code for UI display purposes (e.g., “#FF5733”) | [default to null] |
| description | String | Optional descriptive text explaining the coupon’s purpose or terms | [optional] [default to null] |
| discount | Double | Fixed discount amount in the specified currency | [default to null] |
| min_order_amount | Double | Minimum order amount required to use this coupon | [optional] [default to null] |
| max_coupon_amount | Double | Maximum discount amount that can be applied (caps percentage discounts) | [optional] [default to null] |
| percentage | Boolean | Whether the discount is a percentage (true) or fixed amount (false) | [default to null] |
| expires_on | Date | Expiration date and time for the coupon (UTC) | [optional] [default to null] |
| times | Integer | Maximum number of times this coupon can be used across all users | [optional] [default to null] |
| is_active | Boolean | Whether this coupon is currently active | [default to null] |
| for_delivery | Boolean | Whether this coupon applies to delivery fees | [default to null] |
| creator_id | Long | ID of the admin user who created this coupon | [optional] [default to null] |
| vendor_type_id | Long | Optional vendor type restriction - limits coupon to specific vendor categories | [optional] [default to null] |
| usage_type | String | Usage restriction type (e.g., “once_per_user”, “unlimited”) | [optional] [default to null] |
| created_at | Date | Timestamp when the coupon was created | [default to null] |
| updated_at | Date | Timestamp when the coupon was last updated | [default to null] |
| deleted_at | Date | Timestamp when the coupon was soft-deleted, if applicable | [optional] [default to null] |
| formatted_expires_on | String | Formatted expiration date for display | [default to null] |
| products | List | List of products the coupon applies to | [default to null] |
| vendors | List | List of vendors the coupon applies to | [default to null] |
| expired | Boolean | Whether the coupon has expired | [default to null] |
| use_left | Integer | Number of uses left for the coupon | [optional] [default to null] |
| photo | String | Photo URL for the coupon | [optional] [default to null] |