Acreum Docs
Banking

Banking Statement Imports

POST
/v1/banking/accounts/{accountId}/statement-imports

Reads the statement's lines as a transaction feed, and its period end and ending balance. A bank account fed by a live connection already gets its lines from the provider, so its statement is used for its balance only: it is read but cannot be committed.

Required scope: banking:write

Error codes: EMPTY_FILE, FILE_TOO_LARGE, UNSUPPORTED_FILE_TYPE, NOT_FOUND, STATEMENT_FILE_ALREADY_IMPORTED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

accountId*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

PDF or CSV bank-statement file.

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/banking/accounts/string/statement-imports' \  -H 'Idempotency-Key: string' \  -F 'file=null'
{  "data": {    "auto_reconcile_note": "not_reconcilable",    "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff",    "content_type": "string",    "created_at": "2019-08-24T14:15:22Z",    "extracted_ending_balance": "string",    "extracted_statement_date": "2019-08-24",    "file_name": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "needs_period_confirmation": true,    "parse_error": "string",    "parse_model": "string",    "period_end_confirmed_at": "2019-08-24T14:15:22Z",    "purpose": "feed",    "reconciliation_id": "6d473d86-0a5d-4edb-89d3-2c59d4094fbd",    "status": "parsing"  },  "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/statement-imports

Required scope: banking:read

Pagination: cursor-optional

Error codes: VALIDATION_FAILED, INVALID_CURSOR

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

bank_account_id?string
Formatuuid
status?string
Value in"parsing""parsed""failed""committed""discarded"
purpose?string
Value in"feed""reconciliation"
cursor?string
limit?number

1..500. Omit to receive the full collection in one page.

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/banking/statement-imports'
{  "data": [    {      "auto_reconcile_note": "not_reconcilable",      "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff",      "content_type": "string",      "created_at": "2019-08-24T14:15:22Z",      "extracted_ending_balance": "string",      "extracted_statement_date": "2019-08-24",      "file_name": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",      "needs_period_confirmation": true,      "parse_error": "string",      "parse_model": "string",      "period_end_confirmed_at": "2019-08-24T14:15:22Z",      "purpose": "feed",      "reconciliation_id": "6d473d86-0a5d-4edb-89d3-2c59d4094fbd",      "status": "parsing"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
GET
/v1/banking/statement-imports/{id}

Required scope: banking:read

Error codes: 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/statement-imports/string'
{  "data": {    "auto_reconcile_note": "not_reconcilable",    "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff",    "content_type": "string",    "created_at": "2019-08-24T14:15:22Z",    "extracted_ending_balance": "string",    "extracted_statement_date": "2019-08-24",    "file_name": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "lines": [      {        "amount": "string",        "description": "string",        "duplicate_of_transaction_id": "9b8175eb-0f55-4849-aeb9-734dbc0a388e",        "generated_transaction_id": "840339bd-3a2c-46d9-a7bc-3e134bf86f94",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "included": true,        "is_duplicate": true,        "line_index": 0,        "transaction_date": "2019-08-24"      }    ],    "needs_period_confirmation": true,    "parse_error": "string",    "parse_model": "string",    "period_end_confirmed_at": "2019-08-24T14:15:22Z",    "purpose": "feed",    "reconciliation_id": "6d473d86-0a5d-4edb-89d3-2c59d4094fbd",    "status": "parsing"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
DELETE
/v1/banking/statement-imports/{id}

A committed import cannot be discarded. A reconciliation the statement opened by itself, that nobody has changed and that was never completed, is discarded with it; any other in-progress reconciliation it is tied to is left for a person to finish (it no longer completes by itself).

Required scope: banking:write

Error codes: NOT_FOUND, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, STATEMENT_IMPORT_COMMITTED

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

Possible error codes: INVALID_IDEMPOTENCY_KEY

application/json
  1. response
code*string
detail*string
errors?array<>
instance*string
next_action?string

What the caller does next. Sent only by codes that declare it (the PLAN_* codes).

Value in"fix_step""re_preview""retry_later""split_plan""use_plan_mode""release_first""contact_operator"
request_id*string
retryable?boolean

Whether the same request can succeed unchanged later. Sent only by codes that declare it (the PLAN_* codes).

status*number
title*string
type*string
curl -X DELETE 'https://api.acreum.io/v1/banking/statement-imports/string'
{  "code": "DOCUMENT_ALREADY_POSTED",  "detail": "Document doc_01 is already posted.",  "errors": [    {      "code": "INVALID_VALUE",      "field": "amount",      "message": "must be > 0"    }  ],  "instance": "/v1/documents/doc_01/post",  "next_action": "fix_step",  "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",  "retryable": true,  "status": 409,  "title": "Document already posted",  "type": "https://docs.acreum.io/errors/DOCUMENT_ALREADY_POSTED"}
POST
/v1/banking/statement-imports/{id}/commit

Required scope: banking:write

Error codes: NOT_FOUND, NOT_A_FEED_IMPORT, ALREADY_COMMITTED, IMPORT_NOT_PARSED

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

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/banking/statement-imports/string/commit' \  -H 'Idempotency-Key: string'
{  "data": {    "committed": 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/statement-imports/{id}/confirm-period-end

A CSV statement can be an export of any date range, so its period end (the latest line date, or what a model read) is only a proposal. Confirming the real period end lets a reconciliation start on its own from the statement balance. A PDF statement needs no confirmation.

Required scope: banking:write

Error codes: NOT_FOUND, IMPORT_NOT_PARSED, NO_ENDING_BALANCE, STATEMENT_PERIOD_END_NOT_CONFIRMABLE, STATEMENT_PERIOD_END_BEFORE_LAST_LINE

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
statement_ending_date*string
Formatdate

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/banking/statement-imports/string/confirm-period-end' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "statement_ending_date": "2026-03-31"}'
{  "data": {    "auto_reconcile_note": "not_reconcilable",    "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff",    "content_type": "string",    "created_at": "2019-08-24T14:15:22Z",    "extracted_ending_balance": "string",    "extracted_statement_date": "2019-08-24",    "file_name": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "needs_period_confirmation": true,    "parse_error": "string",    "parse_model": "string",    "period_end_confirmed_at": "2019-08-24T14:15:22Z",    "purpose": "feed",    "reconciliation_id": "6d473d86-0a5d-4edb-89d3-2c59d4094fbd",    "status": "parsing"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
PATCH
/v1/banking/statement-imports/{id}/lines

Required scope: banking:write

Error codes: NOT_FOUND, IMPORT_NOT_PARSED, 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
amount?string

Signed decimal string, e.g. "-42.50".

description?string|null
included?boolean
line_id*string
Formatuuid
transaction_date?string
Formatdate

Response Body

application/json
  1. response
data*
meta*
curl -X PATCH 'https://api.acreum.io/v1/banking/statement-imports/string/lines' \  -H 'Content-Type: application/json' \  -d '{  "line_id": "6cb02bfb-65d4-467b-864d-461e923db664"}'
{  "data": {    "auto_reconcile_note": "not_reconcilable",    "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff",    "content_type": "string",    "created_at": "2019-08-24T14:15:22Z",    "extracted_ending_balance": "string",    "extracted_statement_date": "2019-08-24",    "file_name": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "lines": [      {        "amount": "string",        "description": "string",        "duplicate_of_transaction_id": "9b8175eb-0f55-4849-aeb9-734dbc0a388e",        "generated_transaction_id": "840339bd-3a2c-46d9-a7bc-3e134bf86f94",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "included": true,        "is_duplicate": true,        "line_index": 0,        "transaction_date": "2019-08-24"      }    ],    "needs_period_confirmation": true,    "parse_error": "string",    "parse_model": "string",    "period_end_confirmed_at": "2019-08-24T14:15:22Z",    "purpose": "feed",    "reconciliation_id": "6d473d86-0a5d-4edb-89d3-2c59d4094fbd",    "status": "parsing"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}