Acreum Docs
General ledger

Approval Rules

GET
/v1/approval-rules

Approval rules on the unified list contract (100 per page). search matches the rule name. Default sort subject_type orders by subject type, then priority descending, then name; -subject_type reverses the type order while priority (descending) and name (ascending) keep their order. ids returns those rules regardless of subject_type and search (the org still applies).

Required scope: approvals:read

Pagination: cursor

Error codes: INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

cursor?string
limit?number

1..100, default 100

Range1 <= value <= 100
sort?string

Default: subject_type

Value in"subject_type""-subject_type""priority""-priority""name""-name"
search?string

Case-insensitive substring match on: name.

ids?string

Up to 100 ids; returns those rows regardless of other filters and ignores search.

subject_type?string

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/approval-rules'
{  "data": [    {      "applies_to": [        {          "kind": "role",          "role": "string",          "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"        }      ],      "conditions": [        {          "condition_type": "amount",          "operator": "eq",          "value": {}        }      ],      "enabled": true,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "priority": 0,      "steps": [        {          "approvals_required": 0,          "approvers": [            {              "kind": "role",              "role": "string",              "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"            }          ],          "name": "string",          "require_authority": true,          "step_order": 0        }      ],      "subject_type": "string"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
POST
/v1/approval-rules

Required scope: approvals:configure

Error codes: VALIDATION_FAILED, APPROVAL_RULE_UNSATISFIABLE, APPROVAL_RULE_APPROVERS_NOT_ALLOWED, 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
appliesTo?array<>

Submitters this rule applies to (users and/or roles, ORed). Omit or send [] to apply to everyone. Matched against the document's submitter.

conditions*array<>
enabled?boolean
Defaulttrue
name*string
priority?number

Higher priority wins when multiple rules match. Default 0.

Default0
steps*array<>
subjectType*string

The kind of subject this rule applies to (bill, invoice, payment_run, …).

Value in"invoice""credit_memo""vendor_credit""bill""expense""sales_receipt""payment_in""payment_out""journal_entry""intercompany_transaction""intercompany_settlement""transfer""deposit""refund""owner_distribution""refund_payment""distribution_receipt""straight_line_adjustment""debt_service""payment_run""distribution_batch""portal_package""depreciation""asset_disposal""asset_reclass"

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/approval-rules' \  -H 'Content-Type: application/json' \  -d '{  "conditions": [    {      "conditionType": "amount",      "operator": "eq",      "value": {}    }  ],  "name": "string",  "steps": [    {      "approvalsRequired": 0,      "approvers": [        {          "kind": "role"        }      ],      "name": "string",      "stepOrder": 0    }  ],  "subjectType": "invoice"}'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/approval-rules/{id}

Required scope: approvals: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/approval-rules/string'
{  "data": {    "applies_to": [      {        "kind": "role",        "role": "string",        "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"      }    ],    "conditions": [      {        "condition_type": "amount",        "operator": "eq",        "value": {}      }    ],    "enabled": true,    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string",    "priority": 0,    "steps": [      {        "approvals_required": 0,        "approvers": [          {            "kind": "role",            "role": "string",            "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"          }        ],        "name": "string",        "require_authority": true,        "step_order": 0      }    ],    "subject_type": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
DELETE
/v1/approval-rules/{id}

Required scope: approvals:configure

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

application/json
  1. response
data*
meta*
curl -X DELETE 'https://api.acreum.io/v1/approval-rules/string'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
PUT
/v1/approval-rules/{id}

Required scope: approvals:configure

Error codes: VALIDATION_FAILED, NOT_FOUND, APPROVAL_RULE_UNSATISFIABLE, APPROVAL_RULE_APPROVERS_NOT_ALLOWED, 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
appliesTo?array<>

Submitters this rule applies to (users and/or roles, ORed). Omit or send [] to apply to everyone. Matched against the document's submitter.

conditions*array<>
enabled?boolean
Defaulttrue
name*string
priority?number

Higher priority wins when multiple rules match. Default 0.

Default0
steps*array<>
subjectType*string

The kind of subject this rule applies to (bill, invoice, payment_run, …).

Value in"invoice""credit_memo""vendor_credit""bill""expense""sales_receipt""payment_in""payment_out""journal_entry""intercompany_transaction""intercompany_settlement""transfer""deposit""refund""owner_distribution""refund_payment""distribution_receipt""straight_line_adjustment""debt_service""payment_run""distribution_batch""portal_package""depreciation""asset_disposal""asset_reclass"

Response Body

application/json
  1. response
data*
meta*
curl -X PUT 'https://api.acreum.io/v1/approval-rules/string' \  -H 'Content-Type: application/json' \  -d '{  "conditions": [    {      "conditionType": "amount",      "operator": "eq",      "value": {}    }  ],  "name": "string",  "steps": [    {      "approvalsRequired": 0,      "approvers": [        {          "kind": "role"        }      ],      "name": "string",      "stepOrder": 0    }  ],  "subjectType": "invoice"}'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}