Cancel Plan
Submits a cancellation request for the authenticated customer’s active plan. Depending on operator configuration, cancellation may take effect immediately or at the end of the current billing period.
Authentication
Requires a valid customer bearer token.
Request Body
The request body contains the contract/plan details for the cancellation.
The integer ID of the contract to cancel.
Response
Returns a 200 OK on success.
Examples
Cancel a plan
POST /api/public/plans/cancel
Authorization: Bearer {token}
Content-Type: application/json
{
"ContractId": 789
}
TypeScript Integration
import endpoints from '@/api/endpoints'
await httpClient.post(endpoints.plans.cancel, { ContractId: 789 })