cURL
curl --request POST \ --url https://app.alana.shopping/api/workspace/{workspaceId}/billing/checkout \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "plan": "standard", "billing_period": "monthly", "coupon_code": "<string>" } '
{ "checkout_url": "<string>", "session_id": "<string>" }
Initiate a Stripe checkout session for plan upgrade or purchase
Bearer token authentication. Obtain a token via the authentication endpoint and include it in the Authorization header: Authorization: Bearer <token>
Authorization: Bearer <token>
The workspace ID
standard
pro
business
enterprise
monthly
annual
Checkout session created successfully