DiscountCodeDto
Response DTO for a discount code (admin view).
Properties
| Name | Type | Description |
|---|---|---|
| code | string | The user-facing discount code (e.g. "LAUNCH50"). |
The user-facing discount code (e.g. "LAUNCH50"). | ||
| description | string | Admin-facing description of the discount code. |
Admin-facing description of the discount code. | ||
| discountPercent | integer | The percentage discount to apply (1–100). |
The percentage discount to apply (1–100). | ||
| durationMonths | integer | How many months the discount lasts from the date of redemption. Null means permanent. |
How many months the discount lasts from the date of redemption. Null means permanent. | ||
| maxUses | integer | Maximum number of times this code can be redeemed. Null means unlimited. |
Maximum number of times this code can be redeemed. Null means unlimited. | ||
| useCount | integer | Current number of times this code has been redeemed. |
Current number of times this code has been redeemed. | ||
| validFrom | string | When the code becomes redeemable. |
When the code becomes redeemable. | ||
| validTo | string | When the code stops being redeemable. Null means no expiry. |
When the code stops being redeemable. Null means no expiry. | ||
| package | CodeAndNameDto | |
| isArchived | boolean | When true, the code is disabled and cannot be redeemed. |
When true, the code is disabled and cannot be redeemed. | ||
JSON Example
{
"code": "string",
"description": "string",
"discountPercent": 0,
"durationMonths": 0,
"maxUses": 0
}