Skip to main content
POST
Preview subscription plan change

Authorizations

x-api-key
string
header
required

Enter your API key in the format x-api-key <api-key>*

Path Parameters

id
string
required

Subscription ID

Body

application/json

Subscription change preview request

Request object for changing a subscription plan (upgrade/downgrade)

billing_cadence
enum<string>
required
Available options:
RECURRING
billing_cycle
enum<string>
required
Available options:
anniversary,
calendar
billing_period
enum<string>
required
Available options:
MONTHLY,
ANNUAL,
WEEKLY,
DAILY,
QUARTERLY,
HALF_YEARLY,
ONETIME
proration_behavior
enum<string>
required
Available options:
create_prorations,
none
target_plan_id
string
required

target_plan_id is the ID of the new plan to change to (required)

billing_period_count
integer

billing_period_count is the billing period count for the new subscription

change_at
enum<string>
Available options:
immediate,
end_of_period
metadata
object

metadata contains additional key-value pairs for storing extra information

Response

OK

Response showing the financial impact of a subscription plan change

change_type
enum<string>
Available options:
upgrade,
downgrade,
lateral
current_plan
object
effective_date
string<date-time>

effective_date is when the change would take effect

metadata
object

metadata from the request

new_billing_cycle
object
next_invoice_preview
object
proration_details
object
subscription_id
string

subscription_id is the ID of the subscription being changed

target_plan
object
warnings
string[]

warnings contains any warnings about the change