Add a party to a debt
POST/v1/contacts/:contact_id/debts/:debt_id/parties
Links another contact to the debt with a role. The contact in the body must already exist in the account; the contact in the path identifies the debt and is not modified. One role per (debt, contact) pair — a contact already linked to the debt keeps its existing role, so changing a role means removing the link and adding it again.
Linking the path contact itself does not require it to already hold a role — this is the route that creates the link, and it is how a subscriber upload recovers when a debt_external_id already belongs to someone else. Adding a different contact does require the path contact to hold a role, else 404.
Permissions - contacts.read + contacts.write (the checks run both; a write grant without the read grant is denied). API keys - manage.
Request
Responses
- 201
- 400
- 401
- 404
- 500
The debt's party links after the addition
BadRequest
Response Headers
Unique identifier for the API request, useful for debugging and tracking.
abc123xyz789Unauthorized
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.
abc123xyz789Internal Server Error
Response Headers
Unique identifier for the API request, useful for debugging and tracking.
abc123xyz789