Acreum Docs
Banking

Bank Connections

GET
/v1/banking/connection-methods

The generated connection chooser (spec §4.2): one entry per provider the registry knows about, in display order, with this org's provisioning state resolved server-side — available and unavailable_reason so the frontend renders a disabled card with a reason rather than knowing which providers exist or why one is off. Adding a provider is a registry entry, not a frontend change.

Required scope: banking:read

Pagination: none

Authorization

access-token
headerAuthorizationBearer <token>

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/banking/connection-methods'
{  "data": [    {      "addressing": [        {          "help": "string",          "key": "string",          "kind": "text",          "label": "string",          "max_length": 0,          "min_length": 0,          "options": [            {              "label": "string",              "value": "string"            }          ],          "pattern": "string"        }      ],      "available": true,      "capabilities": [        "data_in"      ],      "connection_count": 0,      "credential_owner": "spark",      "credentials": [        {          "help": "string",          "key": "string",          "kind": "text",          "label": "string",          "max_length": 0,          "min_length": 0,          "pattern": "string",          "secret": true        }      ],      "display_name": "string",      "highlights": [        "string"      ],      "provider": "string",      "tagline": "string",      "unavailable_reason": "string"    }  ],  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/banking/connections

The connection-list UI's backend (spec §4.2, §4.3) — one row per connection, with what a card needs to render itself and a drill-down id for /test, /credentials and /accounts. Never returns credential material — no secret, not even masked, and no boolean standing in for whether credentials exist.

Required scope: banking:read

Pagination: cursor

Error codes: INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

cursor?string
limit?number

1..100, default 50

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/banking/connections'
{  "data": [    {      "account_count": 0,      "capabilities": [        "data_in"      ],      "created_at": "2019-08-24T14:15:22Z",      "display_name": "string",      "environment": "sandbox",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "institution_id": "string",      "institution_name": "string",      "label": "string",      "last_sync_outcome": "ok",      "last_synced_at": "2019-08-24T14:15:22Z",      "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",      "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",      "provider": "plaid",      "status": "healthy",      "status_detail": "string",      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
POST
/v1/banking/connections

Tests the submitted credentials against the provider BEFORE writing anything (spec §4.1, §4.5) — on failure nothing is persisted. Only for a credential_owner: 'customer' provider (CashPro today); a 'spark'-owned provider (Plaid) is refused — those connections are created through their own flow (Plaid Link), not by submitting credentials here.

Required scope: banking:write

Error codes: VALIDATION_FAILED, BANK_PROVIDER_REQUIRES_SPARK_FLOW, BANK_CONNECTION_CREDENTIALS_REJECTED, BANK_CONNECTION_PROVIDER_UNAVAILABLE, BANK_CONNECTION_PROVIDER_ACCESS_BLOCKED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
credentials*

The provider's declared credential keys and their values. Shape is provider-defined; see GET /v1/banking/connection-methods' credentials declaration. Validated against that declaration server-side, so an unknown key or a missing required one is a 400. Write-only — never returned by any read.

environment*string
Value in"sandbox""production"
institution_id?string
Lengthlength <= 200
institution_name?string
Lengthlength <= 200
label?string

A human's own name for this connection, so an org with several relationships at the same bank can tell them apart. Defaults to institution_name when omitted.

Lengthlength <= 200
legal_entity_id?string

Informational only (spec §9.3) — one credential set spans legal entities.

Formatuuid
provider*string

The registry key. A 'spark'-owned provider is refused here.

Value in"plaid""cashpro"

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/banking/connections' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "credentials": {},  "environment": "sandbox",  "provider": "plaid"}'
{  "data": {    "capabilities": [      "data_in"    ],    "created_at": "2019-08-24T14:15:22Z",    "environment": "sandbox",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "institution_id": "string",    "institution_name": "string",    "label": "string",    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",    "provider": "plaid",    "status": "healthy",    "status_detail": "string",    "updated_at": "2019-08-24T14:15:22Z"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Get one bank connection

GET
/v1/banking/connections/{id}

The drill-down target from BankConnections.list — the recoverable id /test, /credentials and /accounts need. Resolved by (id, org_id); never returns credential material.

Required scope: banking:read

Error codes: BANK_CONNECTION_NOT_FOUND

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Response Body

application/json
  1. response
data*
meta*
curl -X GET 'https://api.acreum.io/v1/banking/connections/string'
{  "data": {    "account_count": 0,    "capabilities": [      "data_in"    ],    "created_at": "2019-08-24T14:15:22Z",    "display_name": "string",    "environment": "sandbox",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "institution_id": "string",    "institution_name": "string",    "label": "string",    "last_sync_outcome": "ok",    "last_synced_at": "2019-08-24T14:15:22Z",    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",    "provider": "plaid",    "status": "healthy",    "status_detail": "string",    "updated_at": "2019-08-24T14:15:22Z"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/banking/connections/{id}/account-template

The bulk-entry point for this connection's provider (plan 2026-09-19 Task 3, spec §2.2/§6): columns are the provider’s addressing keys in declared order, so the header can never drift from what the row validator actually accepts. Gains a leading connection column only when this org holds more than one connection for the same provider (decided from the org’s own data); that column resolves by the connection's label first, then its institution_name — a label is how two connections at the same bank (both "Bank of America") are told apart. The legal_entity column accepts either the entity's code or its exact name (both case-insensitive, code preferred when a value matches both) — never just a code, since not every entity has one yet. Includes exactly one example row, marked in the reserved leading example column so a parser can tell it apart from a real one; the example values themselves pass the same validator a real upload runs. A provider with no addressing fields (Plaid — it discovers accounts) has no template at all: BANK_PROVIDER_HAS_NO_ADDRESSING, not an empty file.

Required scope: banking:read

Error codes: BANK_CONNECTION_NOT_FOUND, BANK_PROVIDER_HAS_NO_ADDRESSING

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Response Body

The CSV template, UTF-8 BOM-prefixed and CRLF-terminated for Excel.

response?stringtext/csv
curl -X GET 'https://api.acreum.io/v1/banking/connections/string/account-template'
"string"
POST
/v1/banking/connections/{id}/accounts

CashPro has no account enumeration — accounts are addressed by account number + BIC, one at a time (spec §4.3). Verified by a one-day fetch BEFORE acceptance: a mistyped account number does not error, it returns nothing, so an empty fetch is refused (BANK_ACCOUNT_VERIFICATION_EMPTY) rather than silently accepted and only discovered at month-end.

Required scope: banking:write

Error codes: VALIDATION_FAILED, BANK_CONNECTION_NOT_FOUND, BANK_PROVIDER_REQUIRES_SPARK_FLOW, BANK_ACCOUNT_VERIFICATION_EMPTY, ACCOUNT_LEGAL_ENTITY_MISMATCH, LEDGER_ENTRY_REFUSED, BANK_CONNECTION_CREDENTIALS_REJECTED, BANK_CONNECTION_PROVIDER_UNAVAILABLE, BANK_CONNECTION_PROVIDER_ACCESS_BLOCKED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
account_number*string

The account number as the bank knows it. Encrypted at rest; never returned by any response.

bank_id*string

The BIC or routing number (e.g. BOFAUS3N or 026009593) — CashPro accounts are addressed, not enumerated.

cash_account_id?string

An existing cash GL account to reuse. Must already be scoped to legal_entity_id — an org-wide account is refused, because an account every entity can spend from cannot be one entity’s bank cash. Must also not already back another bank account (bank_accounts_cash_account_id_uk). Mutually exclusive with cash_parent_account_id.

Formatuuid
cash_account_name_override?string

Overrides the auto-minted child account name. Only meaningful with cash_parent_account_id; ignored otherwise. Defaults to "${name} ••${last 4 of account_number}".

Lengthlength <= 120
cash_parent_account_id?string

Parent (header) cash GL account under which a child sub-account is auto-minted for this bank, scoped to legal_entity_id. Mutually exclusive with cash_account_id; exactly one of the two is required.

Formatuuid
currency_code?string
Lengthlength <= 10
Default"USD"
legal_entity_id*string
Formatuuid
name*string
Lengthlength <= 200

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/banking/connections/string/accounts' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "account_number": "string",  "bank_id": "string",  "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",  "name": "string"}'
{  "data": {    "account_holder_name": "string",    "account_number": "string",    "account_number_last4": "string",    "account_type": "checking",    "ach_company_entry_description": "string",    "ach_company_id": "string",    "ach_company_name": "string",    "ach_originating_routing_number": "string",    "ach_sec_code": "string",    "cash_account_code": "string",    "cash_account_id": "90540b7d-f371-4fff-8728-513ddf8f8dad",    "cash_balance": "12500.00",    "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9",    "created_at": "2019-08-24T14:15:22Z",    "currency_code": "string",    "external_account_id": "string",    "external_item_id": "string",    "external_provider": "string",    "feed_start_date": "2019-08-24",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "institution_name": "string",    "is_active": true,    "last4": "string",    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "legal_entity_name": "string",    "mask": "string",    "name": "string",    "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",    "plaid_account_id": "string",    "plaid_item_id": "c6cfff18-0d62-4927-90a7-cc848990833a",    "routing_number_last4": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/banking/connections/{id}/credentials

Tests the NEW secret before anything changes; only on success does the current credential version retire and the new one become live, in one transaction (spec §4.5, §9.5). A failed new secret leaves the old one working — nothing is retired until the new secret is proven. Never re-links accounts, GL assignments, or sync history: they reference the connection, which never changes.

Required scope: banking:write

Error codes: VALIDATION_FAILED, BANK_CONNECTION_NOT_FOUND, BANK_PROVIDER_REQUIRES_SPARK_FLOW, BANK_CONNECTION_CREDENTIALS_REJECTED, BANK_CONNECTION_PROVIDER_UNAVAILABLE, BANK_CONNECTION_PROVIDER_ACCESS_BLOCKED, BANK_CONNECTION_ROTATION_CONFLICT, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

Client-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.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
credentials*

The provider's declared credential keys and their values. Shape is provider-defined; see GET /v1/banking/connection-methods' credentials declaration. Validated against that declaration server-side, so an unknown key or a missing required one is a 400, never a silent drop. Write-only — never returned by any read.

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/banking/connections/string/credentials' \  -H 'Content-Type: application/json' \  -d '{  "credentials": {}}'
{  "data": {    "capabilities": [      "data_in"    ],    "created_at": "2019-08-24T14:15:22Z",    "environment": "sandbox",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "institution_id": "string",    "institution_name": "string",    "label": "string",    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",    "provider": "plaid",    "status": "healthy",    "status_detail": "string",    "updated_at": "2019-08-24T14:15:22Z"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/banking/connections/{id}/test

Calls the provider's testConnection with the credentials already on file — no body. For a customer-owned connection, updates status/status_detail from the outcome (spec §4.4: credentials_rejected, degraded, or healthy — never needs_reauth, which has no meaning for a connection with no user session to repair). A 'spark'-owned connection's status is left to its own dedicated reconnect path.

Required scope: banking:write

Error codes: BANK_CONNECTION_NOT_FOUND, BANK_CONNECTION_CREDENTIALS_REJECTED, BANK_CONNECTION_PROVIDER_UNAVAILABLE, BANK_CONNECTION_PROVIDER_ACCESS_BLOCKED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

Client-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.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/banking/connections/string/test'
{  "data": {    "capabilities": [      "data_in"    ],    "created_at": "2019-08-24T14:15:22Z",    "environment": "sandbox",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "institution_id": "string",    "institution_name": "string",    "label": "string",    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",    "provider": "plaid",    "status": "healthy",    "status_detail": "string",    "updated_at": "2019-08-24T14:15:22Z"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}