Skip to main content
POST
Update Subscription Plan

Body

application/json
accountId
string<uuid>
required

Account Identifier whose Subscription will be Updated

Example:

"296ff917-9b4b-4dc1-987d-2c17bdac7133"

userId
string<uuid>
required

User Identifier whose Subscription will be Updated

Example:

"296ff917-9b4b-4dc1-987d-2c17bdac7133"

subscriptionPlan
enum<string>
required

New Subscription Plan

Available options:
NONE,
TRIAL,
BASIC_MONTHLY,
BASIC_YEARLY,
PREMIUM_MONTHLY,
PREMIUM_YEARLY,
CUSTOM
Example:

"NONE/TRIAL/BASIC_MONTHLY/BASIC_YEARLY/PREMIUM_MONTHLY/PREMIUM_YEARLY/CUSTOM"

planDetails
object

Response

Subscription Plan Successfully Updated

userId
string<uuid>
accountId
string<uuid>
subscriptionPlan
enum<string>
Available options:
NONE,
TRIAL,
BASIC_MONTHLY,
BASIC_YEARLY,
PREMIUM_MONTHLY,
PREMIUM_YEARLY,
CUSTOM
subscriptionExpirationEpoch
integer<int64>
warnings
string[]