PUT
/
organizations
/
{organizationId}
/
billing
/
upgrade
curl --request PUT \
  --url https://app.dynamicauth.com/api/v0/organizations/{organizationId}/billing/upgrade \
  --header 'Authorization: Bearer <token>'
{
  "billingPortalUrl": "<string>",
  "billingPortalAddPaymentMethodUrl": "<string>",
  "hasPaymentMethod": true,
  "planType": "free",
  "inTrial": true,
  "scope": [
    "<string>"
  ],
  "trialStart": "2023-11-07T05:31:56Z",
  "trialEnd": "2023-11-07T05:31:56Z",
  "trialDaysLeft": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationId
string
required

ID of organization

Required string length: 36

Response

201
application/json
Details of the organziation's current subscription
hasPaymentMethod
boolean
required
planType
enum<string>
required
Available options:
free,
advanced,
enterprise
inTrial
boolean
required
scope
string[]
required
billingPortalUrl
string
billingPortalAddPaymentMethodUrl
string
trialStart
string
trialEnd
string
trialDaysLeft
number