Delete plan (Usage-Based only)

Soft-delete a partner-managed usage-based plan and removes its company_plans link to the partner (one DB transaction).

Auth: Partner (usage-based-managed plan only). Authentication group, no extra route-level route guard. deletePartnerPlan resolves the partner via getAuthPartner (403 if none); 404 if the plan id doesn't exist; 403 unless plan_type=usage-based AND is_admin_managed=0; 403 unless linked to the partner (planBelongsToCompany). The plan-type + ownership checks (not a billing-model gate) restrict deletion.

Rate limit: No rate limit.

Request

ParamInTypeRequiredNotes
idpathintegerYesPlan ID (route [0-9]+); must be an existing plan belonging to the partner.

Responsedata.message.

Path params

ParameterTypeRequiredNotes
planIdintegerRequiredDigits only.

Errors: 422 on validation failure.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Response

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json