Acreum Docs
Banking

Banking Account Imports

GET
/v1/banking/account-imports/{id}

Status and counts always come back; data is this import's rejected rows in file order, cursor-paged (a 300-row file can carry 300 rejections). The import's own summary rides in meta.import so one poll answers both "how is the whole file doing" and "what got rejected, and why".

Required scope: banking:read

Pagination: cursor

Error codes: BANK_ACCOUNT_IMPORT_NOT_FOUND, INVALID_CURSOR

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Query Parameters

cursor?string
limit?number

1..500, default 100

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/banking/account-imports/string'
{  "data": [    {      "addressing": {},      "cash_account_code": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "legal_entity_code": "string",      "name": "string",      "rejection_reason": "string",      "row_number": 0    }  ],  "meta": {    "api_version": "2026-04-23",    "import": {      "completed_at": "2019-08-24T14:15:22Z",      "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9",      "created_at": "2019-08-24T14:15:22Z",      "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",      "error": "string",      "file_name": "string",      "file_sha256": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "row_count": 0,      "rows_accepted": 0,      "rows_rejected": 0,      "status": "pending",      "updated_at": "2019-08-24T14:15:22Z"    },    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
POST
/v1/banking/account-imports/{id}/commit

Creates one bank_accounts row per accepted row on a completed import, through the same writer the single-account add-account path uses. Idempotent by row: a row that already carries a bank_account_id (from an earlier commit call, or because its account already existed on this connection) is linked or skipped, never duplicated — a second commit of an already-committed import creates nothing and reports the rows as already committed, which is a correct answer, not an error. Refuses an import that is not yet completed, and never commits a rejected or still-pending row.

Required scope: banking:write

Error codes: BANK_ACCOUNT_IMPORT_NOT_FOUND, ACCOUNT_IMPORT_NOT_COMPLETED, BANK_CONNECTION_NOT_FOUND, BANK_PROVIDER_REQUIRES_SPARK_FLOW, LEGAL_ENTITY_NOT_IN_SCOPE, VALIDATION_FAILED, 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
cash_parent_account_id?string

Cash header to mint each accepted row’s child cash GL account under. Required unless every accepted row already resolved a cash_account_code. The minted child is scoped to its own row’s legal entity, never to the header’s — a header is routinely shared across entities.

Formatuuid

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/banking/account-imports/string/commit' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "accounts_created": 0,    "already_committed": 0,    "import_id": "13230382-dadc-41f2-963d-e123bd5c0585",    "rows_rejected": 0  },  "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/account-imports/{id}/discard

Marks the import discarded: background verification stops acting on it, it can no longer be committed, and — the reason this exists — the same file can be uploaded again. Without it an import left dead by a provider outage would block every re-upload of those exact bytes forever, since the upload endpoint returns the existing import for a file it has already seen. Rows already committed keep the bank accounts they created. Discarding an already-discarded import is a no-op, not an error.

Required scope: banking:write

Error codes: BANK_ACCOUNT_IMPORT_NOT_FOUND

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/banking/account-imports/string/discard'
{  "data": {    "completed_at": "2019-08-24T14:15:22Z",    "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9",    "created_at": "2019-08-24T14:15:22Z",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "error": "string",    "file_name": "string",    "file_sha256": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "row_count": 0,    "rows_accepted": 0,    "rows_rejected": 0,    "status": "pending",    "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}/account-imports

Parses, structurally validates, and resolves every row (plan 2026-09-19 Task 4): a row failing its own field rules or naming an unresolvable legal entity / cash account / connection is staged rejected with a complete-sentence reason; a row whose account already exists on this connection is staged accepted immediately (spec §2.6 — a corrected re-upload adds only what's missing); every other structurally-valid row is staged pending and verified against the bank in the background (GET .../account-imports/{id} to poll). Re-uploading the identical file (same sha256) returns the existing import rather than creating a second one.

Required scope: banking:write

Error codes: VALIDATION_FAILED, EMPTY_FILE, ACCOUNT_IMPORT_FILE_TOO_LARGE, ACCOUNT_IMPORT_UNSUPPORTED_FILE_TYPE, ACCOUNT_IMPORT_TOO_MANY_ROWS, BANK_CONNECTION_NOT_FOUND, BANK_PROVIDER_REQUIRES_SPARK_FLOW, 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

multipart/form-data
  1. body
file*unknown

The CSV file generated from the account-template endpoint.

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/banking/connections/string/account-imports' \  -H 'Idempotency-Key: string' \  -F 'file=null'
{  "data": {    "completed_at": "2019-08-24T14:15:22Z",    "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9",    "created_at": "2019-08-24T14:15:22Z",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "error": "string",    "file_name": "string",    "file_sha256": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "row_count": 0,    "rows_accepted": 0,    "rows_rejected": 0,    "status": "pending",    "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  }}