Create plan
interval is one of day, week, month, year; unknown values are refused here rather than upstream. intervalCount is a positive integer, default 1.
One plan per unique (amount, currency, interval, intervalCount): a matching request returns the existing plan with 200 — its name may differ from the one you sent. 201 means the plan was created.
Response contract
The successful wire shape and errors an integration should branch on.
Plan
application/jsonidstringrequired- Unique plan identifier.
object"plan"required- Stable resource discriminator.
namestringrequired- Plan name.
amountintegerrequired- Renewal amount in minor units.
currencystringrequired- Three-letter currency code.
intervalstringrequired- Renewal interval.
intervalCountintegerrequired- Intervals between renewals.
createdAtstringrequired- ISO 8601 creation timestamp.
Example response
{
"id": "plan_01JEXAMPLE",
"object": "plan",
"name": "Standard monthly",
"amount": 4999,
"currency": "USD",
"interval": "month",
"intervalCount": 1,
"createdAt": "2026-08-10T20:49:51.653Z"
}Error responses
authentication_failedThe key is missing, malformed, revoked, or invalid for this environment.
permission_deniedThe key does not have plans.create.
invalid_requestOne or more request fields are invalid.