# Plans

Before you start a subscription, you need to create a plan. It determines how the client will be charged. Easily set up the parameters defining your payment schedule and method with the Straal API. Try out a variety of options and choose the best one, because the number of plans you create is unlimited. Encourage new customers to buy your product or service with free-of-charge trial periods.

Use case – create a plan

Consider a VoD business charging a monthly fee of $9.99 to its clients. As it is just starting its operations, it introduces a 30-day trial period to encourage clients to use its service.

To create a plan, you will need to specify the following:

  • your plan's name
  • the amount to be charged, for example 999 for $9.99
  • the currency
  • the trial length in days (here: 30)
  • the frequency of card charges (here: once every month)

So, a request body could look like this:

{
  "name": "Regular monthly $9.99",
  "amount": 999,
  "currency": "usd",
  "trial_days": 30,
  "step_type": "month",
  "step_value": 1
}

In the response there will be a newly generated plan_id that you can use to refer to this plan. For details, see APIref: Create a plan(opens new window) . Or read more about plans in APIref: Plans(opens new window) .