SendLit logoSendLit Docs
API ReferenceBillingOrganization checkouts

Create a paid organization and hosted checkout

**Authentication:** Requires a dashboard session cookie; OAuth access tokens and API keys are not accepted. Requests must pass the dashboard's same-origin and CSRF checks. Sensitive billing actions require recent authentication and a single-use billing action token; POST /billing/action-token issues that token.

POST
/billing/organization-checkouts

Authentication: Requires a dashboard session cookie; OAuth access tokens and API keys are not accepted. Requests must pass the dashboard's same-origin and CSRF checks. Sensitive billing actions require recent authentication and a single-use billing action token; POST /billing/action-token issues that token.

sendlit.session_token<token>

Better Auth dashboard session cookie used for local HTTP connections.

In: cookie

Request Body

application/json

Body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.sendlit.app/billing/organization-checkouts" \  -H "Content-Type: application/json" \  -d '{    "plan": "starter",    "interval": "month",    "catalogRevision": 0,    "organizationName": "string",    "teamName": "string"  }'
{
  "checkoutUrl": "http://example.com",
  "expiresAt": "string",
  "organizationId": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}