Get active subscription
Get the active subscription for a customer. Returns null if none.
Get the active subscription for a customer. Returns null if none.
ApiKeyAuth In: header
application/json
application/json
application/json
curl -X GET "https://commet.co/api/subscriptions/active"Get the active subscription for a customer. Returns null if none.
{
"success": true,
"data": {
"id": "string",
"customerId": "string",
"planId": "string",
"planName": "string",
"name": "string",
"status": "string",
"billingInterval": "string",
"trialEndsAt"
{
"success": false,
"code": "string",
"message": "string",
"details": null
}{
"success": false,
"code": "string",
"message": "string",
"details": null
}