Trial Periods
How Trials Work
When you create a subscription offer with a trial period, the customer's subscription is activated immediately upon checkout, but they are not charged until the trial ends.
- The customer provides their payment method during checkout.
- The subscription status is set to
ACTIVEwith a trial start date. - After the trial period expires, the first charge is processed automatically.
- If the first charge fails, the subscription follows the standard payment failure flow.
Setting Up a Trial
From the Dashboard
When creating a subscription offer:
- In the offer creation form, find the Trial Period field.
- Enter the number of free days (1–365).
- Complete the offer creation.
Via the API
Include the trialPeriodDays field when creating an offer:
curl -X POST https://api.inflowpay.xyz/subscription/offer \
-H "X-Inflow-Api-Key: your_private_key" \
-H "Content-Type: application/json" \
-d '{
"name": "Pro Plan",
"description": "Full access with 14-day free trial",
"amountInCents": 2999,
"currency": "EUR",
"interval": "month",
"intervalCount": 1,
"trialPeriodDays": 14
}'Trial + Entry Fee
You can combine a trial period with an entry fee. In this case:
- The customer enters the trial period (no charge).
- When the trial ends, the entry fee is charged first.
- Subsequent charges use the regular subscription amount.
Important Notes
- Trial periods are set at the offer level — all subscribers to that offer get the same trial duration.
- The customer must provide a valid payment method during checkout, even for free trials.
- Customers can cancel during the trial period without being charged.
- Trial period values must be between 1 and 365 days.
Updated 1 day ago