Create plan
Creates a plan. Side effect: a Stripe Product + Price + Payment Link are created automatically. Provide either packagePublicId (existing bundle) or content (inline bundle, created automatically). Workspaces without Stripe Connect configured will fail here.
Autorizações
Corpo
Body for creating a new plan. Exactly one of packagePublicId or content must be provided; bodies with neither are rejected with 400.
Billing interval in months for recurring plans.
1
Billing model (one-time or recurring).
one_time, recurring Plan price in the smallest currency unit (cents).
x >= 04990
Number of workspace seats included in the plan.
x >= 15
Inline plan content definition. Mutually exclusive with packagePublicId.
Public ID of the credit package bundled with the plan.
"1b2c3d4e-5f60-4a7b-8c9d-0e1f2a3b4c5d"
3-letter ISO currency code.
3"USD"
Short description of the plan.
500"Best for growing teams."
Whether customers can purchase extra credits beyond the included amount. Defaults to false.
false
Price of an extra credit pack in the smallest currency unit (cents).
x >= 1500
Display name of the plan.
3 - 100"Pro"
Public ID of the agent/feature package backing this plan. Mutually exclusive with content.
"9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21"
Whether the plan offers unlimited credits. Defaults to false.
false
Whether the plan is visible in the public pricing widget. Defaults to true.
true
Resposta
Created
one_time, recurring active, inactive 
