Skip to content

Main content

Promotion Coupon Expiry Label Tool

Label a coupon with an explicit inclusive expiry date and compare an explicit as-of date, without redeeming or checking other terms.

Loading tool…

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

  1. Enter couponCode, expiryDate, asOfDate. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. 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 fieldMeaning and unitsAccepted input
couponCodeCoupon CodeRequired. Text; maximum UTF-16 length 8192.
expiryDateSupplied expiry date; boundary inclusion follows the comparison above.Required. Text; maximum UTF-16 length 8192.
asOfDateComparison date in the documented date convention.Required. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
labelFormatted label for the supplied components under the convention above.Required. Text; maximum UTF-16 length 8192.
expiredExpiredRequired. Boolean.
json
{
  "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

  1. Calculation and input contract: advertising/promotion-coupon-expiry-label — tool.io

Similar or alternative tools