Documentation Index
Fetch the complete documentation index at: https://mintlify.com/dishant0406/quickleap/llms.txt
Use this file to discover all available pages before exploring further.
Create checkout session
Create a secure checkout session for subscribing to a plan. This redirects the user to a payment page where they can complete their subscription.Endpoint
POST /payment/checkout
Parameters
The ID of the plan to subscribe to
Request body
Response
Whether the checkout session was created successfully
Human-readable status message
Example
Response example
Error responses
400 - Invalid plan ID
400 - Invalid plan ID
401 - Unauthorized
401 - Unauthorized
404 - Plan not found
404 - Plan not found
Checkout flow
- Create session - Call this endpoint with the desired plan ID
- Redirect user - Redirect to the
checkoutUrlfrom the response - User completes payment - User enters payment information on the secure checkout page
- Redirect back - User is redirected back to your success URL
- Webhook notification - Your backend receives a webhook confirming the subscription
Checkout sessions expire after 24 hours. If the user doesn’t complete payment within this time, they’ll need to create a new session.
Get checkout session
Retrieve an existing checkout session by ID:GET /payment/checkout/{id}
This is useful for checking the status of a checkout session or recovering from interrupted flows.
Next steps
Manage subscription
View and manage active subscriptions
Payment history
Access transaction history