Skip to main content
POST
cURL
Previews moving the subscribers of one version (fromVersion, by number or label) to another (toVersion). The answer is a draft migration: how many subscribers move, whether their price goes up, down or stays the same, and who is skipped and why. Nothing moves until you run it.
  • timing: "at_renewal" (the default): each subscriber keeps the version they paid for until their next renewal, which bills and grants the new one.
  • timing: "now": the new version starts at once, with no proration and no charge. The customer gets its allowance less what they already used this period, and its price bills from the next renewal.
A subscriber is skipped when another plan change is under way (pending_change), when Stripe’s subscription can’t take the change or the versions are billed differently, free and paid or on another billing interval (stripe_state), when a payment is owed (past_due), or while on a trial (trialing). Needs the Billing 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.

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

Body

application/json
fromVersion
required

The version's number (such as 2) or its label (such as 2026-q4).

Required range: x > 0
toVersion
required

The version's number (such as 2) or its label (such as 2026-q4).

Required range: x > 0
timing
enum<string>

at_renewal (the default): each subscriber keeps the version they paid for until their next renewal, which bills the new one. now: the new version starts at once, with no proration; its allowance less what this period used is granted, and its price bills from the next renewal.

Available options:
now,
at_renewal
customerIds
string[] | null

Only these customers (your IDs for them) move. Leave it out to move every subscriber of the version.

Required array length: 1 - 1000 elements
Required string length: 1 - 255

Response

The preview, a draft migration

migrationId
integer
required
planId
string
required
fromVersion
integer | null
required
toVersion
integer | null
required
timing
enum<string>
required
Available options:
now,
at_renewal
status
enum<string>
required

draft: a preview; nothing has moved. running: its moves are queued and being applied. done: every move has been made or scheduled for its renewal.

Available options:
draft,
running,
done
customers
integer
required

Subscribers who move: the preview's count while a draft, the queued moves once it runs.

Required range: x >= 0
byChange
object
required

How the moving subscribers' price changes.

progress
object
required

The moves' state once it runs.

skipped
object[]
required

Subscribers left on their version, and why.