Skip to main content
PATCH
Cancel at period end, resume, pause, or change seats

Authorizations

Authorization
string
header
required

Organization access token or OAuth access token. Scopes: products:read (List products and prices); checkouts:read (Read checkout sessions); checkouts:write (Create checkout sessions); customers:read (Read customers); customers:write (Create and update customers); orders:read (Read orders); subscriptions:read (Read subscriptions); subscriptions:write (Cancel and resume subscriptions); license_keys:read (Read license keys and activations); customer_sessions:write (Mint customer portal sessions); events:write (Ingest usage events); meters:read (Read meters); balance:read (Read customer credit balances); credits:write (Transfer prepaid credits between customers); seats:read (Read seat assignments); seats:write (Assign and revoke seats).

Scopes

subscriptions:write

Path Parameters

id
string
required

Subscription id

Body

application/json
cancel_at_period_end
boolean
seats
integer
Required range: x >= 1
pause
boolean

true pauses billing at the end of the paid period; false undoes the pause, or restarts billing today if already paused.

proration
enum<string>

How added seats are billed.

Available options:
prorated_immediately,
do_not_bill

Response

Success

id
string
status
string

active | past_due | paused | canceled | incomplete

customer_id
string
product_id
string
seats
integer
cancel_at_period_end
boolean
pause_at_period_end
boolean

Billing stops when the paid period ends.

paused_at
string<date-time> | null
current_period_start
string<date-time>
current_period_end
string<date-time>
started_at
string<date-time>
ended_at
string<date-time> | null