Commet
  • Pricing
Log InTry out
Get plan GETList plans GET
DocumentaciónRecursosConstruir con AIAPI ReferenceWebhooks

Get plan

Get detailed plan information by code or ID.

List features GET

List all features for a customer's active subscription.

List plans GET

List all plans with their prices and features. Optionally include private plans.

GET
/plans/{id}

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

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

Get detailed plan information by code or ID.

Plan code or ID

{
  "success": true,
  "data": {
    "id": "string",
    "code": "string",
    "name": "string",
    "description": "string",
    "isPublic": true,
    "isDefault": true,
    "sortOrder": 0,
    "prices"
































{
  "success": false,
  "code": "string",
  "message": "string",
  "details": null
}
: [
{
"billingInterval": "string",
"price": 0,
"isDefault": true,
"trialDays": 0,
"introOffer": {
"enabled": true,
"discountType": "percentage",
"discountValue": 0,
"durationCycles": 0
}
}
],
"features": [
{
"code": "string",
"name": "string",
"type": "string",
"unitName": "string",
"enabled": true,
"includedAmount": 0,
"unlimited": true,
"overage": {
"enabled": true,
"model": "string",
"unitPrice": 0
}
}
],
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}