- Use Case Number: 2-2-09
- Completed By: Software Developer
- Estimated Completion Time: 1 day
Basic Scenario
A new subscriber purchases a standard rate Subscription that includes a free trial period.Design Approach
While similar to other use cases for creating Subscriptions (see Enable Subscribers to Purchase a Subscription With a Credit Card), this use case has a slight modification in that the Billing Plan defines the first billing period as a Free Period and then subsequent billing periods are not Free Periods. When calling the subscriptions endpoint, you must submit the ID of the billing plan that contains the Free Trial Period.
Configure Free Trials Using Subscribe APIs
Create a billing plan using the Subscribe Portal that has a free trial period as the first billing period. To allow subscribers to purchase free trials:-
Call the subscriptions endpoint passing the free trial billing plan.
Sample Code
POST https://api.staging.us-west.vindicia.com/subscriptions?dry_run=0JSON Request:
- A proper Subscription with Account objects is created in Vindicia Subscribe.
- Initial zero dollar Transaction is generated if applicable.
- Future billings are correctly predicted.
- Account has been granted appropriate Entitlements.
- At the end of the free trial period, the Subscription automatically converts to a paid subscription at the defined price.
- This scenario allows a subscription to be created without a payment method being provided by the customer for the free trial period. A valid payment method is required for the first charged (non free) billing period. If one is not provided, the subscription is canceled. You can set a grace period for the subscription prior to cancellation allowing the subscriber additional time to provide a payment method without losing access to the product.

