Banking Counterparty Map
The org-wide map from bank-line signals to parties, newest first. It learns from the matches people make; each row says how many matches back it (counted_matches since its last reset). For a caller limited to some legal entities every mapping is still listed, but its counts include only matches whose entity (the generated document's, else the line's bank account's — the legal_entity Why? shows) is one of them.
Required scope: banking:read
Pagination: cursor
Error codes: INVALID_CURSOR, VALIDATION_FAILED
access-tokenAuthorizationBearer <token>state?string"suggested""learned""confirmed""ambiguous""retired"party_id?stringFilters the mapping's own party column. An ambiguous mapping has none, except one that fell from confirmed, which keeps its confirmed party (see ambiguous_parties).
uuidsignal_kind?string"ach_originator_id""plaid_counterparty""ach_originator_name""descriptor"search?stringCase-insensitive substring of the signal value.
length <= 200cursor?stringlimit?number1..100, default 50
application/json- response
data*array<>meta*curl -X GET 'https://api.acreum.io/v1/banking/counterparty-mappings'{ "data": [ { "ambiguous_parties": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_active": true, "name": "string" } ], "auto_matches": 0, "counted_matches": 0, "created_at": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "last_seen_at": "2019-08-24T14:15:22Z", "party": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_active": true, "name": "string" }, "reverted_auto_matches": 0, "saturated_at": "2019-08-24T14:15:22Z", "signal_kind": "ach_originator_id", "signal_value": "string", "state": "suggested", "total_matches": 0 } ], "meta": { "api_version": "2026-04-23", "limit": 50, "next_cursor": "eyJpZCI6ICJhYmMifQ==", "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f" }}Maps a bank signal to an active party; the mapping is confirmed. The value is normalized the way bank lines are. A signal that already has a mapping is refused with 409 and the existing id — change that one with PATCH.
Required scope: banking:write
Error codes: VALIDATION_FAILED, COUNTERPARTY_MAPPING_ALREADY_EXISTS, COUNTERPARTY_MAPPING_PARTY_NOT_USABLE, COUNTERPARTY_MAPPING_VALUE_INVALID, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>Idempotency-Key?stringClient-chosen key that makes this mutation safe to retry. Optional — a request without one is processed normally, with no replay protection. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.
^[A-Za-z0-9_-]{1,255}$length <= 255application/json- body
party_id*stringAn active party of this org.
uuidsignal_kind*stringWhich bank signal the mapping keys on, strongest first: ach_originator_id (ACH ppd_id), plaid_counterparty (Plaid counterparty entity_id), ach_originator_name (ACH payer name), descriptor (the cleaned line description).
"ach_originator_id""plaid_counterparty""ach_originator_name""descriptor"signal_value*stringStored normalized the way bank lines are, so it matches the lines it came from.
1 <= length <= 500application/json- response
data*meta*curl -X POST 'https://api.acreum.io/v1/banking/counterparty-mappings' \ -H 'Content-Type: application/json' \ -d '{ "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1", "signal_kind": "ach_originator_id", "signal_value": "string"}'{ "data": { "ambiguous_parties": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_active": true, "name": "string" } ], "auto_matches": 0, "counted_matches": 0, "created_at": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "last_seen_at": "2019-08-24T14:15:22Z", "party": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_active": true, "name": "string" }, "reverted_auto_matches": 0, "saturated_at": "2019-08-24T14:15:22Z", "signal_kind": "ach_originator_id", "signal_value": "string", "state": "suggested", "total_matches": 0 }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}The mapping plus its evidence (Why?): every match behind it, newest first, with the line, entity, party, generated document, source, actor and whether it still counts. cursor/limit page the evidence. For a caller limited to some legal entities, the evidence and the counts include only matches whose entity (the generated document's, else the line's bank account's — the legal_entity Why? shows) is one of them; the mapping itself is org-wide.
Required scope: banking:read
Pagination: cursor
Error codes: NOT_FOUND, INVALID_CURSOR, VALIDATION_FAILED
access-tokenAuthorizationBearer <token>id*stringcursor?stringlimit?number1..100, default 50
application/json- response
data*meta*curl -X GET 'https://api.acreum.io/v1/banking/counterparty-mappings/string'{ "data": { "ambiguous_parties": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_active": true, "name": "string" } ], "auto_matches": 0, "counted_matches": 0, "created_at": "2019-08-24T14:15:22Z", "evidence": [ { "actor_principal_id": "17d202a9-0e33-4419-a1e5-3115ff3190a1", "counted": true, "created_at": "2019-08-24T14:15:22Z", "generated_document": { "document_number": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "legal_entity": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "line": { "amount": "1234.50", "description": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "transaction_date": "2019-08-24" }, "party": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_active": true, "name": "string" }, "reverted_at": "2019-08-24T14:15:22Z", "source": "manual" } ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "last_seen_at": "2019-08-24T14:15:22Z", "party": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_active": true, "name": "string" }, "reverted_auto_matches": 0, "saturated_at": "2019-08-24T14:15:22Z", "signal_kind": "ach_originator_id", "signal_value": "string", "state": "suggested", "total_matches": 0 }, "meta": { "api_version": "2026-04-23", "limit": 50, "next_cursor": "eyJpZCI6ICJhYmMifQ==", "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f" }}Exactly one of: { "party_id" } — change party (confirmed for that active party, count restarts; also settles an ambiguous mapping); { "state": "retired" } — stop using it; { "state": "active" } — turn it back on (count restarts). { "state": "retired" } on a retired mapping and { "state": "active" } on one that is not retired change nothing and answer 200; { "party_id" } on a retired mapping confirms it, which also turns it back on. Any other body (none, both, an unknown field, or null) is a 400. There is no DELETE: a mapping is retired, so its history stays.
Required scope: banking:write
Error codes: NOT_FOUND, VALIDATION_FAILED, COUNTERPARTY_MAPPING_UPDATE_INVALID, COUNTERPARTY_MAPPING_PARTY_NOT_USABLE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>id*stringIdempotency-Key?stringClient-chosen key that makes this mutation safe to retry. Optional — a request without one is processed normally, with no replay protection. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.
^[A-Za-z0-9_-]{1,255}$length <= 255application/json- body
party_id?stringChange party: the mapping becomes confirmed for this active party and its count restarts. Also settles an ambiguous mapping, and on a retired mapping it turns it back on. Not nullable: null is a 400.
uuidstate?stringretired — stop using it (a no-op on a mapping already retired); active — turn it back on, its count restarts (a no-op on a mapping that is not retired). Not nullable: null is a 400.
"retired""active"application/json- response
data*meta*curl -X PATCH 'https://api.acreum.io/v1/banking/counterparty-mappings/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "ambiguous_parties": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_active": true, "name": "string" } ], "auto_matches": 0, "counted_matches": 0, "created_at": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "last_seen_at": "2019-08-24T14:15:22Z", "party": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_active": true, "name": "string" }, "reverted_auto_matches": 0, "saturated_at": "2019-08-24T14:15:22Z", "signal_kind": "ach_originator_id", "signal_value": "string", "state": "suggested", "total_matches": 0 }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}