Stripe Plan
Stripe Plan manages the plans in your Stripe account. A plan defines how much and how often a product is charged, for example 29.00 a month, and is what a customer is assigned when they subscribe. From a flow you can create plans, look them up and delete them.
Plans and the recurring prices of Stripe Price do the same job. If you are starting from scratch, you can use either.
When to use it
- You launch a new product with a monthly fee and want to create its plan from a flow.
- You want to offer a free trial of a few days on a plan.
- You want to review the plans you have in Stripe.
- A plan is no longer offered and you want to delete it.
Configuration
You need a Stripe API credential with the secret key of your Stripe account. See Credentials.
| Field | What it does |
|---|---|
| Credential (required) | The Stripe API credential of your account. |
| Operation (required) | The action the component performs. Defaults to Create. See Operations. |
| Mode | Only in Get. By ID looks up one plan; All returns the list of plans. Defaults to By ID. |
| Plan ID | The plan’s identifier in Stripe. Required in Delete and in Get with By ID. |
| Amount | Only in Create, and required there. The amount of each charge in the smallest unit of the currency, for example cents: 2900 is 29.00. |
| Currency | Only in Create, and required there. The plan’s currency, such as eur or usd. Defaults to usd. |
| Billing Interval | Only in Create, and required there. How often it is charged: month, day, week or year. Defaults to month. |
| Interval Count | Only in Create. How many intervals pass between charges. For example, 3 with month charges every three months. Defaults to 1. |
| Product ID | Only in Create, and required there. The Stripe product the plan belongs to (starts with prod_). Create it first with Stripe Product. |
| Trial Period Days | Only in Create. Days of free trial before the first charge. |
| Limit | Only in Get with All. Maximum number of plans returned, between 1 and 100. Defaults to 100. |
Operations
- Create: creates a plan for a product with the given amount and billing period.
- Delete: deletes a plan so it can no longer be assigned to new subscriptions.
- Get: with
By IDreturns one plan; withAllreturns the list of plans.
Output
The Data output returns the plan that was created, looked up or deleted. With Get and All, it returns one item per plan. Each item includes the plan’s identifier, amount, currency and billing period.
You can connect it to your catalogue or to a message for the team. The component can also be connected to an Agent as a tool, so the agent decides when to use it. See Tool Mode.
Example
A course platform launches a quarterly subscription with a 14-day trial.
- Create the product “Course access” with Stripe Product and keep its identifier.
- Add Stripe Plan with Operation set to
Createand pass that identifier to Product ID. - Set Amount to
7500, Currency toeur, Billing Interval tomonth, Interval Count to3and Trial Period Days to14. - Connect the Data output to a message for the sales team with the new plan’s identifier.
Related components
- Stripe Product: the products plans belong to.
- Stripe Price: one-off or recurring prices.
- Stripe Subscription: subscribe your customers.