Skip to main content
POST
/
api
/
user
/
stripe
/
cancel
Cancel subscription
curl --request POST \
  --url http://localhost:3000/api/user/stripe/cancel \
  --header 'x-access-token: <api-key>'
{
  "success": true,
  "message": "Subscription will be cancelled at end of billing period"
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Response

Subscription cancelled successfully

success
boolean
Example:

true

message
string
Example:

"Subscription will be cancelled at end of billing period"