folkwaysDocs
Platform API

Subscription

GET /organizations/{workspaceId}/subscription: read the workspace's subscription, its plan, billing dates and usage period.

HTTP
GET /api/v1/organizations/{workspaceId}/subscription
X-API-Key: <key with workspace access>
FieldMeaning
id, statusThe subscription; ACTIVE or INACTIVE
planThe current plan, with its limits
subscribedAt, billingAnchorWhen it started; renewals and usage periods count from the anchor
currentPeriodStart, expiresAtThe current billing term; expiresAt is the renewal date
usagePeriodStart, usagePeriodEndThe current monthly usage period, even on annual billing
cancelAtPeriodEnd, canceledAtSet when the subscription is cancelled and runs until expiresAt
scheduledPlanA plan that takes over at expiresAt (a downgrade or a switch of billing period), when there is one
paymentFailedAt, paymentGraceUntilSet 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.