{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"name": "Startup Deal",
"code": "startup_deal",
"coupon_type": "fixed_amount",
"reusable": true,
"limited_plans": true,
"limited_billable_metrics": false,
"frequency": "recurring",
"expiration": "time_limit",
"created_at": "2022-04-29T08:59:51Z",
"description": "I am a coupon description",
"amount_cents": 5000,
"amount_currency": "USD",
"plan_codes": [
"startup_plan"
],
"billable_metric_codes": [],
"percentage_rate": null,
"frequency_duration": 6,
"expiration_at": "2022-08-08T23:59:59Z",
"terminated_at": "2022-08-08T23:59:59Z"
}The coupon object
This object represents a coupon used to apply discounts on a customer’s next invoices. This coupon can be applied to a customer with overridden values.
The type of the coupon. It can have two possible values: fixed_amount or percentage.
- If set to
fixed_amount, the coupon represents a fixed amount discount. - If set to
percentage, the coupon represents a percentage-based discount.
fixed_amount, percentage "fixed_amount"
Indicates whether the coupon can be reused or not. If set to true, the coupon is reusable, meaning it can be applied multiple times to the same customer. If set to false, the coupon can only be used once and is not reusable. If not specified, this field is set to true by default.
true
The type of frequency for the coupon. It can have three possible values: once, recurring, or forever.
- If set to
once, the coupon is applicable only for a single use. - If set to
recurring, the coupon can be used multiple times for recurring billing periods. - If set to
forever, the coupon has unlimited usage and can be applied indefinitely.
once, recurring, forever "recurring"
Specifies the type of expiration for the coupon. It can have two possible values: time_limit or no_expiration.
- If set to
time_limit, the coupon has an expiration based on a specified time limit. - If set to
no_expiration, the coupon does not have an expiration date and remains valid indefinitely.
no_expiration, time_limit "time_limit"
The currency of the coupon. This field is required only for coupon with fixed_amount type.
null, AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BIF, BMD, BND, BOB, BRL, BSD, BWP, BYN, BZD, CAD, CDF, CHF, CLF, CLP, CNY, COP, CRC, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ETB, EUR, FJD, FKP, GBP, GEL, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, ISK, JMD, JPY, KES, KGS, KHR, KMF, KRW, KYD, KZT, LAK, LBP, LKR, LRD, LSL, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SEK, SGD, SHP, SLL, SOS, SRD, STD, SYP, SZL, THB, TJS, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW "USD"
The expiration date and time of the coupon. This field is required only for coupons with expiration set to time_limit. The expiration date and time should be specified in UTC format according to the ISO 8601 datetime standard. It indicates the exact moment when the coupon will expire and is no longer valid.
"2022-08-08T23:59:59Z"