Remove a party from a debt
DELETE/v1/contacts/:contact_id/debts/:debt_id/parties/:party_contact_id
Unlinks a contact from the debt. The debt itself and the contact both survive. Removing a link that does not exist returns 204 — except when it is the path contact's own link, since the route resolves the debt through that link: repeating a successful self-removal returns 404.
The debt's last party link cannot be removed — the debt would stay stored but become unreachable, since every :debt_id route resolves through a party link. Returns 409 (this route's only 409); delete the debt or link another party first.
Permissions - contacts.read + contacts.write (the checks run both; a write grant without the read grant is denied). API keys - manage.
Request
Responses
- 204
- 401
- 404
- 409
- 500
The party link was removed
Unauthorized
Response Headers
Unique identifier for the API request, useful for debugging and tracking.
abc123xyz789The specified resource was not found
Response Headers
Unique identifier for the API request, useful for debugging and tracking.
abc123xyz789This is the debt's last party link; removing it would strand the debt. Body is { message, code: "remove-debt-party" } — the route's error code, since the router rewrites the thrown one.
Internal Server Error
Response Headers
Unique identifier for the API request, useful for debugging and tracking.
abc123xyz789