Skip to main content
POST
Typescript (SDK)
Deletes a plan or a specific version of a plan.
Deleting a plan cannot be undone. Existing subscriptions to this plan will remain active until canceled.

Common Use Cases

Body Parameters

Response

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-api-version
string
default:2.3.0
required

Body

application/json
plan_id
string
required

The ID of the plan to delete.

Minimum string length: 1
all_versions
boolean
default:false

If true, deletes all versions of the plan. Otherwise, only deletes the latest version.

Response

200 - application/json

OK

success
boolean
required