OpenAPI 3.0.42026-08-134969330.3 KB

db09d0fd5c94

ManagedCases

Delete a payment on a test case (managing partner)

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.

delete/managed-cases/{id}/payments/{paymentId}

Path parameters

idstring uuid required
paymentIdstring uuid required

Query parameters

reopenCaseIfNeededboolean

Response

Payment deleted successfully