Skip to main content
PUT
Change a subscription's plan (upgrade/downgrade)

Path Parameters

Request Body

Example Request

Response

When changing plans with proration_behavior set to create_prorations, a credit is issued for the unused portion of the current plan and a charge is created for the new plan.

Errors

See Errors for the error envelope and the full code taxonomy.

Authorizations

Authorization
string
header
required

Tenant API key obtained from POST /auth/register or POST /v1/developer/keys.

Path Parameters

id
string<uuid>
required

Body

application/json
plan_id
string<uuid>
required

Response

Updated subscription.

id
string<uuid>
tenant_id
string<uuid>
customer_id
string<uuid>
plan_id
string<uuid>
status
enum<string>
Available options:
trialing,
active,
past_due,
paused,
canceled,
unpaid
current_period_start
string<date-time>
current_period_end
string<date-time>
cancel_at_period_end
boolean
canceled_at
string<date-time>
cancellation_reason
string
cancellation_feedback
string
billing_anchor
string<date-time>
billing_anchor_type
string
billing_anchor_day
integer
payment_terms
string
coupon_id
string<uuid>
reference_id
string
mandate_id
string<uuid>
razorpay_subscription_id
string
stripe_subscription_id
string
created_at
string<date-time>
updated_at
string<date-time>