Retrieves the current user’s Stripe subscription plan details and status
JWT token passed in x-access-token header
Plan retrieved successfully
Plan name derived from the Stripe price ID (empty string if none)
"pro"
Stripe subscription status
incomplete, incomplete_expired, trialing, active, past_due, canceled, unpaid "active"
Unix timestamp when the trial ends (null if no trial)
1700000000
Whether the subscription is set to cancel at the end of the current period
false
Unix timestamp when the current billing period ends
1700000000
Unix timestamp when the subscription was canceled, or empty string if not canceled
Whether the user has an active Stripe subscription
true