Plans
Create a plan
POST
https://api.piriod.com/plans/
Creates a new Plan object.
Request Body
Name | Type | Description |
---|---|---|
product | string | ID of related Product object. |
sku | string | A simple identifier for the plan with a 32 characters as max length. |
name | string | A human identifier for the plan with a 56 characters as max length. This is used to help you manage plans in your account. |
description | string | A description for the plan. This is used to show to your customer the billing reason. |
frequency | string | A frequency type for the plan. One of |
currency | string | Three-letter ISO code for the currency of the plan. |
amount | string | A positive number representing the amount of the plan. |
tiers | array | A list of Tier objects with prices. |
tiers_mode | string | The tiers mode of the plan pricing model. One of |
exempt | boolean | True or false if the plan amount is to be charged with taxes. |
usage_scheme | string | Can be either |
usage_aggregation | string | Specifies a usage aggregation scheme for plans with usage_scheme=metered. Allowed values are |
Last updated