Get the current user’s active Stripe subscription for the project
false for production subscriptions.null if no subscription exists.
sub_ABC123)active, trialing, past_due, canceled, incomplete| Use Case | Implementation |
|---|---|
| Show upgrade button | Check if subscription is null |
| Display plan name | Use subscription.plan_name |
| Show renewal date | Format current_period_end |
| Warn about cancellation | Check if cancel_at is set |
| Handle payment issues | Check for past_due status |
| Status | Description |
|---|---|
401 | Unauthorized - Invalid or missing authentication |
404 | Project not found or Stripe not configured |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Use test mode
Successful Response
Stripe subscription details.