Set the Automatic Last Offer After a Trial (operator only)
li_set_trial_end_offerOPERATOR ONLY. Reads or sets the install-wide AUTOMATIC last offer: a discount on the first months of a new subscription, given once to a customer (team) whose trial ended without subscribing, and emailed to them as a personal last offer (marketing mail: the winback opt-out stops it). Hourly, a team qualifies when billing is set up for its currency, it is not free or complimentary, every account it pays for finished its trial afterDays or more days ago with none paid, and it has never subscribed and never had a discount. The offer is percent off (1-99; 0 turns the automatic offer OFF) for months first months (1-12), and it expires after validDays (1-30). afterDays is 8-60 (the trial-ended reminder goes at 7 days, so the last offer always comes after it). Give any of the four; the rest stay. Stored in the database, so it takes effect at the next hourly pass with no deploy; teams already offered keep their offer. Omit all four to read the current settings (defaults: 40% off 1 month, 10 days after the trial, valid 7 days). A one-off discount for one team is li_set_team_discount.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| months | No | How many first months the offer covers, 1-12 | |
| percent | No | Percent off, 1-99; 0 turns the automatic offer off | |
| afterDays | No | Days after the team’s latest trial end before it is offered, 8-60 | |
| validDays | No | How many days the offer stays valid, 1-30 |