SnozeDevelopers
API referenceBilling

Cancel a scheduled plan change

Keeps the current plan by dropping a downgrade or interval switch scheduled for the renewal, then returns the subscription. Succeeds without changes when nothing is scheduled; a workspace without a subscription is a conflict. Requires a Clerk session with a synced profile and the `billing:manage` workspace permission. Send an `Idempotency-Key` header to make retries safe.

DELETE
/v1/workspaces/{workspaceId}/billing/scheduled-change

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Path Parameters

workspaceId*string

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X DELETE 'https://api.snoze.dev/v1/workspaces/string/billing/scheduled-change'
Example Response
{  "data": {    "workspaceId": "string",    "plan": "free",    "status": "none",    "polarCustomerId": "string",    "polarSubscriptionId": "string",    "polarProductId": "string",    "cancelAtPeriodEnd": true,    "currentPeriodStart": "string",    "recurringInterval": "month",    "currentPeriodEnd": "string",    "scheduledChange": {      "plan": "free",      "interval": "month",      "effectiveAt": "string"    }  }}