Deplo
API Reference

Create Stripe checkout session for subscription

POST
/billing/checkout
AuthorizationBearer <token>

Enter your JWT token

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://loading/billing/checkout" \  -H "Content-Type: application/json" \  -d '{    "workspaceId": "clx1234567890",    "tier": "pro",    "interval": "month"  }'
{
  "sessionId": "cs_test_...",
  "url": "https://checkout.stripe.com/..."
}