StatsHub Docs
APIEndpoint referenceStripe

/stripe/cancel-subscription

Cancels at the end of the paid period rather than immediately, so a user who has paid for the month keeps the month.

POST
/api/stripe/cancel-subscription

Cancels at the end of the paid period rather than immediately, so a user who has paid for the month keeps the month.

Authorization

AuthorizationBearer <token>

Supabase access token.

In: header

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/stripe/cancel-subscription"
{  "success": true}