Payment
Create a Stripe Checkout Session for subscription purchase
Creates a Stripe Checkout Session for purchasing a subscription plan. The user will be redirected to the checkout URL to complete payment.
post/payments/stripe/purchasePlan
Request
- Base URL: https://api.tinyhumans.ai
- URL: https://api.tinyhumans.ai/payments/stripe/purchasePlan
- Auth: HTTP bearer
Request body
Example request
{
"plan": "PRO_MONTHLY",
"couponCode": "EARLYBIRDY"
}Response
Checkout session created successfully
Example response
{
"success": true,
"data": {
"checkoutUrl": "https://checkout.stripe.com/c/pay/cs_test_...",
"sessionId": "cs_test_1234567890"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.