Skip to content

Preview prorated cost for a plan upgrade

POST
/billing/upgrade/preview
curl --request POST \
--url https://api.krakenkey.io/billing/upgrade/preview \
--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

Upgrade preview details

Invalid upgrade path

Unauthorized

No active subscription