Skip to main content

Update subscription

Update subscription

Request Body REQUIRED
returnUrl string REQUIRED
workspaceId string REQUIRED
plan string REQUIRED

Possible values: [STARTER, PRO]

additionalChats number REQUIRED
additionalStorage number REQUIRED
currency string REQUIRED

Possible values: [usd, eur]

isYearly boolean REQUIRED
Responses
200

Successful response

Schema
workspace object
id string
createdAt date-time
updatedAt date-time
name string
icon string
plan string

Possible values: [FREE, STARTER, PRO, LIFETIME, OFFERED, CUSTOM, UNLIMITED]

stripeId string
additionalChatsIndex number
additionalStorageIndex number
chatsLimitFirstEmailSentAt date-time
chatsLimitSecondEmailSentAt date-time
storageLimitFirstEmailSentAt date-time
storageLimitSecondEmailSentAt date-time
customChatsLimit number
customStorageLimit number
customSeatsLimit number
isQuarantined boolean
checkoutUrl string
default

Error response

Schema
message string
code string
issues object[]
message string