Manage counterparties
Create, screen, update, freeze, and delete the external bank destinations your customers pay.
A counterparty is an external bank destination held for one of your customers. Roots screens it on create and on every name change, and only an active counterparty can receive a transfer.
Before you begin
- Get an API token. See Authentication.
- Create the customer who will pay this counterparty. A withdrawal can only go to a counterparty held for the same person that owns the source account.
Create a counterparty
Create a counterparty with POST /api/v1/counterparties and an Idempotency-Key.
| Field | Required | Values |
|---|---|---|
person_id | Yes | The customer this counterparty is held for. |
counterparty_type | Yes | business or individual. |
relationship_to_person | Yes | customer or self. |
counterparty_information | Yes | Who receives the money. mailing_address is required. A business is named by business_name (up to 300 characters); an individual by first_name and last_name, plus middle_name when it has one. Optional: email, phone, date_of_birth, nationality. |
external_account_information | Yes | Where the money lands: supported_rails (one or more of ach, fedwire, fednow), account_subtype (checking or savings), and the bank details each rail needs. institution_address is optional. |
external_id | No | Your reference: letters, digits, and ._:-, up to 64 characters. |
label | No | Your own name for this recipient, shown beside its legal name and searchable in the list. |
description | No | Free text. |
| Rail | Required external_account_information fields |
|---|---|
ach | routing_number, account_number |
fedwire | routing_number, account_number, institution_name |
fednow | routing_number, account_number |
A counterparty that lists ach can be paid over ach or sameday_ach; sameday_ach is not listed separately.
To receive a payout, the counterparty's mailing_address also needs state and postal_code.
curl https://api.sandbox.roots.finance/api/v1/counterparties \
-H "Authorization: Bearer $ROOTS_API_TOKEN" \
-H "Idempotency-Key: 8e1d4b7a-cpty-northstar" \
-H "Content-Type: application/json" \
-d '{
"person_id": "person_7c1e4b2a9f3d4e6b8a0c5d2f1e9b3a74",
"counterparty_type": "business",
"relationship_to_person": "customer",
"external_id": "supplier-0091",
"counterparty_information": {
"business_name": "Northstar Supplies Inc",
"mailing_address": {
"line1": "500 Commerce Street",
"city": "Dallas",
"state": "Texas",
"postal_code": "75202",
"country": "US"
}
},
"external_account_information": {
"supported_rails": ["ach"],
"account_subtype": "checking",
"routing_number": "021000021",
"account_number": "000123456789",
"institution_name": "JPMorgan Chase Bank"
}
}'The response is a CounterpartyDetail:
{
"id": "cpty_6b2e9d4a1c7f4b3e8d5a0c9f2e1b7a64",
"person_id": "person_7c1e4b2a9f3d4e6b8a0c5d2f1e9b3a74",
"counterparty_type": "business",
"external_id": "supplier-0091",
"label": null,
"description": null,
"relationship_to_person": "customer",
"status": "active",
"status_detail": null,
"created_at": "2026-10-07T09:20:03Z",
"counterparty_information": {
"business_name": "Northstar Supplies Inc",
"mailing_address": {
"line1": "500 Commerce Street",
"city": "Dallas",
"state": "Texas",
"postal_code": "75202",
"country": "US"
}
},
"external_account_information": {
"external_account_type": "bank_account",
"supported_rails": ["ach"],
"account_subtype": "checking",
"account_number": "****6789",
"routing_number": "021000021",
"institution_name": "JPMorgan Chase Bank"
}
}account_number and iban are returned masked to their last four characters. The full values are accepted on create and never returned.
Read the screening result
| Field | Values |
|---|---|
status | active when screening cleared, blocked when it rejected. |
status_detail | Why the counterparty is not active: screening_rejected (blocked), screening_pending (blocked, screened but not yet decided by Roots), or manual_freeze (frozen). null when active or deleted. |
A blocked counterparty cannot be named in a transfer. Only screening sets or lifts blocked.
Update a counterparty
PATCH /api/v1/counterparties/{counterparty_id} is a merge patch: omitted fields are left alone.
- Editable:
external_id,label(nullclears it),description,counterparty_type,counterparty_information(replaced whole), and inexternal_account_information:supported_rails,account_subtype,institution_name,institution_address.supported_railsandaccount_subtypecannot be cleared; sendingnullfor either is a409. - Immutable:
person_id, and inexternal_account_information:external_account_type,account_number,routing_number,iban,swift_bic. Sending one is a409. To change bank account identifiers, create a new counterparty. - The account information is validated as a whole after the patch, so add a rail in the same request as the fields it needs.
A change to the screened name re-runs screening. A rejection moves an active or frozen counterparty to blocked. A clear moves a blocked counterparty back to active; it does not unfreeze a frozen one.
Freeze and unfreeze
Send status in the patch. This needs both the counterparties:update and counterparties:freeze scopes.
curl -X PATCH https://api.sandbox.roots.finance/api/v1/counterparties/cpty_6b2e9d4a1c7f4b3e8d5a0c9f2e1b7a64 \
-H "Authorization: Bearer $ROOTS_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"status": "frozen"}'Only active → frozen and frozen → active are allowed. Anything else is a 409 illegal_transition.
Delete
DELETE /api/v1/counterparties/{counterparty_id} returns 204 and sets status to deleted. The record stays readable so transfers that named it still resolve. A deleted counterparty cannot be edited.
Statuses
status | Can receive a transfer | Set by |
|---|---|---|
active | Yes | Screening clears, or unfreeze. |
blocked | No | Screening rejects. |
frozen | No | PATCH with status: "frozen". |
deleted | No | DELETE. Terminal. |
Creating a counterparty sends a counterparty.created webhook, and every status change, including delete, sends a counterparty.status.changed webhook. Both carry the CounterpartyDetail as data.
List and export
GET /api/v1/counterparties lists summaries, each with your external_id and label. Filter with person_id, status, and counterparty_type; search with search (name, label or id); sort with order_by and order; page with page and page_size.
GET /api/v1/counterparties/export returns every match as roots_counterparties_{date}.csv or .pdf, with the same filters plus format, columns, and created_from/created_to (at most one year).
Next steps
Updated 18 days ago