Get subscription
One subscription with its items, coupons and any scheduled change.
GET https://cotlet.dev/api/v1/chargebee/subscriptions/{subscription_id}
read
Returns the plan item prices with quantities, the coupons on the subscription, the billing dates and whether a change is scheduled. Read it before changing a plan or cancelling, so you know what the call replaces.
Parameters
| Name | Type | Description |
|---|---|---|
| subscription_id string required | string | Subscription ID from list_subscriptions. |
Request
curl https://cotlet.dev/api/v1/chargebee/subscriptions/subscription_8c41d2 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("chargebee", "get_subscription", {"subscription_id":"subscription_8c41d2"}) const result = await cotlet.call('chargebee', 'get_subscription', {"subscription_id":"subscription_8c41d2"}); cotlet call chargebee get_subscription --data '{"subscription_id":"subscription_8c41d2"}' Example response
{
"subscription_id": "sub_4d7mTz",
"customer_id": "cus_4d7mTz",
"status": "active",
"items": [
{
"item_price_id": "starter-USD-monthly",
"quantity": 1,
"unit_price": 9900
}
],
"coupons": [],
"has_scheduled_changes": false,
"current_term_end": "2026-11-01T00:00:00Z",
"contract_term": null
}