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
access-tokenAuthorizationBearer <token>cursor?stringlimit?number1..100, default 100
1 <= value <= 100sort?stringDefault: subject_type
"subject_type""-subject_type""priority""-priority""name""-name"search?stringCase-insensitive substring match on: name.
ids?stringUp to 100 ids; returns those rows regardless of other filters and ignores search.
subject_type?stringapplication/json- 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" }}Required scope: approvals:configure
Error codes: VALIDATION_FAILED, APPROVAL_RULE_UNSATISFIABLE, APPROVAL_RULE_APPROVERS_NOT_ALLOWED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>Idempotency-Key?stringClient-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.
^[A-Za-z0-9_-]{1,255}$length <= 255application/json- 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?booleantruename*stringpriority?numberHigher priority wins when multiple rules match. Default 0.
0steps*array<>subjectType*stringThe kind of subject this rule applies to (bill, invoice, payment_run, …).
"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"application/json- 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 }}Required scope: approvals:read
Error codes: NOT_FOUND
access-tokenAuthorizationBearer <token>id*stringapplication/json- 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 }}Required scope: approvals:configure
Error codes: NOT_FOUND, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>id*stringIdempotency-Key?stringClient-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.
^[A-Za-z0-9_-]{1,255}$length <= 255application/json- 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 }}Required scope: approvals:configure
Error codes: VALIDATION_FAILED, NOT_FOUND, APPROVAL_RULE_UNSATISFIABLE, APPROVAL_RULE_APPROVERS_NOT_ALLOWED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>id*stringIdempotency-Key?stringClient-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.
^[A-Za-z0-9_-]{1,255}$length <= 255application/json- 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?booleantruename*stringpriority?numberHigher priority wins when multiple rules match. Default 0.
0steps*array<>subjectType*stringThe kind of subject this rule applies to (bill, invoice, payment_run, …).
"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"application/json- 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 }}