Create a Stripe Checkout session for subscription purchase.
cURL
curl --request POST \ --url https://api.example.com/api/billing/checkout \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "plan_tier": "<string>", "success_url": "<string>", "cancel_url": "<string>", "billing_interval": "monthly" } '
{ "checkout_url": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Request to create a Stripe Checkout session.
Successful Response
Response with Stripe Checkout session URL.