---
title: "Delete a payment on a case"
method: DELETE
path: "/cases/{id}/payments/{paymentId}"
tags: ["Cases"]
---

# Delete a payment on a case

`DELETE /cases/{id}/payments/{paymentId}`

## Request

- Base URL: `https://collectionpartner-api.debitura.com`
- URL: `https://collectionpartner-api.debitura.com/cases/{id}/payments/{paymentId}`
- Auth: API key in header `XApiKey`

Deletes a payment from a collection case, reverting its effect on the case balance and cascading the payout deletion. A durable audit record of the deletion is retained.

**Invoiced payments are frozen:** a payment whose payout has already been invoiced (Stripe/QBO) cannot be deleted and returns **422 Unprocessable Entity**.

**Reopen consent:** if deleting the payment leaves a previously closed (Paid) case with a positive outstanding balance, the case must be reopened. By default this returns **409 Conflict**; resend with `reopenCaseIfNeeded=true` to confirm — the case is reopened to Active and a `case.updated` webhook fires.

## Path parameters

- `id` string, uuid, required
- `paymentId` string, uuid, required

## Query parameters

- `reopenCaseIfNeeded` boolean

## Response `204`

Payment deleted successfully

## Other responses

- `400`: Invalid request
- `404`: Case or payment not found / not assigned to you
- `409`: Deletion would reopen the case; resend with reopenCaseIfNeeded=true
- `422`: Payment has already been invoiced and cannot be deleted
- `500`: Server error occurred

---

[API](https://skmtc.dev/debitura/apis/debitura-collection-partner-api.md) - [All operations](https://skmtc.dev/debitura/apis/debitura-collection-partner-api/llms.txt) - [OpenAPI document](https://skmtc.dev/debitura/apis/debitura-collection-partner-api/revisions/a7cf0ff022b6?raw)
