---
title: "Cancel a treatment plan"
method: DELETE
path: "/hardship/v1/accounts/{accountId}/treatment-plans/{treatmentPlanId}"
tags: ["Customer Distress Management"]
---

# Cancel a treatment plan

`DELETE /hardship/v1/accounts/{accountId}/treatment-plans/{treatmentPlanId}`

## Request

- Base URL: `http://<host-url>`
- URL: `http://<host-url>/hardship/v1/accounts/{accountId}/treatment-plans/{treatmentPlanId}`
- Auth: HTTP bearer

Cancel the treatment plan for the account.

## Path parameters

- `accountId` integer, required
- `treatmentPlanId` string, uuid, required

## Response `200`

Treatment plan cancelled

- TreatmentPlanDto
  - `id` string, uuid
  - `account_id` integer
  - `reasons` string[]
  - `details` string
  - `start_date` string, date
  - `end_date` string, date
  - `state` 'DRAFT' | 'CANCELLED' | 'EXECUTED'
  - `status` 'ILLUSTRATION' | 'EXPIRED' | 'SCHEDULED' | 'CANCELLED' | 'ACTIVE' | 'COMPLETED'
  - `account_balance_at_save` number
  - `created_at` string, date-time
  - `created_by` string
  - `illustrated_at` string, date-time
  - `illustration_expires_at` string, date-time

## Other responses

- `404`: Treatment plan not found

---

[API](https://skmtc.dev/paymentology/apis/paycredit-api.md) - [All operations](https://skmtc.dev/paymentology/apis/paycredit-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paymentology/apis/paycredit-api/revisions/cc56df9c933b?raw)
