Acreum Docs
Banking

Banking Rules

List bank rules

GET
/v1/banking/rules

Required scope: banking:read

Pagination: none

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

account_id*string
direction*string
mode*string
is_active*string

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/banking/rules?account_id=string&direction=string&mode=string&is_active=string'
{  "data": [    {      "action": {        "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",        "description": "string",        "dimensions": {          "property1": "string",          "property2": "string"        },        "economic_document_type": "sales_receipt",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "type": "categorize"      },      "condition": {        "amount_max": "1234.50",        "amount_min": "1234.50",        "description_contains": [          "string"        ]      },      "created_at": "2019-08-24T14:15:22Z",      "direction": "in",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "is_active": true,      "mode": "suggest",      "modified_at": "2019-08-24T14:15:22Z",      "name": "string",      "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",      "priority": 0,      "scope_bank_account_id": "84fc4f5f-e7dc-4c10-84ed-1d93a3ff3b28"    }  ],  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Create bank rule

POST
/v1/banking/rules

Required scope: banking:write

Error codes: VALIDATION_FAILED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, BANK_TX_PARTY_IS_LEGAL_ENTITY

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

apply_to_pending?boolean

When true, immediately apply to existing pending tx.

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

Discriminated by type. One of categorize/transfer/exclude.

condition*
direction?|
Value in"in""out"
mode*string
Value in"suggest""auto_post"
name*string
priority?number
scope_bank_account_id?|
Formatuuid

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/banking/rules' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "action": {    "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",    "economic_document_type": "sales_receipt",    "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",    "type": "categorize"  },  "condition": {    "description_contains": [      "string"    ]  },  "mode": "suggest",  "name": "string"}'
{  "data": {    "action": {      "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",      "description": "string",      "dimensions": {        "property1": "string",        "property2": "string"      },      "economic_document_type": "sales_receipt",      "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",      "type": "categorize"    },    "condition": {      "amount_max": "1234.50",      "amount_min": "1234.50",      "description_contains": [        "string"      ]    },    "created_at": "2019-08-24T14:15:22Z",    "direction": "in",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "is_active": true,    "mode": "suggest",    "modified_at": "2019-08-24T14:15:22Z",    "name": "string",    "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",    "priority": 0,    "scope_bank_account_id": "84fc4f5f-e7dc-4c10-84ed-1d93a3ff3b28"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Reorder rule priorities

PUT
/v1/banking/rules/reorder

Required scope: banking:write

Error codes: VALIDATION_FAILED, 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. 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
ordered_ids*array<>

Response Body

application/json
  1. response
data*array<>
meta*
curl -X PUT 'https://api.acreum.io/v1/banking/rules/reorder' \  -H 'Content-Type: application/json' \  -d '{  "ordered_ids": [    "47309d7e-4fa6-4caf-9cd3-f112d7aa7a6d"  ]}'
{  "data": [    {      "action": {        "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",        "description": "string",        "dimensions": {          "property1": "string",          "property2": "string"        },        "economic_document_type": "sales_receipt",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "type": "categorize"      },      "condition": {        "amount_max": "1234.50",        "amount_min": "1234.50",        "description_contains": [          "string"        ]      },      "created_at": "2019-08-24T14:15:22Z",      "direction": "in",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "is_active": true,      "mode": "suggest",      "modified_at": "2019-08-24T14:15:22Z",      "name": "string",      "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",      "priority": 0,      "scope_bank_account_id": "84fc4f5f-e7dc-4c10-84ed-1d93a3ff3b28"    }  ],  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Get bank rule

GET
/v1/banking/rules/{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/rules/string'
{  "data": {    "action": {      "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",      "description": "string",      "dimensions": {        "property1": "string",        "property2": "string"      },      "economic_document_type": "sales_receipt",      "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",      "type": "categorize"    },    "condition": {      "amount_max": "1234.50",      "amount_min": "1234.50",      "description_contains": [        "string"      ]    },    "created_at": "2019-08-24T14:15:22Z",    "direction": "in",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "is_active": true,    "mode": "suggest",    "modified_at": "2019-08-24T14:15:22Z",    "name": "string",    "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",    "priority": 0,    "scope_bank_account_id": "84fc4f5f-e7dc-4c10-84ed-1d93a3ff3b28"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Soft-delete bank rule

DELETE
/v1/banking/rules/{id}

Required scope: banking:write

Error codes: NOT_FOUND, 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

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/rules/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"}

Update bank rule

PUT
/v1/banking/rules/{id}

Required scope: banking:write

Error codes: NOT_FOUND, VALIDATION_FAILED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, BANK_TX_PARTY_IS_LEGAL_ENTITY

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
action?||

Discriminated by type. One of categorize/transfer/exclude.

condition?
direction?|
Value in"in""out"
is_active?boolean
mode?string
Value in"suggest""auto_post"
name?string
scope_bank_account_id?|
Formatuuid

Response Body

application/json
  1. response
data*
meta*
curl -X PUT 'https://api.acreum.io/v1/banking/rules/string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "action": {      "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",      "description": "string",      "dimensions": {        "property1": "string",        "property2": "string"      },      "economic_document_type": "sales_receipt",      "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",      "type": "categorize"    },    "condition": {      "amount_max": "1234.50",      "amount_min": "1234.50",      "description_contains": [        "string"      ]    },    "created_at": "2019-08-24T14:15:22Z",    "direction": "in",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "is_active": true,    "mode": "suggest",    "modified_at": "2019-08-24T14:15:22Z",    "name": "string",    "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",    "priority": 0,    "scope_bank_account_id": "84fc4f5f-e7dc-4c10-84ed-1d93a3ff3b28"  },  "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/rules/{id}/apply

Required scope: banking:write

Error codes: NOT_FOUND, 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

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/banking/rules/string/apply' \  -H 'Idempotency-Key: string'
{  "data": {    "applications": [      {        "bank_transaction_id": "1f9dd7d7-92dc-4741-b11c-cccf6dd531b2",        "outcome": "string"      }    ],    "auto_posted_count": 0,    "suggested_count": 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/rules/{id}/test

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 POST 'https://api.acreum.io/v1/banking/rules/string/test'
{  "data": {    "count": 0,    "would_match_transaction_ids": [      "7f2e1e67-7358-4abf-9ce9-ba725fec2d79"    ]  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}