Create a plan
Every price must exist in your workspace. Responds
201 Created.
List plans
{ "data": [ … ] }.
Update a plan
Versions
Publishing makes a version available for new subscriptions.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Bundle prices into plans that customers subscribe to, and publish new versions
POST /v1/plans
{
"name": "starter",
"description": "Starter plan",
"prices": [
{ "priceId": "01JX0F8K4W3Z9YQ6V7M2T5R8B1" }
]
}
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The plan’s name. |
prices | array | Yes | The prices in the plan. Each entry is an object with a priceId, or a bare price ID. |
description | string | No | What the plan is for. |
201 Created.
GET /v1/plans
{ "data": [ … ] }.
PATCH /v1/plans/:id
| Method and path | Description |
|---|---|
GET /v1/plans/:id/versions | List the plan’s versions. |
POST /v1/plans/:id/publish | Publish the current draft so new subscriptions can use it. |
POST /v1/plans/:id/versions/:version/restore | Make an earlier version current again. |
DELETE /v1/plans/:id