Skip to main content
POST
cURL
Every version of the plan takes newId: its subscribers, grants and Stripe Prices stay where they are. The old ID becomes an alias: attach, upgrade, downgrade, import, overage overrides and the plan routes still take it, and answer with the current ID. Responses and webhooks carry the new one. 409 plan_id_taken when another plan has or had newId, and 409 plan_id_is_alias when it’s another plan’s earlier ID. Renaming to one of the plan’s own earlier IDs takes it back. In a catalog, rename by changing the plan’s id and listing the old one in previousIds. Needs the Catalog permission at Write.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The plan's ID, or an alias.

Required string length: 1 - 100
Pattern: ^[a-zA-Z0-9_-]+$

Body

application/json
newId
string
required

The plan's new ID: letters, numbers, _ or -. No other plan may have it, now or before.

Required string length: 1 - 100
Pattern: ^[a-zA-Z0-9_-]+$

Response

The plan's IDs after the rename

planId
string
required

The plan's current ID.

previousIds
string[]
required

IDs the plan had before, oldest first. They still resolve to it wherever a plan ID is taken.

changed
boolean
required