API Reference

Create a plan

Creates a new Plan object.

Body Params
float
required

A positive number representing the amount of the plan. Required if plans does not have tiers.

string
required

Three-letter ISO code for the currency of the plan.

string
required

A description for the plan. This is used to show to your customer the billing reason.

boolean
Defaults to false

True or false if the plan amount is to be charged with taxes.

string
Defaults to monthly

A frequency type for the plan. One of monthly, annual, weekly, biannual or quarterly.

string
required

A human identifier for the plan with a 56 characters as max length. This is used to help you manage plans in your account.

string
required

ID of related Product object.

string

A list of Tier objects with prices.

string

The tiers mode of the plan pricing model. One of unit range.

string

A simple identifier for the plan with a 32 characters as max length.

string
Defaults to sum

Specifies a usage aggregation scheme for plans with usage_scheme=metered. Allowed values are sum to summing up all usages records reported within a period, max which uses the usage records with the maximum usage record reported within a period or last_record for using the last record reported within a period.

string
Defaults to licensed

Can be either licensed or metered. Licensed automatically bills the quantity set when adding it to a subscription. Metered aggregates the total usage based on usage records.

Responses

Language
Credentials
Choose an example:
application/json