Docs

Log in to read the version of docs relevant to your site, or use the dropdown versions

Coupons

The available fields in the 'Coupons' data source and their corresponding descriptions are listed below.

FieldDescription
CurrencyThe currency code (ISO 4217 format) of the coupon. Applicable for fixed_amount coupons alone.
Duration TypeDisplays if the coupon can be used one_time, forever, or for a limited_period.
RedemptionsDisplays the number of times a coupon was redeemed.
Created OnTimestamp indicating when this coupon was created.
Valid TillDisplays the date until which the coupon can be applied to new subscriptions.
Coupon IDDisplays the unique identifier for the coupon.
Addon ApplicabilityDisplays if the coupon can be applied to add-ons. Possible values are none, all, specific, not_applicable.
Maximum RedemptionsDisplays the maximum number of times the coupon can be redeemed.
DurationDisplays the duration in months for the coupon to be applied. Applicable only for limited period coupon.
Apply OnDisplays the invoice items for which this discounts need to be applied. Possible values are invoice_amount, each_specified_item.
NameDisplays the coupon name.
Archived OnTimestamp indicating when this coupon was archived.
Invoice NameDisplays the invoice name of the coupon.
Discount PercentageDisplays the discount value in percentage.
StatusDisplays the status of the coupon. Possible values are active, expired, archived, deleted.
Discount TypeSpecifies the time duration this coupon is applicable. Possible values are one_time, forever, limited_period.
Plan ApplicabilityDisplays if the coupon can be applied to plans. Possible values are none, all, specific, not_applicable.
Discount AmountDisplays the discount value in dollars.

Was this article helpful?