GET
/
organizations
/
{organizationId}
/
billing
/
subscription
curl --request GET \
  --url https://app.dynamicauth.com/api/v0/organizations/{organizationId}/billing/subscription \
  --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,
  "currentBillingPeriod": {
    "startDate": "2023-11-07T05:31:56Z",
    "endDate": "2023-11-07T05:31:56Z",
    "usagesCount": 123
  },
  "version": "<string>",
  "shouldLockEnvironmentSwitch": true
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

organizationId
string
required

ID of organization

Response

200 - application/json
billingPortalUrl
string
billingPortalAddPaymentMethodUrl
string
hasPaymentMethod
boolean
required
planType
enum<string>
required
Available options:
free,
advanced,
enterprise,
standard
inTrial
boolean
required
scope
string[]
required
trialStart
string
trialEnd
string
trialDaysLeft
number
currentBillingPeriod
object
version
string
required
shouldLockEnvironmentSwitch
boolean