Update subscription

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Overview

Update an existing subscription. You can modify various attributes like metadata, shipping address, or auto-renewal settings. When plan_id is provided, the subscription is changed to the new plan with proration.

Example: Update a subscription's shipping address when a customer moves to a new location. Or change from a Monthly to an Annual plan with prorated billing.


Conditional Requirements

ConditionRequired Fields
collection_method=charge_automaticallysource_id
plan_id is set (plan change)proration_behavior, payment_behavior, billing_cycle_anchor auto-default if not provided
end_date is setMust be a Unix timestamp >= current period end
auto_renew is setCannot also set plan_id in the same request
plan_id + address_id when taxes enabledNot allowed — update address and plan separately
Subscription is scheduledCannot be updated
Subscription has pending paymentCannot be updated

Webhooks

All updates trigger the subscription.updated webhook event.

Plan changes additionally trigger the subscription.changed webhook event.

Path Params
int32
required
Query Params
int32
required
Body Params
int32
boolean
metadata
object
ip_addresses
array of strings
ip_addresses
domains
array of strings
domains
int32
string
enum
Allowed:
int32
boolean
int32
integer
integer
integer | null
≥ 0
string | null
enum
Allowed:
string | null
enum
Allowed:
string | null
Headers
string
required
Defaults to Bearer eyJ***
Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json