subscription

Read the plan, billing cycle, seats and add-ons of an account before changing or cancelling its subscription; returns the subscription with its seat usage. Requires account.billing.read.

Responses

query Subscription {  subscription {    id    type    cycle    status    currentPeriodStart    currentPeriodEnd    quantity    expiresAt    createdAt    canceledAt    seatUsage {      purchased      active      reserved      used      available      overCapacity    }    projectId    lineItems {      kind      quantity    }  }}
{  "data": {    "subscription": {      "id": "string",      "type": "free",      "cycle": "monthly",      "status": "string",      "currentPeriodStart": "string",      "currentPeriodEnd": "string",      "quantity": 0,      "expiresAt": "string",      "createdAt": "string",      "canceledAt": "string",      "seatUsage": {        "purchased": 0,        "active": 0,        "reserved": 0,        "used": 0,        "available": 0,        "overCapacity": false      },      "projectId": "string",      "lineItems": [        {          "kind": "string",          "quantity": 0        }      ]    }  }}

The Subscription in data.subscription.