Skip to content

Schedule an end-of-period subscription plan change via Stripe Subscription Schedules

POST
/v1/portal/subscriptions/{id}/change-plan
curl --request POST \
--url https://api.extport.dev/api/v1/portal/subscriptions/example/change-plan \
--header 'Content-Type: application/json' \
--cookie extport_buyer_session=<extport_buyer_session> \
--data '{ "planId": "example" }'
id
required
string
Media typeapplication/json
object
planId
required
string
>= 1 characters
Examplegenerated
{
"planId": "example"
}

Plan change scheduled (or reverted to current plan)

Invalid target plan, subscription state, or Stripe not connected

No buyer session

Subscription or target plan not found

Stripe API unavailable