Get current subscription plan
curl --request POST \
--url https://pria.praxislxp.com/api/user/stripe/plan \
--header 'x-access-token: <api-key>'{
"plan": "pro",
"status": "active",
"trial_end": 1700000000,
"cancel_at_period_end": false,
"current_period_end": 1700000000,
"canceled_at": 123,
"subscription": true
}Billing
Get current subscription plan
Retrieves the current user’s Stripe subscription plan details and status
POST
/
api
/
user
/
stripe
/
plan
Get current subscription plan
curl --request POST \
--url https://pria.praxislxp.com/api/user/stripe/plan \
--header 'x-access-token: <api-key>'{
"plan": "pro",
"status": "active",
"trial_end": 1700000000,
"cancel_at_period_end": false,
"current_period_end": 1700000000,
"canceled_at": 123,
"subscription": true
}Authorizations
JWT token passed in x-access-token header
Response
Plan retrieved successfully
Plan name derived from the Stripe price ID (empty string if none)
Example:
"pro"
Stripe subscription status
Available options:
incomplete, incomplete_expired, trialing, active, past_due, canceled, unpaid Example:
"active"
Unix timestamp when the trial ends (null if no trial)
Example:
1700000000
Whether the subscription is set to cancel at the end of the current period
Example:
false
Unix timestamp when the current billing period ends
Example:
1700000000
Unix timestamp when the subscription was canceled, or empty string if not canceled
Whether the user has an active Stripe subscription
Example:
true
Was this page helpful?
⌘I