Skip to main content
POST
Subscribe a user to a specific plan. This creates a Stripe checkout session.

Path Parameters

string
required
The plan ID to subscribe to

Request Body

string
required
URL to redirect after successful payment
string
required
URL to redirect if payment is cancelled
string
Customer email for the checkout
string
User ID to associate with the subscription

Response

boolean
Whether the checkout session was created
string
Stripe checkout URL to redirect the user
string
Stripe session ID