Commet
  • Pricing
Log InTry out
Cancel subscription POSTChange plan POSTCreate subscription POSTGet active subscription GETList subscriptions GET
DocumentationKnowledge BaseBuild with AIAPI ReferenceWebhooks

List subscriptions

List all subscriptions. Filter by customer ID, external ID, or status.

Get active subscription GET

Get the active subscription for a customer. Returns null if none.

Check usage availability POST

Check if a customer can consume a feature before actual consumption. Returns availability and cost estimates based on the plan's consumption model.

GET
/subscriptions

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Query Parameters

customerId?string
externalId?string
status?string

Response Body

application/json

curl -X GET "https://commet.co/api/subscriptions"

List all subscriptions. Filter by customer ID, external ID, or status.

{
  "success": true,
  "data": [
    {
      "id": "string",
      "customerId": "string",
      "planId": "string",
      "planName": "string",
      "name": "string",
      "status": "string",
      "startDate": "2019-08-24T14:15:22Z"






,
"endDate": "string",
"billingDayOfMonth": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
}