Delete a payment on a test case (managing partner)
DELETE/managed-cases/:id/payments/:paymentId
Deletes a payment from a test case you submitted as managing partner, reverting its effect on the case balance and cascading the payout deletion. A durable audit record is retained.
Test-Only Restriction: only works on cases created with isTestCase: true. Production cases return a 400 — the assigned collection partner must delete via DELETE /cases/{id}/payments/{paymentId}.
Invoiced payments are frozen: an already-invoiced payment cannot be deleted and returns 422.
Reopen consent: if the deletion leaves a previously closed (Paid) case with an outstanding balance, the case is reopened only when reopenCaseIfNeeded=true; otherwise the request returns 409 Conflict.
Request
Responses
- 204
- 400
- 404
- 409
- 422
- 500
Payment deleted successfully
Invalid request or production case
Case or payment not found / not submitted by you
Deletion would reopen the case; resend with reopenCaseIfNeeded=true
Payment has already been invoiced and cannot be deleted
Server error