Skip to main content
POST
Update subscription

Authorizations

Authorization
string
header
required

Bearer token authentication for client-side SDK operations. Format: 'Authorization: Bearer '

Path Parameters

id
string
required

Body

application/json
idempotencyKey
string
required

Retrying with the same key and parameters returns the subscription's current state without applying the change again.

freePeriod
object

Grant free billing periods starting when the current paid period ends.

Response

A successful response.

id
string
required
externalAccountId
string
required
planId
string
required
status
string
required
period
Billing period for a subscription · object
required
accessEndDate
string<date-time>
required
currentPeriodEnd
string<date-time>
required
nextBillingDate
string<date-time>
required
createdAt
string<date-time>
required
trialEnd
string<date-time>
cancelAtPeriodEnd
boolean
canceledAt
string<date-time>
freePeriod
object

A free stretch of full access with no charge, after which billing resumes.