curl --request GET \
--url https://app.closerx.ai/api/get-active-subscription/ \
--header 'api_key: <api-key>'{
"success": true,
"errors": [],
"response": {
"has_subscription": true,
"active_subscription": {
"plan": null,
"status": "active",
"next_billing": "2025-09-14T18:45:46Z",
"amount": 997,
"features": "",
"price_id": "NhFBDI6",
"payment_gateway": "stripe"
},
"prices": [
{
"price_id": "HgHjFwt",
"amount": 297,
"currency": "usd",
"product_name": "xyz.com (AI Calling Plan) 7-Day Free Trial",
"description": null,
"interval": "month"
}
]
}
}Returns the current user’s active subscription status, including plan details, billing info, and available pricing options.
curl --request GET \
--url https://app.closerx.ai/api/get-active-subscription/ \
--header 'api_key: <api-key>'{
"success": true,
"errors": [],
"response": {
"has_subscription": true,
"active_subscription": {
"plan": null,
"status": "active",
"next_billing": "2025-09-14T18:45:46Z",
"amount": 997,
"features": "",
"price_id": "NhFBDI6",
"payment_gateway": "stripe"
},
"prices": [
{
"price_id": "HgHjFwt",
"amount": 297,
"currency": "usd",
"product_name": "xyz.com (AI Calling Plan) 7-Day Free Trial",
"description": null,
"interval": "month"
}
]
}
}Subscription information retrieved successfully
Indicates whether the request was successful.
true
List of errors if any occurred.
[]Show child attributes
Whether the user has an active subscription.
true
Show child attributes
Name of the current plan. Can be null.
null
Status of the current subscription.
"active"
Date and time of the next billing cycle.
"2025-09-14T18:45:46Z"
Billing amount of the current plan.
997
Features included in the plan (if any).
""
Stripe price ID associated with the plan.
"NhFBDI6"
Payment gateway used for this subscription.
"stripe"
List of available pricing plans.
Show child attributes
Unique ID of the price.
"HgHjFwt"
Price amount.
297
Currency of the price.
"usd"
Name of the product associated with this price.
"xyz.com (AI Calling Plan) 7-Day Free Trial"
Additional description of the plan (if any).
null
Billing interval (e.g., month, year).
"month"