tier pull

This command pulls your current pricing model from Stripe, and prints it in pricing.json format.

This can be useful for generating content such as pricing pages in a CMS, synchronizing a pricing.json file in source control, or any other cases where the pricing model information could be needed.

All optional fields are filled in with their default values, even if they were not specified in the original pricing.json file used to create the plans.

$ tier pull
{
"plans": {
"plan:free@1": {
"title": "plan:free@1",
"features": {
"feature:convert": {
"tiers": [
{
"upto": 10
}
]
}
}
},
"plan:free@2": {
"title": "plan:free@2",
"features": {
"feature:convert": {
"tiers": [
{
"upto": 42
}
]
}
}
},
"plan:pro@1": {
"title": "plan:pro@1",
"features": {
"feature:convert": {
"tiers": [
{
"upto": 100,
"base": 1000
},
{
"price": 1
}
]
}
}
},
"plan:pro@2": {
"title": "plan:pro@2",
"features": {
"feature:convert": {
"tiers": [
{
"upto": 200,
"base": 2000
},
{
"price": 1
}
]
}
}
}
}
}