Set trial days on a price
In the dashboard, open Plans, select the plan, and open the price. Enter the Free trial days, choose whether to Require a payment method, and choose Save to draft. The trial applies to new subscriptions once you publish the draft.
Price variants inherit the trial of their base price. One-time prices can’t have a trial.
A subscription keeps the trial days it accepted. Changing
trialDays publishes a new plan version and affects only new subscriptions.
Start a trial with a payment method
checkoutUrl. Checkout saves the payment method without charging it, and the subscription becomes trialing with trialEndsAt set.
When the trial ends, Commet charges the selected price of the subscription’s plan version and the subscription becomes active. A promo code typed in the trial checkout discounts the first invoice after the trial.
Start a trial without a payment method
subscriptions.updatePaymentMethod.
When the trial ends without a card:
- The subscription moves to the plan group’s default plan and
subscription.plan_changedfires. - Without a default plan, the subscription is canceled with
cancelReason: "trial_ended_without_payment_method". - No invoice is created.
trial.expiredfires in both cases.
409 no_payment_method. Scheduled changes still apply.
Override the trial per subscription
Both combine with
offerId. The Offer’s discount starts after the trial.
Eligibility
A customer gets one trial per plan. A customer who already had the plan, in a trial or paying, gets no trial and goes through the regular checkout, including withcustomTrialDays.
prepaidPeriods above 1 and cancelAtPeriodEnd: true skip the price’s trial; with customTrialDays above 0 they return 400. cardPromotionId skips a trial that requires a payment method.
Trial webhooks
trial.checkout_ready: the trial checkout link is ready.trial.started: the trial began. Grant access.trial.will_end: the trial ends within 3 days.trial.converted: the customer changed plan before the trial ended.trial.expired: the trial ran out.
Limitations
trialDaysaccepts0to730. The dashboard accepts whole days from1to730; leave it empty for no trial.- One trial per customer per plan.
- Trials don’t combine with
prepaidPeriodsabove1orcancelAtPeriodEnd: true. - A trial without a payment method can’t start with an Offer, promo code, card promotion or provider override.