🟢 GET - Subscription Status
Get Subscription Status
Get subscription status including trial days remaining from Stripe
GET
Retrieves the current subscription status directly from Stripe, including trial information if the subscription is in a trial period.
Authentication Required: This endpoint requires a Clerk JWT token with
organization context. The organization is determined from the
org_id claim
in the token.Request Headers
Bearer token with organization context:
Bearer {clerk_jwt_token}Response
Subscription status from Stripe:
trialing, active, canceled, past_due, unpaid, incomplete, incomplete_expired, or none if no subscription exists.Unix timestamp (seconds) when the trial ends. Only present if
status is trialing.Number of days remaining in the trial period. Only present if
status is trialing.Errors
| Status | Description |
|---|---|
| 401 | Missing or invalid authentication token |
| 401 | No organization context in token |
| 404 | Organization not found |
| 500 | Database not configured |