delete
https://production-api.shoutaboutus.com/api/v1/partner/plans/
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
| Param | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | integer | Yes | Plan ID (route [0-9]+); must be an existing plan belonging to the partner. |
Response — data.message.
Path params
| Parameter | Type | Required | Notes |
|---|---|---|---|
planId | integer | Required | Digits only. |
Errors: 422 on validation failure.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
