Description
Display valid through expiry and mark expired only for dates strictly after it.
Fixed and percentage discounts act differently and may produce different prices when their order changes. Threshold pricing also depends on whether a new rate applies to all units.
Display valid through expiry and mark expired only for dates strictly after it.
When to use this tool
Use Promotion Coupon Expiry Label when you need a transparent promotional price or eligibility term.
How to use the tool and how it works
- Enter couponCode, expiryDate, asOfDate. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read label, expired. Inspect expired before interpreting the associated values.
Require nonempty couponCode and real expiryDate and asOfDate. Display valid through expiry and mark expired only for dates strictly after it.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| couponCode | Coupon Code | Required. Text; maximum UTF-16 length 8192. |
| expiryDate | Supplied expiry date; boundary inclusion follows the comparison above. | Required. Text; maximum UTF-16 length 8192. |
| asOfDate | Comparison date in the documented date convention. | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| label | Formatted label for the supplied components under the convention above. | Required. Text; maximum UTF-16 length 8192. |
| expired | Expired | Required. Boolean. |
{
"input": {
"couponCode": "SAVE10",
"expiryDate": "2026-11-01",
"asOfDate": "2026-11-01"
},
"output": {
"label": "SAVE10 valid through 2026-11-01",
"expired": false
}
} Limitations and assumptions
- The expiry date itself is included; timezone, time-of-day, eligibility, exclusions, issuer authority, and actual offer terms are not checked.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Check actual offer terms, item eligibility, taxes, and monetary rounding before applying a computed price.
References
Similar or alternative tools
- Coupon Basket Minimum Margin
Subtract minimumSubtotal from nonnegative basketSubtotal for margin and compare inclusively for eligible.
- Museum Ticket Validity Window
Parse ordered validFromDate and validThroughDate and the visitDate as real Gregorian date strings.