StatsHub Docs
APIAPI v2V2 endpoint referenceAccount

/me/subscription/checkout-session

Starts checkout or an existing plan change.

POST
/me/subscription/checkout-session

Starts checkout or an existing plan change.

Authorization

AuthorizationBearer <token>

Supabase access token.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/me/subscription/checkout-session" \  -H "Content-Type: application/json" \  -d '{    "priceId": "string"  }'
{  "url": "string"}