Skip to main content
POST
/
v1
/
subscriptions
/
{id}
/
change-plan
Change plan (with proration)
curl --request POST \
  --url https://api.useduro.com/v1/subscriptions/{id}/change-plan \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "planId": "<string>"
}
'
{
  "subscription": {
    "id": "<string>",
    "planId": "<string>",
    "currentPeriodStart": "<string>",
    "currentPeriodEnd": "<string>",
    "cyclesCompleted": 123,
    "createdAt": "<string>"
  },
  "proration": {
    "amount": 123
  }
}

Authorizations

Authorization
string
header
required

A secret key (sk_test_… / sk_live_…), OAuth token, or identity token.

Path Parameters

id
string
required

Body

application/json
planId
string
required

Response

200 - application/json

OK with proration

subscription
object
proration
object