curl --request GET \
--url https://app.dynamicauth.com/api/v0/organizations/{organizationId}/billing/subscription \
--header 'Authorization: Bearer <token>'{
"hasPaymentMethod": true,
"planType": "free",
"inTrial": true,
"scope": [
"<string>"
],
"version": "<string>",
"billingPortalUrl": "<string>",
"billingPortalAddPaymentMethodUrl": "<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
},
"shouldLockEnvironmentSwitch": true,
"coupons": [
{
"coupon": "An example name"
}
]
}curl --request GET \
--url https://app.dynamicauth.com/api/v0/organizations/{organizationId}/billing/subscription \
--header 'Authorization: Bearer <token>'{
"hasPaymentMethod": true,
"planType": "free",
"inTrial": true,
"scope": [
"<string>"
],
"version": "<string>",
"billingPortalUrl": "<string>",
"billingPortalAddPaymentMethodUrl": "<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
},
"shouldLockEnvironmentSwitch": true,
"coupons": [
{
"coupon": "An example name"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of organization
36"95b11417-f18f-457f-8804-68e361f9164f"
Details of the organziation's current subscription
free, advanced, enterprise, standard Was this page helpful?