curl --request POST \
--url https://pria.praxislxp.com/api/user/stripe/subscribe \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"priceId": "price_1234567890",
"trial": "true",
"mode": "subscription",
"institutionId": "<string>",
"plan": "<string>"
}
'{
"id": "cs_test_abc123",
"url": "<string>",
"mode": "<string>",
"status": "<string>",
"client_reference_id": "<string>"
}Create subscription checkout session
Creates a Stripe checkout session and returns the full session object. The client should redirect the user to the session URL to complete payment.
curl --request POST \
--url https://pria.praxislxp.com/api/user/stripe/subscribe \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"priceId": "price_1234567890",
"trial": "true",
"mode": "subscription",
"institutionId": "<string>",
"plan": "<string>"
}
'{
"id": "cs_test_abc123",
"url": "<string>",
"mode": "<string>",
"status": "<string>",
"client_reference_id": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.praxis-ai.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
JWT token passed in x-access-token header
Body
Stripe price ID to subscribe to
"price_1234567890"
Set to 'true' to enable a trial period on the subscription
"true"
Stripe checkout mode (defaults to 'subscription')
subscription, payment "subscription"
Institution ID to associate with the subscription (falls back to user's institution)
Plan identifier
Response
Checkout session created successfully. Returns the full Stripe checkout session object.
Full Stripe Checkout Session object (see Stripe API docs)
Was this page helpful?