Delete a payment on a case
DELETE/cases/:id/payments/:paymentId
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.
Request
Responses
- 204
- 400
- 404
- 409
- 422
- 500
Payment deleted successfully
Invalid request
Case or payment not found / not assigned to you
Deletion would reopen the case; resend with reopenCaseIfNeeded=true
Payment has already been invoiced and cannot be deleted
Server error occurred