Platform API
Subscription
GET /organizations/{workspaceId}/subscription: read the workspace's subscription, its plan, billing dates and usage period.
GET /api/v1/organizations/{workspaceId}/subscription
X-API-Key: <key with workspace access>| Field | Meaning |
|---|---|
id, status | The subscription; ACTIVE or INACTIVE |
plan | The current plan, with its limits |
subscribedAt, billingAnchor | When it started; renewals and usage periods count from the anchor |
currentPeriodStart, expiresAt | The current billing term; expiresAt is the renewal date |
usagePeriodStart, usagePeriodEnd | The current monthly usage period, even on annual billing |
cancelAtPeriodEnd, canceledAt | Set when the subscription is cancelled and runs until expiresAt |
scheduledPlan | A plan that takes over at expiresAt (a downgrade or a switch of billing period), when there is one |
paymentFailedAt, paymentGraceUntil | Set after a failed renewal payment, with the end of its grace |
Dates fall on the anchor's day of the month; in a shorter month, on its last day.