🚀 Stablecoin Accounts are live! Learn more
cURL
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, "currentBillingPeriod": { "startDate": "2023-11-07T05:31:56Z", "endDate": "2023-11-07T05:31:56Z", "usagesCount": 123 }, "version": "<string>", "shouldLockEnvironmentSwitch": true, "coupons": [ { "coupon": "An example name" } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of organization
36
"95b11417-f18f-457f-8804-68e361f9164f"
Details of the organziation's current subscription
The response is of type object.
object
Was this page helpful?