Skip to content

Upgrade subscription with proration

POST
/billing/upgrade
curl --request POST \
--url https://api.krakenkey.io/billing/upgrade \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "plan": "pro", "interval": "month", "prorationDate": 1 }'
Media typeapplication/json
object
plan
required

Plan to upgrade to

string
Allowed values: pro business enterprise
Example
business
interval

Billing interval after the upgrade; the current one when left out

string
Allowed values: month year
prorationDate

The prorationDate from the upgrade preview, so the charge matches what it showed. Ignored when older than an hour

number

Subscription upgraded

Invalid upgrade path

Unauthorized

No active subscription